效果:http://db.kingsoft.com/publish/ssi/2005/08/24/o929.shtml HTML: <html> <head> <title>热点</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> <!-- body { border: 0; background-color: #ffffff; margin-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; } table { font-size: 12px; color: #000000; font-family: "宋体"; } a { text-decoration: underline; color: #005bc6; } a:hover { text-decoration: underline; color: #FF0000; } /* 最近更新文字 */ a.new:link, a.new:visited { text-decoration: underline; color: #FF0000; } a.new:hover { text-decoration: underline; color:#FF0000; } --> </style> </head> <body bgcolor="#FFFFFF"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="369"> <div id="table01" style="width: 369px;" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="19" bgcolor="#FFFFFF" style="padding:0 0 0 5"><a href="http://db.kingsoft.com/news/seleak/2006/04/11/80581.shtml" target="_blank" class="new">微软发布四月安全公告 修补五项重大安全漏洞</a> </td> </tr> <tr> <td height="19" bgcolor="#FFFFFF" style="padding:0 0 0 5" ><a href="http://db.kingsoft.com/news/report/2006/04/11/80612.shtml" target="_blank" class="new">《金山毒霸》与美国大片《防火墙》合作推广</a></td> </tr> <tr> <td height="19" bgcolor="#FFFFFF" style="padding:0 0 0 5" ><a href="http://js.kingsoft.com/" target="_blank" class="new">金山网游加速器 快人一步 胜人一筹</a></td> </tr> <tr> <td height="19" bgcolor="#FFFFFF" style="padding:0 0 0 5" ><a href="http://ask.xoyo.com/db/guide.shtml" target="_blank" class="new">逍遥问安全栏目上线 十五类安全问答为您解忧</a></td> </tr> <tr> <td height="19" bgcolor="#FFFFFF" style="padding:0 0 0 5" ><a href="http://61.136.58.111/ad/click.php?pid=514&url=dd.iciba.com" target="_blank" class="new">词霸豆豆——轻巧免费的查词翻译工具</a> <a href="http://61.136.58.111/ad/click.php?pid=514&url=dd.iciba.com/down.shtml" target="_blank" class="new">立即下载体验</a></td> </tr> </table></td> </tr> </table> </div></td> </tr> </table> <script language="javascript" type="text/javascript"> /* 定义常量(可根据实际情况做调整) */ marqueetable = document.all.table01; scrollheight = 19; //滚动高度 scrollline = 1; //滚动内容的行数 scrolltimeout = 10; //滚动刷新的时间(毫秒) // 滚动停留时检测的次数, // scrollstoptimes * scrolltimeout 为实际的停留时间 scrollstoptimes = 200; /* 初始化滚动设置(无需修改) */ marqueetable.scrollTop = 0; stopscroll1 = false; startmarqueetop = 0; offsettop = scrollheight; marqueestoptime = 0; marqueetable.innerHTML += marqueetable.innerHTML; with (marqueetable) { style.width = 500; style.height = scrollheight; style.overflowX = "hidden"; style.overflowY = "hidden"; noWrap = true; onmouseover = new Function("stopscroll1 = true"); onmouseout = new Function("stopscroll1 = false"); } function setmarqueetime() { marqueetable.scrollTop = 0; setInterval("marqueeup()", scrolltimeout); //设置滚动的时间 } function marqueeup() { if (stopscroll1 == true) return; offsettop += 1; if (offsettop == scrollheight + 1) { marqueestoptime += 1; offsettop -= 1; if (marqueestoptime == scrollstoptimes) { //停留的时间 offsettop = 0; marqueestoptime = 0; } } else { startmarqueetop = marqueetable.scrollTop; marqueetable.scrollTop += 1; if (startmarqueetop == marqueetable.scrollTop) { marqueetable.scrollTop = scrollheight * (scrollline - 1); marqueetable.scrollTop += 1; } } } setmarqueetime(); </script> </body> </html>