红色部分是代码
把代码加到那个图片后面
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>
把代码加到那个图片后面
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>