论坛排行榜[滚动+图片+随风格大小变化]
论坛排行榜[滚动+图片+随风格大小变化]
代码:
<table cellspacing="0" cellpadding="0" border="0" width="99%" align="center" bgcolor="#DBEFFB"><tr><td>
<table border="0" cellspacing="1" cellpadding="4" width="100%" style="table-layout: fixed; word-wrap: break-word"><tr class="header">
<td width="25%" align="center">论坛精彩帖图</td>
<td width="25%" align="center">最新发表主题</td>
<td width="25%" align="center">今日发贴最多会员</td>
<td width="25%" align="center">最新回复主题</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" onmouseover
="this.style.backgroundColor='#F1F9FE'"onMouseOut
="this.style.backgroundColor='#FFFFFF'"> <script language=JavaScript>
<!--
var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;
var jumpUrl="http://sports.tom.com/";
imgLink[1]="第一幅图片连接地址";
imgLink[2]="第二幅图片连接地址";
imgLink[3]="第三幅图片连接地址";
imgLink[4]="第四幅图片连接地址";
imgLink[5]="第五幅图片连接地址";imgUrl[1]="第一幅图片地址";
imgUrl[2]="第二幅图片地址";
imgUrl[3]="第三幅图片地址";
imgUrl[4]="第四幅图片地址";
imgUrl[5]="第五幅图片地址";var imgPre=new Array();
var j=0;
for (i=1;i<=imgUrl.length-1;i++) {
if(imgLink!="") {j++;}
else {break;}
}
function playTran(){
if (document.all)
imgInit.filters.revealTrans.play();
}
var key=0;
function nextAd(){
if(adNum<j)adNum++ ;
else adNum=1;
if( key==0 ){key=1;}
else if (document.all){
imgInit.filters.revealTrans.Transition=6;
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src=imgUrl[adNum];
jumpUrl=imgLink[adNum];
theTimer=setTimeout("nextAd()", 7000);
}
function goUrl(){
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '') window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
//-->
</script>
<a href="javascript:goUrl()"><img style="FILTER:
revealTrans(duration=2,transition=6);border:1 solid black" src="javascript:nextAd()" width=225
border=0 name=imgInit height="160"></a>
</body>
</html>
<td bgcolor="#FFFFFF" onmouseover
="this.style.backgroundColor='#F1F9FE'" onMouseOut
="this.style.backgroundColor='#FFFFFF'"><MARQUEE onmouseover=stop() onmouseout=start() scrollAmount=2 direction=up width=330 height=152> JS调用代码
<td bgcolor="#FFFFFF" onmouseover
="this.style.backgroundColor='#F1F9FE'" onMouseOut
="this.style.backgroundColor='#FFFFFF'"> <MARQUEE onmouseover=stop() onmouseout=start() scrollAmount=2 direction=up width=330 height=152> JS调用代码
<td bgcolor="#FFFFFF" onmouseover
="this.style.backgroundColor='#F1F9FE'" onMouseOut
="this.style.backgroundColor='#FFFFFF'"> <MARQUEE onmouseover=stop() onmouseout=start() scrollAmount=2 direction=up width=330 height=152> JS调用代码
</td>
</tr>
</table></td></tr></table>
4.然后把上面的代码放在:(这样可以每个版面都显示)
系统设置——Discuz! 选项——基本设置——网站备案信息代码:
系统设置——Discuz! 选项——基本设置——搜索引擎优化-其他头部信息:
也可以保存为文件调用/