罗百辉吧 关注:78贴子:256
  • 0回复贴,共1

自动向上滚的特效

取消只看楼主收藏回复

<tr> 
<TD align=center height=95 vAlign=center width="230">
    <SCRIPT language=JavaScript1.2>                                
//    
var marqueewidth="100%"    
//  
var marqueeheight=100    
//                                                                    var speed=1.5
//                                               
var marqueecontents='<center><font face="楷体_GB2312" color="#9966FF" > 
<div class="z">本站公告<br>欢迎来到湘楚人家☆罗百吉老家<br>DJ Jerry 罗百吉出生美国洛杉矶<br>老家湖南衡南茶市镇罗家坪<br>曾是台湾电子舞曲的先锋和代表<br>东南亚最好的舞曲原创DJ<br>本社区正在改版中<br>望吉迷们多来看看多提点建议!<br>我真心希望能和大家成为朋友!<br>我的QQ是383711725<br></div></font><center>'   
if (document.all)document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')    
function regenerate(){window.location.reload()}           
function regenerate2(){if(document.layers)  {setTimeout("window.onresize=regenerate",450) intializemarquee()}}   
function intializemarquee(){   
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)    
document.cmarquee01.document.cmarquee02.document.close()     
thelength=document.cmarquee01.document.cmarquee02.document.height   scrollit) }                                                           
function scrollit(){    
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){    
document.cmarquee01.document.cmarquee02.top-=speed   
setTimeout("scrollit()",100)}                          
else{document.cmarquee01.document.cmarquee02.top=marqueeheight    
scrollit() } }                                                               </SCRIPT>
   </TD> 


1楼2004-12-04 14:04回复