向上停顿几秒的滚动代码

红色部分是代码

把代码加到那个图片后面
DIV class=GoodsClassWarp>
<DIV class=title>
<DIV class=name><IMG alt=最新商品 src="images/newgoods.gif"></DIV>
<DIV class=viewmore><A href="goods_search_list.dwt?gtype=new">>>查看更多最新商品</A></DIV></DIV>
<DIV class=ItemsWarp>   <div id="icefable1">
<!-- BEGIN goods_row 0,4,2 -->

<DIV class=items>
<DIV class=goodpic style="WIDTH: 130px; HEIGHT: 130px"><A href="goods_details.dwt?goodsid={goods_id}&productname={goods_seoname}" target=_blank>{goods_small_image}</A></DIV>
<H1 style="WIDTH: 136px; HEIGHT: 28px"><A title={goods_name} href="goods_details.dwt?goodsid={goods_id}&productname={goods_seoname}" target=_blank>{goods_name}</A></H1>
<DL>
<!-- CTRLBEGIN marketpriceshow -->

<DD>市场价:{goods_price1}{goods_buybutton}
<!-- CTRLEND marketpriceshow -->

<DD>会员价:<SPAN class=price>{goods_price2}</SPAN> <A href="addmembergoods.do?goodsid={goods_id}"><IMG alt=收藏 src="images/fav.gif"></A>
<!-- CTRLBEGIN savepriceshow -->

<DD>{goods_paybutton} </DD></DL>
<DIV class=button> <A href="goods_details.dwt?goodsid={goods_id}&productname={goods_seoname}" target=_blank></A> <A href="addmembergoods.do?goodsid={goods_id}"></A></DIV></DIV>
<!-- END goods_row -->
</DIV></DIV>    <script>marqueesHeight=290; stopscroll=false; with(icefable1){    style.width=600;    style.height=marqueesHeight;    style.overflowX="visible";    style.overflowY="hidden";    noWrap=true;    οnmοuseοver=new Function("stopscroll=true");    οnmοuseοut=new Function("stopscroll=false");   }   preTop=0; currentTop=290; stoptime=0;   icefable1.innerHTML+=icefable1.innerHTML;   

function init_srolltext(){   icefable1.scrollTop=0;   setInterval("scrollUp()",30); }init_srolltext();

function scrollUp(){   if(stopscroll==true) return;   currentTop+=1;   if(currentTop==291)   {    stoptime+=1;    currentTop-=1;    if(stoptime==289)    {     currentTop=0;     stoptime=0;        }   }   else {      preTop=icefable1.scrollTop;    icefable1.scrollTop+=1;    if(preTop==icefable1.scrollTop){      icefable1.scrollTop=290;      icefable1.scrollTop+=1;         }   }

}                </script></div>
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值