分享友情链接滚动代码_动易Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!
调试好的友情链接,将你的{$ShowFriendSite(1,21,7,2)}代码,用下面的代码替换即可:

以下是代码:
〈div id="icefable2"〉
{$ShowFriendSite(1,21,7,2)}
〈script〉marqueesHeight=41;
stopscroll=false;
with(icefable2){
style.
style.
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〉

   

偶的效果是:http://www.dgcqwx.com/

查看更多 动易Cms教程  动易Cms模板

来源:模板无忧//所属分类:动易Cms教程/更新时间:2005-12-24
相关动易Cms教程