JTBC(CMS)

开源与免费的跨平台网站内容管理系统解决方案

腾讯交流群: 2254994
技术支持群: 27032719
首页 » 在线论坛 » ASP版本 
帖子内容
1 楼
silin
注册会员
积分 1332
注册 2007-04-03
     
图片滚动模板[分享]
<!--图片滚动模板-->
<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 编辑过
2007-04-13 10:07:45 我的网站:http://www.silin.name/由JTBC改造而来,改造而去,还在改中!
2 楼
wangbo
注册会员
积分 2486
注册 2006-12-28
     
不错 给你加2个兰色标题.:)
2007-04-13 11:00:45 [承接]【ASP◆ASP.NET◆PHP】JTBC模块◆插件开发◆功能加强QQ709784021
3 楼
achang
注册会员
积分 16
注册 2007-07-03
     
收下以后会有用的
2007-07-03 14:02:23
4 楼
mxfdream
注册会员
积分 128
注册 2009-02-25
     
添加成调用模板3
然后{$=itransfer('top', '3', 'topx=10;tnum=30;genre=article')}
调用 怎么提示下标溢出 出现乱码
2009-03-04 13:39:29
5 楼
qq3123748
注册会员
积分 6
注册 2010-08-21
     
回复: 图片滚动模板[分享]
为什么我弄上只滚动一次呢?
2010-08-24 11:03:10