|
动易实现友情链接滚动显示
先调试好你的友情链接的显示样式,比如{$ShowFriendSite(1,21,7,2)}
把这个标签换成如下代码:
以下是引用片段: 〈div id="icefable2"〉 {$ShowFriendSite(1,21,7,2)} 〈script〉marqueesHeight=41; stopscroll=false; with(icefable2){ style.width=750; style.height=marqueesHeight; style.overflowX="visible"; style.overflowY="hidden"; noWrap=true; onmouseover=new Function("stopscroll=true"); onmouseout=new Function("stopscroll=false"); } preTop=0; currentTop=41; stoptime=0; icefable2.innerHTML+=icefable2.innerHTML; function init_srolltext(){ icefable2.scrollTop=0; setInterval("scrollUp()",50); }init_srolltext(); function scrollUp(){ if(stopscroll==true) return; currentTop+=1; if(currentTop==42) { stoptime+=1; currentTop-=1; if(stoptime==40) { currentTop=0; stoptime=0; } } else { preTop=icefable2.scrollTop; icefable2.scrollTop+=1; if(preTop==icefable2.scrollTop){ icefable2.scrollTop=41; icefable2.scrollTop+=1; } } } 〈/script〉 〈/div〉 | 红字部分是你的原始标签哦~ |