<FONT size=2><div id="colee_left" style="overflow:hidden;width:100%;" class="module cl ml"> <table cellpadding="0" cellspacing="0" border="0"> <tr><td id="colee_left1" valign="top" align="center"> <table cellpadding="2" cellspacing="0" border="0"> <tr align="center"> <ul> [loop] <td> <li style="width: {picwidth}px;"> <a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" /></a> <p><a href="{url}" title="{title}"{target}>{title}</a></p> </li></td> [/loop] </ul> </tr> </table> </td> <td id="colee_left2" valign="top"></td> </tr> </table> </div> <script> var speed=30//速度数值越大速度越慢 var colee_left2=document.getElementById("colee_left2"); var colee_left1=document.getElementById("colee_left1"); var colee_left=document.getElementById("colee_left"); colee_left2.innerHTML=colee_left1.innerHTML function Marquee3(){ if(colee_left2.offsetWidth-colee_left.scrollLeft<=0) colee_left.scrollLeft-=colee_left1.offsetWidth else{ colee_left.scrollLeft++ } } var MyMar3=setInterval(Marquee3,speed) colee_left.onmouseover=function() {clearInterval(MyMar3)} colee_left.onmouseout=function() {MyMar3=setInterval(Marquee3,speed)} </script></FONT> |