<!--图片滚动模板--> <DIV id=icefable1> <TABLE cellSpacing=1 cellPadding=3 width="99%"> <TBODY> <TR vAlign=top> {$}{$$}<TD align=middle><a href="{$=curl("{$baseurl}", iurl('detail', {$id}, {$urltype}, 'folder={$createfolder};filetype={$createfiletype};time={$time}'))}" target="_blank"><IMG width=77 height=108 src="/article/{$=split("{$content_images_list}", "|")(0)}" border=1><BR>{$topic}</a> </TD>{$$}{$} </TR> </TBODY> </TABLE> </DIV> <DIV id=icefable2 style="Z-INDEX: 1; VISIBILITY: hidden; POSITION: absolute"></DIV>
<SCRIPT> marqueesHeight=100; stopscroll=false; with(icefable1){ style.width=450; style.height=marqueesHeight; style.overflowX='visible'; style.overflowY='hidden'; noWrap=true; onmouseover=new Function('stopscroll=true'); onmouseout=new Function('stopscroll=false'); } preTop=0; currentTop=30; 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==5) //滚动距离 { stoptime+=1; currentTop-=1; if(stoptime==5) //滚动间距 { currentTop=0; stoptime=0; } } else { preTop=icefable1.scrollTop; icefable1.scrollTop+=1; if(preTop==icefable1.scrollTop){ icefable1.scrollTop=120; icefable1.scrollTop+=1; } }
} </SCRIPT> 方法同:[url]http://www.jtbc.net.cn/forum/?type=detail&sid=2&tid=3330[/url]
帖子被 silin 于 2007-04-13 10:11:02 编辑过 |