| 分享友情链接滚动代码 |
|
| 作者:佚名 文章来源:动易科技 点击数: 更新时间:2006-11-8 15:53:53 |
|
|
调试好的友情链接,将你的{$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〉 |
偶的效果是:http://www.dgcqwx.com/
|
|
|
| 文章录入:qiwenjing 责任编辑:qiwenjing |
|
上一篇文章: 一个滚动代码
下一篇文章: 让你的网站图片滚动 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |