|
<style type="text/css">
<!--
td {font-size:13px}
.rollboder {BORDER: #bcbcbc 1px solid;}
.rollleft {FLOAT: left; WIDTH: 240px}
.rollleft STRONG {COLOR: #666}
.rollcenter {BORDER-RIGHT: #bcbcbc 1px solid; BORDER-LEFT: #bcbcbc 1px solid; WIDTH: 30px; TEXT-ALIGN: center}
.rollright {FLOAT: right; WIDTH: 40px; TEXT-ALIGN: center}
.rollright IMG {VERTICAL-ALIGN: middle}
-->
</style>
<SCRIPT type=text/javascript>
<!--
var rollText_k=6; //菜单总数
var rollText_i=1; //菜单默认值
//setFocus1(0);
rollText_tt=setInterval("rollText(1)",8000);
function rollText(a){
clearInterval(rollText_tt);
rollText_tt=setInterval("rollText(1)",8000);
rollText_i+=a;
if (rollText_i>rollText_k){rollText_i=1;}
if (rollText_i==0){rollText_i=rollText_k;}
//alert(i)
for (var j=1; j<=rollText_k; j++){
document.getElementById("rollTextMenu"+j).style.display="none";
}
document.getElementById("rollTextMenu"+rollText_i).style.display="block";
document.getElementById("pageShow").innerHTML = rollText_i+"/"+rollText_k;
}
//-->
</SCRIPT>
<TABLE height="39" border="0" cellspacing="0" class=rollboder>
<TBODY>
<TR>
<TD height="32" class=rollleft>
<DIV class=rollTextMenus>
<DIV id=rollTextMenu1 style="DISPLAY: block"><STRONG> 竞价展示:</STRONG> <A
href="http://oocn.258club.com/viewthread.php?tid=329&extra=page%3D1" target="_blank">会员求助问题 点击入内
</A></DIV>
<DIV id=rollTextMenu2 style="DISPLAY: none"><STRONG> 竞价展示:</STRONG> <A
href="http://oocn.258club.com/forumdisplay.php?fid=2" target="_blank">SCLUB精品风格</A></DIV>
<DIV id=rollTextMenu3 style="DISPLAY: none"><STRONG> 竞价展示:</STRONG> <A
href="http://oocn.258club.com/forumdisplay.php?fid=4" target="_blank">精品代码</A></DIV>
<DIV id=rollTextMenu4 style="DISPLAY: none"><STRONG> 竞价展示:</STRONG> <A
href="http://oocn.258club.com/forumdisplay.php?fid=19" target="_blank">素材分享</A></DIV>
<DIV id=rollTextMenu5 style="DISPLAY: none"><STRONG> 竞价展示:</STRONG> <A
href="http://oocn.258club.com/forumdisplay.php?fid=19" target="_blank">图片分享 </A></DIV>
<DIV id=rollTextMenu6 style="DISPLAY: none"><STRONG> 竞价展示:</STRONG> <A
href="http://oocn.258club.com/forumdisplay.php?fid=20" target="_blank">OOCN求助</A></DIV></DIV></TD>
<TD class=rollcenter id=pageShow>3/6</TD>
</TR></TBODY></TABLE>[quote]
原来的代码
[quote]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>可翻阅上一条下一条的文字广告</title>
<style type="text/css">
<!--
td {font-size:9pt}
.rollboder {BORDER: #bcbcbc 1px solid;}
.rollleft {FLOAT: left; WIDTH: 238px}
.rollleft STRONG {COLOR: #666}
.rollcenter {BORDER-RIGHT: #bcbcbc 1px solid; BORDER-LEFT: #bcbcbc 1px solid; WIDTH: 30px; TEXT-ALIGN: center}
.rollright {FLOAT: right; WIDTH: 41px; TEXT-ALIGN: center}
.rollright IMG {VERTICAL-ALIGN: middle}
-->
</style>
</head>
<body>
<SCRIPT type=text/javascript>
var rollText_k=4;
var rollText_i=1;
rollText_tt=setInterval("rollText(1)",8000);
function rollText(a){
clearInterval(rollText_tt);
rollText_tt=setInterval("rollText(1)",8000);
rollText_i+=a;
if (rollText_i>rollText_k){rollText_i=1;}
if (rollText_i==0){rollText_i=rollText_k;}
for (var j=1; j<=rollText_k; j++){
document.getElementById("rollTextMenu"+j).style.display="none";
}
document.getElementById("rollTextMenu"+rollText_i).style.display="block";
document.getElementById("pageShow").innerHTML = rollText_i+"/"+rollText_k;
}
</SCRIPT>
<TABLE height="29" border="0" cellspacing="0" class=rollboder>
<TBODY>
<TR>
<TD height="22" class=rollleft>
<DIV class=rollTextMenus>
<DIV id=rollTextMenu1 style="DISPLAY: block"><STRONG> 敬告栏:</STRONG> <A
href="#" target="_blank">想找高持量源码么?</A></DIV>
<DIV id=rollTextMenu2 style="DISPLAY: none"><STRONG> 最新信息:</STRONG> <A
href="/" target="_blank">JavaScript特效大全</A></DIV>
<DIV id=rollTextMenu3 style="DISPLAY: none"><STRONG> 广而告之:</STRONG> <A
href="#" target="_blank">精品JavaScript代码</A></DIV>
<DIV id=rollTextMenu4 style="DISPLAY: none"><STRONG> 时政新闻:</STRONG> <A
href="#" target="_blank">庆祝建国60周年</A></DIV>
</DIV></TD>
<TD class=rollcenter id=pageShow>3/6</TD>
<TD class=rollright><A title=上一条 href="javascript:rollText(-1);"><IMG src="/jscss/demoimg/200907/last.gif"
alt=上一条 width="11" height="11" border="0"></A> <A title=下一条 href="javascript:rollText(1);"><IMG src="/jscss/demoimg/200907/next.gif"
alt=下一条 width="11" height="11" border="0"></A></TD>
</TR></TBODY></TABLE>
</body>
</html>
歡迎光臨 SCLUB免費論壇申請-使用者論壇 (http://utmall.com/discuz/) | Powered by Discuz! 7.2 |