只需一步,快速开始
<span style="float:left;width:30px;height:15px;background:url(/images/firefox/icon_new.gif) no-repeat;"></span> <span id="newtopic" style="width:435;height:16px;overflow:hidden;line-height:1.3em;margin-left:5px;float:left;" onmouseover="iScrollAmount=0" onmouseout="iScrollAmount=1"> <!--{loop $_DCACHE['newthread'] $toploop}--> <a style="text-decoration:underline;" href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">主题:$toploop[subjectc] 所属版块:$toploop[name] 作者:$toploop[author]</a><br /> <!--{/loop}--> </span> <script> var oMarquee = document.getElementById("newtopic"); //滚动对象 var iLineHeight = 16; //单行高度,像素 var iLineCount = 10; //实际行数 var iScrollAmount = 1; //每次滚动高度,像素 function run() { oMarquee.scrollTop += iScrollAmount; if ( oMarquee.scrollTop == iLineCount * iLineHeight ) oMarquee.scrollTop = 0; if ( oMarquee.scrollTop % iLineHeight == 0 ) { window.setTimeout( "run()", 2000 ); } else { window.setTimeout( "run()", 50 ); } } oMarquee.innerHTML += oMarquee.innerHTML; window.setTimeout( "run()", 2000 ); </script>
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-11-15 17:52 , Processed in 0.032105 second(s), 3 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.