07-10
11
利用AJAX实现网站内容部分读取
作者:Java伴侣 日期:2007-10-11
以下代码放在footer页
<!--动画一-->
<SPAN class=spanclass id=span_ad_01>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="461" height="187">
<param name="movie" value="flash/2.swf" />
<param name="quality" value="high" />
<embed src="flash/2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="461" height="187"></embed>
</object>
</SPAN>
<SCRIPT>ad_01.innerHTML=span_ad_01.innerHTML;span_ad_01.innerHTML="";</SCRIPT>
<!--动画二-->
<SCRIPT src="js/ff.js"></SCRIPT>
<SPAN class=spanclass id=span_ad_02>
<SCRIPT>
if (typeof(cf)=="function") {cf("flash/1.swf","834","82","0");}
</SCRIPT>
</SPAN>
<SCRIPT>
setTimeout('ad_02.innerHTML=span_ad_02.innerHTML;span_ad_02.innerHTML=""',3000);<!--等待3秒-->
</SCRIPT>
<!--QQ-->
<SPAN class=spanclass id=span_ad_03>
<SCRIPT src="js/qq.js" type=text/javascript></SCRIPT>
</SPAN>
<SCRIPT>
setTimeout('ad_03.innerHTML=span_ad_03.innerHTML;span_ad_03.innerHTML=""',2000);<!--等待2秒-->
</SCRIPT>
DHTML里面有一个setTimeout()方法(依附于window对象),可以满足你的要求。
——另外还有一个setInterval()方法,可以自己去查查。
<!--动画一-->
<SPAN class=spanclass id=span_ad_01>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="461" height="187">
<param name="movie" value="flash/2.swf" />
<param name="quality" value="high" />
<embed src="flash/2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="461" height="187"></embed>
</object>
</SPAN>
<SCRIPT>ad_01.innerHTML=span_ad_01.innerHTML;span_ad_01.innerHTML="";</SCRIPT>
<!--动画二-->
<SCRIPT src="js/ff.js"></SCRIPT>
<SPAN class=spanclass id=span_ad_02>
<SCRIPT>
if (typeof(cf)=="function") {cf("flash/1.swf","834","82","0");}
</SCRIPT>
</SPAN>
<SCRIPT>
setTimeout('ad_02.innerHTML=span_ad_02.innerHTML;span_ad_02.innerHTML=""',3000);<!--等待3秒-->
</SCRIPT>
<!--QQ-->
<SPAN class=spanclass id=span_ad_03>
<SCRIPT src="js/qq.js" type=text/javascript></SCRIPT>
</SPAN>
<SCRIPT>
setTimeout('ad_03.innerHTML=span_ad_03.innerHTML;span_ad_03.innerHTML=""',2000);<!--等待2秒-->
</SCRIPT>
DHTML里面有一个setTimeout()方法(依附于window对象),可以满足你的要求。
——另外还有一个setInterval()方法,可以自己去查查。
评论: 0 | 引用: 0 | 查看次数: 609
发表评论