首页 > CMS > 动易CMS > 正文

分享友情链接滚动代码

2024-09-10 21:53:51
字体:
来源:转载
供稿:网友
调试好的友情链接,将你的{$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/

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选