<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[封存记忆 2009 - 网页设计]]></title>
<link>http://www.65308.cn/</link>
<description><![CDATA[日子滴在时间的岁月里！]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[sjx800@21cn.com(侠猫)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>封存记忆 2009</title>
	<url>http://www.65308.cn/images/logos.gif</url>
	<link>http://www.65308.cn/</link>
	<description>封存记忆 2009</description>
</image>

			<item>
			<link>http://www.65308.cn/article.asp?id=115</link>
			<title><![CDATA[易企CMS系统转换到linux下Strict Standards错误]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Fri,27 Mar 2020 16:19:10 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=115</guid>
		<description><![CDATA[Strict Standards: Declaration of ezSQL_mysql::query() should be compatible with ezSQLcore解决方法<br/>客户网站用的是易企CMS系统，之前运行很稳定，迁移到阿里云虚拟主机以后，页面顶部出现一串代码：<br/><br/>Strict Standards: Declaration of ezSQL_mysql::query() should be compatible with ezSQLcore::query() in D:\XAMPP\htdocs\yiqicms\include\ezsql\ez_sql_mysql.php on line 263<br/><br/>Strict Standards: Declaration of ezSQL_mysql::escape() should be compatible with ezSQLcore::escape() in D:\XAMPP\htdocs\yiqicms\include\ezsql\ez_sql_mysql.php on line 263<br/><br/>类似上面的代码，百度之后，找到了解决方案，并成功解决，方案如下：<br/><br/>1.找到本地你安装易企CMS程序的目录，然后依次打开include下面的ezsql文件夹。<br/><br/>2.选中ez_sql_core.php文件，用代码编辑器打开，在最后面的?&gt;之前加入以下的这行代码并保存覆盖原来的文件：<br/><br/>error_reporting(E_ALL &amp; ~E_NOTICE &amp; ~E_STRICT &amp; ~E_DEPRECATED);<br/><br/>3.如果问题还没有得到解决，你还可以在include文件夹下面找到config.inc.php文件，也是在?&gt;之前加入上方的代码。<br/><br/>我是直接修改的ez_sql_core.php，就成功解决了问题。]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=109</link>
			<title><![CDATA[多款PHP集成环境]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Thu,13 Jun 2019 19:48:07 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=109</guid>
		<description><![CDATA[phpstudy：<a href="http://phpstudy.php.cn/index.php" target="_blank" rel="external">http://phpstudy.php.cn/index.php</a>，2017年被SUN收购<br/>WampServer：<a href="http://www.wampserver.com/" target="_blank" rel="external">http://www.wampserver.com/</a><br/>PHPWAMP：<a href="http://www.phpwamp.com/" target="_blank" rel="external">http://www.phpwamp.com/</a><br/>Phpcustom：<a href="http://www.phpcustom.com/" target="_blank" rel="external">http://www.phpcustom.com/</a><br/>phpenv：<a href="https://www.phpenv.cn/" target="_blank" rel="external">https://www.phpenv.cn/</a>]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=99</link>
			<title><![CDATA[两款主流的服务器集成环境部置程序]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Tue,11 Jul 2017 09:10:05 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=99</guid>
		<description><![CDATA[<p><span style="color: rgb(0, 0, 255);"><strong>&nbsp;WampServer</strong></span></p>
<p>Wamp就是Windows Apache Mysql PHP集成安装环境，即在window下的apache、php和mysql的服务器软件。</p>
<p>官方网站：<a href="http://www.wampserver.com/" target="_blank">http://www.wampserver.com/</a></p>
<p><span style="color: rgb(0, 0, 255);"><strong>phpStudy</strong></span></p>
<p>该程序包集成最新的Apache+Nginx+LightTPD+PHP+MySQL+phpMyAdmin+Zend Optimizer+Zend Loader，一次性安装，无须配置即可使用，是非常方便、好用的PHP调试环境。该程序绿色小巧简易迷你仅有32M，有专门的控制面板。总之学习PHP只需一个包。</p>
<p>对学习PHP的新手来说，WINDOWS下环境配置是一件很困难的事；对老手来说也是一件烦琐的事。因此无论你是新手还是老手，该程序包都是一个不错的选择。</p>
<p>&nbsp;</p>
<p>全面适合 Win2000/XP/2003/win7/win8/win2008 操作系统 ,支持Apache、IIS、Nginx和LightTPD。</p>
<p>官方网站：<a href="http://www.phpstudy.net/" target="_blank">http://www.phpstudy.net/</a></p>]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=98</link>
			<title><![CDATA[对网页前端设计感兴趣的推荐几个学习网站]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Fri,07 Jul 2017 11:23:33 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=98</guid>
		<description><![CDATA[1、非视频学习网站<br/><br/><a href="http://www.w3school.com.cn/" target="_blank" rel="external">http://www.w3school.com.cn/</a>，Web规范 技术教程，从基础的 HTML 到 CSS，乃至进阶的 XML、SQL、JS、PHP 和 ASP.NET，在 w3school，你可以找到你所需要的所有的网站建设教程，全部免费。<br/><br/><a href="http://www.csdn.net/" target="_blank" rel="external">http://www.csdn.net/</a>，代码技术类交流网站，里面的博客有很多达人文章。<br/><br/><a href="https://juejin.im/" target="_blank" rel="external">https://juejin.im/</a>，掘金，上去看看大家都在玩什么新技术，也是很好的，也可以再多关注一些标签，拓宽眼界<br/><br/><a href="http://www.qdfuns.com/" target="_blank" rel="external">http://www.qdfuns.com/</a>，前端网<br/><br/><a href="http://www.php100.com/" target="_blank" rel="external">http://www.php100.com/</a>，PHP100中文网是国内第一家以PHP资源分享为主的专业网站，也提供了PHP中文交流社区，里边提供相关常用工具的程序员工具箱（<a href="http://tool.php100.com/" target="_blank" rel="external">http://tool.php100.com/</a>）。<br/><br/><a href="http://www.51cto.com/" target="_blank" rel="external">http://www.51cto.com/</a>，网络工程、服务器环境知识学习<br/><br/><a href="http://www.runoob.com/" target="_blank" rel="external">http://www.runoob.com/</a>，菜鸟教程<br/><br/><a href="https://www.cnblogs.com/" target="_blank" rel="external">https://www.cnblogs.com/</a>，博客园<br/><br/>视频学习网站<br/>1、哔哩哔哩：<a href="https://www.bilibili.com/" target="_blank" rel="external">https://www.bilibili.com/</a><br/>2、慕课网：<a href="https://www.imooc.com/" target="_blank" rel="external">https://www.imooc.com/</a><br/>3、极客学院：<a href="https://www.jikexueyuan.com/" target="_blank" rel="external">https://www.jikexueyuan.com/</a><br/>4、网易云课堂：<a href="https://study.163.com/" target="_blank" rel="external">https://study.163.com/</a><br/>5、虎课网：<a href="https://huke88.com/" target="_blank" rel="external">https://huke88.com/</a><br/>6、智捷课堂：<a href="http://www.zhijieketang.com/" target="_blank" rel="external">http://www.zhijieketang.com/</a><br/>7、51CTO学院：<a href="https://edu.51cto.com/" target="_blank" rel="external">https://edu.51cto.com/</a><br/>8、腾讯课堂：<a href="https://ke.qq.com/" target="_blank" rel="external">https://ke.qq.com/</a>]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=92</link>
			<title><![CDATA[DEDE CMS排序修改]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Wed,10 Sep 2014 17:14:22 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=92</guid>
		<description><![CDATA[1、找到&#34;根目录\include\arc.listview.class.php&#34;文件。<br/><br/>2、修改代码：在文件第727行处添加按weight排序判断代码(红色部分为新添加代码)。<br/><br/> //排序方式<br/>$ordersql = &#39;&#39;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($orderby==&#34;senddate&#34; || $orderby==&#34;id&#34;) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ordersql=&#34; o&#114;DER BY arc.id $orderWay&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if($orderby==&#34;hot&#34; || $orderby==&#34;click&#34;) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ordersql = &#34; o&#114;DER BY arc.click $orderWay&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if($orderby==&#34;lastpost&#34;) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ordersql = &#34;&nbsp;&nbsp;o&#114;DER BY arc.lastpost $orderWay&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/><span style="color:Red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if($orderby==&#34;weight&#34;) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ordersql = &#34;&nbsp;&nbsp;o&#114;DER BY arc.weight $orderWay&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ordersql=&#34; o&#114;DER BY arc.sortrank $orderWay&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br/><br/>3、再在第778行处找到此段代码<br/><br/>　　//如果不用默认的sortrank或id排序，使用联合查询（数据量大时非常缓慢）<br/>&nbsp;&nbsp; 　 if(preg_match(&#39;/hot|click|lastpost<span style="color:Red">|weight</span>/&#39;, $orderby))<br/><br/>　　并添加红色部分内容。<br/><br/>4、标签调用：<br/><br/>　　{dede:list <span style="color:Red">orderby=&#39;weight&#39; o&#114;derway=&#39;asc&#39;</span>}<br/><br/>　　这样{dede:list}标签就支持了按权重排序的调用，并且动静态状态下测试均成功！<br/><br/>++==================================================++<br/><br/>5.6之后DEDE加入了文章按权重排序的功能，但很多童鞋调整权重数值，并在arclist标签里加上orderby=&#39;weight&#39;，却发现无任何效果，原因是系统默认是不开启该功能的。<br/>坛子里有相关的解决方法，需要改arclist.lib.php，才能使用此功能。<br/>其实完全没有必要，正确的使用方法如下：<br/><br/><br/>{dede:arclist titlelen=&#39;38&#39; flag=&#39;h&#39; noflag=&#39;a&#39; isweight=&#39;y&#39; o&#114;derby=&#39;weight&#39;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;span&gt;[[field:typelink/]]&lt;/span&gt;&lt;a href=&#34;[field:arcurl/]&#34;&gt;[field:title/]&lt;/a&gt;&lt;div class=&#34;c2time&#34;&gt;[field:pubdate function=MyDate(&#39;y-m-d&#39;,@me)/]&lt;/div&gt;&lt;/li&gt;<br/>{/dede:arclist}<br/><br/>红色部分就是开启 weight排序，再加上orderby=&#39;weight&#39;，就OK了<br/><br/><br/>--------------------------------------------------------------------------------<br/><br/><br/>另外很多童鞋使用arclist标签时，想按照权重越大越靠前来排序，则需要小动一下arclist.lib.php文件，方法如下：<br/>打开\include\taglib\arclist.lib.php<br/>大概在572行<br/>$orderWeight = list_sort_by($orderWeight, &#39;weight&#39;, &#39;asc&#39;);<br/>修改为（红色部分）<br/>$orderWeight = list_sort_by($orderWeight, &#39;weight&#39;, &#39;desc&#39;);<br/><br/>就OK了]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=90</link>
			<title><![CDATA[需要代购德国爱活胆通胶囊的可以找我，这药效果确实不错]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Thu,12 Jun 2014 09:52:51 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=90</guid>
		<description><![CDATA[老婆外公上腹及右后背经常隐隐作痛，在医院B超检查说是混合性以胆固醇为主的胆结石，挂水后疼痛变轻，但过一段时间又反复。然后去省医院有开爱活胆通胶囊，于是上网查这个药有不有副作用，百度之后发现这个药是纯植物提取的，没有副作用，可以经常吃，但这个是进口药，德国爱活大药厂研发生产的，国内医院开的不是真正德国货，想到妹妹定居德国，于是联系妹妹在德国药店购买了一些寄了过来，全部德国文的，说明书也是德文，不过妹妹已经在德国药店咨询过药店的医生，确定跟百度查到的一样，没什么副作用。收到后一直坚持吃，没痛过，大概吃了两三个月后去医院检查，发现结石变小了，确实有效，挺不错的一款药，关键还是没有副作用，老人家毕竟年纪大了，经不起折腾。如果有胆结结石的推荐你一定先试试这个，不要动不动吃医生说开刀摘除胆囊，身边有几个朋友就是，要早知道有这个爱活胆通肯定会先吃这个保守治疗。写这些不是为了打广告卖药，哈哈，真心希望有胆结石或胆囊炎的可以减轻痛苦和开刀对身体的伤害，如果真需要这个药的我也可以叫我妹妹帮你带几盒，经常有国际包裹寄东西到我家里来的，可以加我QQ：845986510，验证：爱活胆通<br/><img src="http://www.65308.cn/attachments/month_1406/d201461295244.jpg" border="0" alt=""/><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=88</link>
			<title><![CDATA[一个兼容性不错的对联广告代码]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Fri,30 May 2014 11:42:52 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=88</guid>
		<description><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.65308.cn/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp55646">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;> 
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;> 
<head> 
<style> 
html,body{margin:0;font-family:Arial;font-size:12px;} 
#ad1,#ad2{position:absolute;float:left;width:100px;overflow:hidden; } 
#ad1{left:10px;}
#ad2{right:10px;} 
#killAd1,#killAd2{position:absolute;bottom:10px;right:10px;cursor:pointer;border:1px solid #990000;padding:0 5px;background:red;color:#fff; } 
</style> 
<script> 
var fx=function(uid,kill){ 
var f=this,$=function(x){return document.getElementById(x)}; 
f.top=f.offset=20; 
f.ad=$(uid); 
$(kill).onclick=function(){f.die()}; 
f.timer=setInterval(function(){f.dll()},13); 
}; 
fx.prototype={ 
dll:function(){ 
var f=this,d=document,to=Math.max(d.body.scrollTop,d.documentElement.scrollTop); 
if(f.top!=to){ 
var d=(to-f.top)*0.1,mx=Math[d>0?'ceil':'floor']; 
f.top+=parseInt(mx(d)); 
f.ad.style.top=f.top+f.offset+'px'; 
}; 
}, 
die:function (){ 
this.ad.style.display='none'; 
clearInterval(this.timer); 
} 
}; 
window.onload = function (){ 
new fx('ad1','killAd1'); 
new fx('ad2','killAd2'); 
}; 
</script> 
</head> 
<body> 
<div id=&#34;ad1&#34;> 
<span id=&#34;killAd1&#34;>x</span> 
<img src=&#34;<a href="http://files.jb51.net/upload/201107/20110713115423968.jpg" target="_blank" rel="external">http://files.jb51.net/upload/201107/20110713115423968.jpg</a>&#34; border=0 alt=&#34;&#34; title=&#34;&#34;> 
</div> 
<div id=&#34;ad2&#34;> 
<span id=&#34;killAd2&#34;>x</span> 
<img src=&#34;<a href="http://files.jb51.net/upload/201107/20110713115423968.jpg" target="_blank" rel="external">http://files.jb51.net/upload/201107/20110713115423968.jpg</a>&#34; border=0 alt=&#34;&#34; title=&#34;&#34;> 
</div> 
<p style=&#34;height:20000px;&#34;></p> 
</body> 
</html></TEXTAREA><br/><INPUT onclick="runEx('temp55646')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp55646')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp55646')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>张二个也不错<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.65308.cn/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp86622">
 
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;> 
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;> 
<head> 
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; /> 
<title>标准对联广告Js代码</title> 
<style type=&#34;text/css&#34;> 
<!-- 
#lovexin12,#lovexin14{ 
width:90px; 
height:230px; 
background-color:#ededed; 
border:1px solid #ddd; 
} 
html,body{ 
height:1203px; 
} 
#mm{ 
height:1000px; 
} 
--> 
</style> 

<script language=&#34;JavaScript&#34; type=&#34;text/javascript&#34;> 
lastScrollY=0; 
function heartBeat(){ 
var diffY; 
if (document.documentElement &amp;&amp; document.documentElement.scrollTop) 
diffY = document.documentElement.scrollTop; 
else if (document.body) 
diffY = document.body.scrollTop 
else 
{/*Netscape stuff*/} 
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById(&#34;lovexin12&#34;).style.top=parseInt(document.getElementById 
(&#34;lovexin12&#34;).style.top)+percent+&#34;px&#34;; 
document.getElementById(&#34;lovexin14&#34;).style.top=parseInt(document.getElementById 
(&#34;lovexin12&#34;).style.top)+percent+&#34;px&#34;; 
lastScrollY=lastScrollY+percent; 
} 
suspendcode12=&#34;<DIV id=\&#34;lovexin12\&#34; style='left:2px;POSITION:absolute;TOP:120px;'>ad1</div>&#34; 
suspendcode14=&#34;<DIV id=\&#34;lovexin14\&#34; style='right:2px;POSITION:absolute;TOP:120px;'>ad2</div>&#34; 
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval(&#34;heartBeat()&#34;,1); 
</script> 
</head> 
<body> 
<div id=&#34;mm&#34;></div> 
</body> 
</html> 
</TEXTAREA><br/><INPUT onclick="runEx('temp86622')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp86622')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp86622')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=87</link>
			<title><![CDATA[一些常用的JS代码]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Wed,28 May 2014 11:47:20 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=87</guid>
		<description><![CDATA[<div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.65308.cn/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;!--<br/>//重新设置图片长宽<br/>function DrawImage(ImgD,twidth,theight){<br/>&#160;&#160;&#160;&#160;var flag=false; <br/>&#160;&#160;&#160;&#160;var image=new Image(); <br/>&#160;&#160;&#160;&#160;var iwidth = twidth;&nbsp;&nbsp;//定义允许图片宽度 <br/>&#160;&#160;&#160;&#160;var iheight = theight;&nbsp;&nbsp;//定义允许图片高度 <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;image.src=ImgD.src;<br/>&#160;&#160;&#160;&#160;if(image.width&gt;0 &amp;&amp; image.height&gt;0){ <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;flag=true; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if(image.width/image.height&gt;= iwidth/iheight){ <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if(image.width&gt;iwidth){&nbsp;&nbsp; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ImgD.width=iwidth; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ImgD.height=(image.height*iwidth)/image.width; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}else{ <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ImgD.width=image.width;&nbsp;&nbsp; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ImgD.height=image.height; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;} <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}else{ <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if(image.height&gt;iheight){&nbsp;&nbsp; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ImgD.height=iheight; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ImgD.width=(image.width*iheight)/image.height;&nbsp;&nbsp; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}else{ <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ImgD.width=image.width;&nbsp;&nbsp; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ImgD.height=image.height; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;} <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;} <br/>&#160;&#160;&#160;&#160;} <br/>}<br/><br/>//带农历的日历，调用方式CalConv();<br/>function CalConv(){<br/>&#160;&#160;&#160;&#160;FIRSTYEAR = 1998;<br/>&#160;&#160;&#160;&#160;LASTYEAR = 2031;<br/>&#160;&#160;&#160;&#160;today = new Date();<br/>&#160;&#160;&#160;&#160;SolarYear = today.getFullYear();<br/>&#160;&#160;&#160;&#160;SolarMonth = today.getMonth() + 1;<br/>&#160;&#160;&#160;&#160;SolarDate = today.getDate();<br/>&#160;&#160;&#160;&#160;Weekday = today.getDay();<br/>&#160;&#160;&#160;&#160;LunarCal = [<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 27,&nbsp;&nbsp;5, 3, 43, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 46,&nbsp;&nbsp;0, 4, 48, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1 ), /* 88 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 35,&nbsp;&nbsp;0, 5, 53, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1 ), /* 89 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 23,&nbsp;&nbsp;4, 0, 59, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 42,&nbsp;&nbsp;0, 1,&nbsp;&nbsp;4, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 31,&nbsp;&nbsp;0, 2,&nbsp;&nbsp;9, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 21,&nbsp;&nbsp;2, 3, 14, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1 ), /* 93 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 39,&nbsp;&nbsp;0, 5, 20, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 28,&nbsp;&nbsp;7, 6, 25, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 48,&nbsp;&nbsp;0, 0, 30, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 37,&nbsp;&nbsp;0, 1, 35, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1 ), /* 97 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 25,&nbsp;&nbsp;5, 3, 41, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 44,&nbsp;&nbsp;0, 4, 46, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 33,&nbsp;&nbsp;0, 5, 51, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 22,&nbsp;&nbsp;4, 6, 56, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 ), /* 101 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 40,&nbsp;&nbsp;0, 1,&nbsp;&nbsp;2, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 30,&nbsp;&nbsp;9, 2,&nbsp;&nbsp;7, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 49,&nbsp;&nbsp;0, 3, 12, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 38,&nbsp;&nbsp;0, 4, 17, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0 ), /* 105 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 27,&nbsp;&nbsp;6, 6, 23, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 46,&nbsp;&nbsp;0, 0, 28, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 35,&nbsp;&nbsp;0, 1, 33, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 24,&nbsp;&nbsp;4, 2, 38, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1 ), /* 109 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 42,&nbsp;&nbsp;0, 4, 44, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 31,&nbsp;&nbsp;0, 5, 49, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 21,&nbsp;&nbsp;2, 6, 54, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 40,&nbsp;&nbsp;0, 0, 59, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1 ), /* 113 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 28,&nbsp;&nbsp;6, 2,&nbsp;&nbsp;5, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 47,&nbsp;&nbsp;0, 3, 10, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 36,&nbsp;&nbsp;0, 4, 15, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 25,&nbsp;&nbsp;5, 5, 20, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0 ), /* 117 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 43,&nbsp;&nbsp;0, 0, 26, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 32,&nbsp;&nbsp;0, 1, 31, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0 ),<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;new tagLunarCal( 22,&nbsp;&nbsp;3, 2, 36, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0 ) ];<br/>&#160;&#160;&#160;&#160;/* 民國年每月之日數 */<br/>&#160;&#160;&#160;&#160;SolarCal = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];<br/>&#160;&#160;&#160;&#160;/* 民國年每月之累積日數, 平年與閏年 */<br/>&#160;&#160;&#160;&#160;SolarDays = [&nbsp;&nbsp;0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365, 396,&nbsp;&nbsp;0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366, 397 ];<br/>&#160;&#160;&#160;&#160;AnimalIdx = [&#34;马&#34;, &#34;羊&#34;, &#34;猴&#34;, &#34;鸡&#34;, &#34;狗&#34;, &#34;猪&#34;, &#34;鼠&#34;, &#34;牛&#34;, &#34;虎&#34;, &#34;兔&#34;, &#34;龙&#34;, &#34;蛇&#34; ];<br/>&#160;&#160;&#160;&#160;LocationIdx = [ &#34;南&#34;, &#34;东&#34;, &#34;北&#34;, &#34;西&#34; ];<br/>&#160;&#160;&#160;&#160;if ( SolarYear &lt;= FIRSTYEAR || SolarYear &gt; LASTYEAR ) return 1;<br/>&#160;&#160;&#160;&#160;sm = SolarMonth - 1;<br/>&#160;&#160;&#160;&#160;if ( sm &lt; 0 || sm &gt; 11 ) return 2;<br/>&#160;&#160;&#160;&#160;leap = GetLeap( SolarYear );<br/>&#160;&#160;&#160;&#160;if ( sm == 1 )<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;d = leap + 28;<br/>&#160;&#160;&#160;&#160;else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;d = SolarCal[sm];<br/>&#160;&#160;&#160;&#160;if ( SolarDate &lt; 1 || SolarDate &gt; d ) return 3;<br/>&#160;&#160;&#160;&#160;y = SolarYear - FIRSTYEAR;<br/>&#160;&#160;&#160;&#160;acc = SolarDays[ leap*14 + sm ] + SolarDate;<br/>&#160;&#160;&#160;&#160;kc = acc + LunarCal[y].BaseKanChih;<br/>&#160;&#160;&#160;&#160;Kan = kc % 10;<br/>&#160;&#160;&#160;&#160;Chih = kc % 12;<br/>&#160;&#160;&#160;&#160;Location = LocationIdx[kc % 4];<br/>&#160;&#160;&#160;&#160;Age = kc % 60;<br/>&#160;&#160;&#160;&#160;if ( Age &lt; 22 )<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Age = 22 - Age;<br/>&#160;&#160;&#160;&#160;else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Age = 82 - Age;<br/>&#160;&#160;&#160;&#160;Animal = AnimalIdx[ Chih ];<br/>&#160;&#160;&#160;&#160;if ( acc &lt;= LunarCal[y].BaseDays ) {<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;y--;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;LunarYear = SolarYear - 1;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;leap = GetLeap( LunarYear );<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sm += 12;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;acc = SolarDays[leap*14 + sm] + SolarDate;<br/>&#160;&#160;&#160;&#160; }<br/>&#160;&#160;&#160;&#160;else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;LunarYear = SolarYear;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;l1 = LunarCal[y].BaseDays;<br/>&#160;&#160;&#160;&#160;for ( i=0; i&lt;13; i++ ) {<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;l2 = l1 + LunarCal[y].MonthDays[i] + 29;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if ( acc &lt;= l2 ) break;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;l1 = l2;<br/>&#160;&#160;&#160;&#160; }<br/>&#160;&#160;&#160;&#160;LunarMonth = i + 1;<br/>&#160;&#160;&#160;&#160;LunarDate = acc - l1;<br/>&#160;&#160;&#160;&#160;im = LunarCal[y].Intercalation;<br/>&#160;&#160;&#160;&#160;if ( im != 0 &amp;&amp; LunarMonth &gt; im ) {<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;LunarMonth--;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if ( LunarMonth == im ) LunarMonth = -im;<br/>&#160;&#160;&#160;&#160; }<br/>&#160;&#160;&#160;&#160;if ( LunarMonth &gt; 12 ) LunarMonth -= 12;<br/>&#160;&#160;&#160;&#160;today=new Date();<br/>&#160;&#160;&#160;&#160;function initArray(){<br/>&#160;&#160;&#160;&#160;this.length=initArray.arguments.length<br/>&#160;&#160;&#160;&#160;for(var i=0;i&lt;this.length;i++)<br/>&#160;&#160;&#160;&#160;this[i+1]=initArray.arguments[i]}<br/>&#160;&#160;&#160;&#160;var d=new initArray(&#34;星期日&#34;,&#34;星期一&#34;,&#34;星期二&#34;,&#34;星期三&#34;,&#34;星期四&#34;,&#34;星期五&#34;,&#34;星期六&#34;);<br/>&#160;&#160;&#160;&#160;document.write(&#34;&#34;, today.getYear(),&#34;年&#34;,today.getMonth()+1,&#34;月&#34;,today.getDate(),&#34;日 &lt;font color=#008000&gt;&#34;,d[today.getDay()+1],&#34;&lt;/font&gt; &#34;);<br/>&#160;&#160;&#160;&#160;document.write( &#34;农历:&#34; + LunarMonth + &#34;月&#34; + LunarDate + &#34;日&#34; );<br/>&#160;&#160;&#160;&#160;//document.write( &#34;煞&#34; + Location + &#34; 沖&#34; + Animal + Age + &#34;岁&lt;/span&gt;&#34; );<br/>&#160;&#160;&#160;&#160;return 0;<br/>&#160;&#160;&#160;&#160;}<br/>&#160;&#160;&#160;&#160; //求此民國年是否為閏年, 返回 0 為平年, 1 為閏年 */<br/>&#160;&#160;&#160;&#160;function GetLeap( year ){<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if ( year % 400 == 0 )<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return 1;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;else if ( year % 100 == 0 )<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return 0;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;else if ( year % 4 == 0 )<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return 1;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return 0;<br/>&#160;&#160;&#160;&#160; }<br/>&#160;&#160;&#160;&#160;function tagLunarCal( d, i, w, k, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13){<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this.BaseDays = d;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* 到民國 1 月 1 日到農曆正月初一的累積日數 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this.Intercalation = i;&nbsp;&nbsp;&nbsp;&nbsp;/* 閏月月份. 0==此年沒有閏月 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this.BaseWeekday = w;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* 此年民國 1 月 1 日為星期幾再減 1 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this.BaseKanChih = k;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* 此年民國 1 月 1 日之干支序號減 1 */<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this.MonthDays = [ m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13 ]; /* 此農曆年每月之大小, 0==小月(29日), 1==大月(30日) */<br/>}<br/><br/><br/>//带星期日期时间<br/>//使用方法：&lt;span id=&#34;datetime&#34;&gt;&lt;/span&gt;&lt;script&gt;tick(&#34;datetime&#34;)&lt;/script&gt;<br/>function showLocale(objD){<br/>&#160;&#160;&#160;&#160;var str,colorhead,colorfoot;<br/>&#160;&#160;&#160;&#160;var yy = objD.getYear();<br/>&#160;&#160;&#160;&#160;if(yy&lt;1900) yy = yy+1900;<br/>&#160;&#160;&#160;&#160;var MM = objD.getMonth()+1;<br/>&#160;&#160;&#160;&#160;if(MM&lt;10) MM = &#39;0&#39; + MM;<br/>&#160;&#160;&#160;&#160;var dd = objD.getDate();<br/>&#160;&#160;&#160;&#160;if(dd&lt;10) dd = &#39;0&#39; + dd;<br/>&#160;&#160;&#160;&#160;var hh = objD.getHours();<br/>&#160;&#160;&#160;&#160;if(hh&lt;10) hh = &#39;0&#39; + hh;<br/>&#160;&#160;&#160;&#160;var mm = objD.getMinutes();<br/>&#160;&#160;&#160;&#160;if(mm&lt;10) mm = &#39;0&#39; + mm;<br/>&#160;&#160;&#160;&#160;var ss = objD.getSeconds();<br/>&#160;&#160;&#160;&#160;if(ss&lt;10) ss = &#39;0&#39; + ss;<br/>&#160;&#160;&#160;&#160;var ww = objD.getDay();<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;( ww==0 )&nbsp;&nbsp;colorhead=&#34;&lt;font color=\&#34;#FF0000\&#34;&gt;&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;( ww &gt; 0 &amp;&amp; ww &lt; 6 )&nbsp;&nbsp;colorhead=&#34;&lt;font color=\&#34;#000000\&#34;&gt;&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;( ww==6 )&nbsp;&nbsp;colorhead=&#34;&lt;font color=\&#34;#008000\&#34;&gt;&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;(ww==0)&nbsp;&nbsp;ww=&#34;星期日&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;(ww==1)&nbsp;&nbsp;ww=&#34;星期一&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;(ww==2)&nbsp;&nbsp;ww=&#34;星期二&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;(ww==3)&nbsp;&nbsp;ww=&#34;星期三&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;(ww==4)&nbsp;&nbsp;ww=&#34;星期四&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;(ww==5)&nbsp;&nbsp;ww=&#34;星期五&#34;;<br/>&#160;&#160;&#160;&#160;if&nbsp;&nbsp;(ww==6)&nbsp;&nbsp;ww=&#34;星期六&#34;;<br/>&#160;&#160;&#160;&#160;colorfoot=&#34;&lt;/font&gt;&#34;<br/>&#160;&#160;&#160;&#160;str = colorhead + yy + &#34;-&#34; + MM + &#34;-&#34; + dd + &#34; &#34; + hh + &#34;:&#34; + mm + &#34;:&#34; + ss + &#34;&nbsp;&nbsp;&#34; + ww + colorfoot;<br/>&#160;&#160;&#160;&#160;return(str);<br/>}<br/>function tick(o){<br/>&#160;&#160;&#160;&#160;var o,today;<br/>&#160;&#160;&#160;&#160;today = new Date();<br/>&#160;&#160;&#160;&#160;document.getElementById(o).innerHTML = showLocale(today);<br/>&#160;&#160;&#160;&#160;window.setTimeout(&#34;tick(\&#34;&#34;+o+&#34;\&#34;)&#34;, 1000);<br/>}<br/><br/>//加入收藏<br/>function addFavorite(url,title){<br/>&#160;&#160;&#160;&#160;window.external.addFavorite(url,title);<br/>&#160;&#160;&#160;&#160;return false;<br/>}<br/><br/>//设为首页<br/>function setHomePage(url){<br/>&#160;&#160;&#160;&#160;document.body.style.behavior=&#39;url(#default#homepage)&#39;;<br/>&#160;&#160;&#160;&#160;document.body.setHomePage(url);<br/>&#160;&#160;&#160;&#160;return false;<br/>}<br/><br/>//关闭窗口<br/>function closeWin(){<br/>&#160;&#160;&#160;&#160;window.close();<br/>&#160;&#160;&#160;&#160;return false;<br/>}<br/><br/>//打印<br/>function printWin(){<br/>&#160;&#160;&#160;&#160;window.print();<br/>&#160;&#160;&#160;&#160;return false;<br/>}<br/>//--&gt;<br/></div></div><img src="http://www.65308.cn/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://www.65308.cn/attachments/month_1405/7201452811478.zip" target="_blank">点击下载此代码源文件</a><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=86</link>
			<title><![CDATA[dedecms中关于{dede:channel type=&#39;son&#39;}无子栏目时取同级栏目问题是解决]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Wed,28 May 2014 10:10:21 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=86</guid>
		<description><![CDATA[<div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.65308.cn/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>{dede:channelartlist typeid = 3}&nbsp;&nbsp; &lt;li class=&#34;sub_ul1_li&#34;&gt;&lt;a href=&#34;{dede:field name=&#39;typeurl&#39;/}&#34; class=&#34;publica&#34;&gt;{dede:field name=&#39;typename&#39;/}&lt;/a&gt;&nbsp;&nbsp; &lt;ul class=&#34;sub_ul2 hide&#34;&gt;&nbsp;&nbsp; {dede:channel type=&#39;son&#39; noself=&#39;yes&#39;}&nbsp;&nbsp; &lt;li&gt;&lt;a href=&#34;[field:typelink/]&#34; class=&#34;publica&#34;&gt;·[field:typename/]&lt;/a&gt;&lt;/li&gt;&nbsp;&nbsp; {/dede:channel}&nbsp;&nbsp; &lt;/ul&gt;&nbsp;&nbsp; &lt;/li&gt;&nbsp;&nbsp; {/dede:channelartlist} <br/></div></div><br/><br/>这段代码的意思是查询栏目id为3的子栏目然后在查询子栏目的子栏目。<br/><br/>但是这样会出现一个问题，就是如果该栏目没有子栏目的话，就会取他的同级栏目，那么如何解决{dede:channel type=&#39;son&#39;}无子栏目时取同级栏目问题呢？ <br/><br/>其实很简单：<br/><br/>打开：include\taglib\channel.lib.php文件。附件为修改好的文件<br/>找到<br/>if($type==&#39;son&#39; &amp;&amp; $reid!=0 &amp;&amp; $totalRow==0)<br/>改成<br/>if($type==&#39;son&#39; &amp;&amp; $reid!=0 &amp;&amp; $totalRow==0 &amp;&amp; $noself==&#39;&#39;)<br/><br/>这样就对了。<br/><img src="http://www.65308.cn/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://www.65308.cn/attachments/month_1405/q201452810958.zip" target="_blank">channel.lib.php下载</a><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.65308.cn/article.asp?id=85</link>
			<title><![CDATA[ 如何让iframe背景色透明]]></title>
			<author>sjx800@21cn.com(shao65308)</author>
			<category><![CDATA[网页设计]]></category>
			<pubDate>Wed,28 May 2014 09:56:08 +0800</pubDate>
			<guid>http://www.65308.cn/default.asp?id=85</guid>
		<description><![CDATA[<div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.65308.cn/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/><br/>框架页文件设置：<br/>&lt;body style=&#34;background-color:transparent&#34; &gt; 或 &lt;body bgColor=&#34;transparent&#34;&gt;<br/>方法一：<br/>&lt;iframe src=&#34;about.htm&#34; width=&#34;100%&#34; height=&#34;100%&#34; align=&#34;center&#34; scrolling=&#34;auto&#34; frameborder=&#34;0&#34; style=&#34;filter:chroma(color=#ffffff)&#34; &gt;<br/>&lt;/iframe&gt;<br/>缺点：iFrame里的白色的都变透明了。<br/>方法二：（个人推荐使用）<br/>&lt;iframe src=&#34;about.htm&#34; width=&#34;100%&#34; height=&#34;100%&#34; align=&#34;center&#34; scrolling=&#34;auto&#34; frameborder=&#34;0&#34; allowTransparency=&#34;true&#34; &gt;<br/>&lt;/iframe&gt;<br/>还有其它几个写法，可以比较一下：<br/>&lt;iframe src=&#34;about.htm&#34; allowTransparency=&#34;true&#34; style=&#34;background-color: green&#34;&gt; &lt;/iframe &gt;<br/>&lt;iframe src=&#34;about.htm&#34;&gt; &lt;/iframe &gt;<br/>&lt;iframe src=&#34;about.htm&#34; style=&#34;background-color: green&#34;&gt; &lt;/iframe &gt; <br/></div></div>]]></description>
		</item>
		
</channel>
</rss>
