| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 688 人关注过本帖
标题:细节问题怎么解决:图片移动多次后总是错位。
只看楼主 加入收藏
gg9mm
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-6-11
收藏
 问题点数:0 回复次数:3 
细节问题怎么解决:图片移动多次后总是错位。

细节问题怎么解决:图片移动多次后总是错位。

细节问题怎么解决:图片移动多次后总是错位。
我需要很多排图片向上分组移动,但前几排很好,多移动一会就开始慢慢错位了,请大虾相助。
代码如下:


<style type=text/css>
a:link { text-decoration:none; color:#0000FF;}
a:vISIted { text-decoration:none; color:#000000;}
a:hover { text-decoration:underline; color:#b67e16;}
a:active { text-decoration:none; color:#FF9900;}
table,body { font-family: "宋体"; font-size: 9pt;}
TD {FONT-SIZE: 9pt ; COLOR: #000000; LINE-HEIGHT: 100%}
</style>
<div align="center">
<DIV id=icefable1 style="overflow:hidden;height:80px;line-height:0px">
<table border="0" cellspacing="0" cellpadding="0" width="775" align="center" height="80">
<tr valign="MIDDLE" align="center">
<td width="100%" height="80" bgcolor="#CC99FF">第1排</td>
</tr>
<tr valign="MIDDLE" align="center">
<td width="100%" bgcolor="#666666" height="80">第2排</td>
</tr>
<tr valign="MIDDLE" align="center">
<td width="100%" bgcolor="#33CC33" height="80">第3排</td>
</tr>
<tr valign="MIDDLE" align="center">
<td width="100%" bgcolor="#006699" height="80">第4排</td>
</tr>
<tr valign="MIDDLE" align="center">
<td width="100%" bgcolor="#FF9999" height="80">第5排</td>
</tr>
<tr valign="MIDDLE" align="center">
<td width="100%" bgcolor="#33FFCC" height="80">第6排</td>
</tr>
<tr valign="MIDDLE" align="center">
<td width="100%" bgcolor="#99FF99" height="80">第7排</td>
</tr>
<tr valign="MIDDLE" align="center">
<td width="100%" bgcolor="#FF0000" height="80">第8排</td>
</tr>
</table></DIV><DIV id=icefable2 style="Z-INDEX: 5; VISIBILITY: hidden; POSITION: absolute;height:80px;line-height:0px"></DIV></div>
<SCRIPT>
marqueesHeight=80;stopscroll=false;
icefable1.scrollTop=0;with(icefable1){
style.width=0;style.height=marqueesHeight;style.overflowX='visible';style.overflowY='hidden';
noWrap=true;onmouseover=new Function('stopscroll=true');onmouseout=new Function('stopscroll=false');}preTop=0; currentTop=0;stoptime=0;
function init_srolltext()
{icefable2.innerHTML='';icefable2.innerHTML+=icefable1.innerHTML;
icefable1.innerHTML=icefable2.innerHTML+icefable2.innerHTML;
setInterval('scrollUp()',6);}
function scrollUp()
{if(stopscroll==true) return;currentTop+=1;
if(currentTop==80){stoptime+=1;currentTop-=1;
if(stoptime==80){currentTop=0;stoptime=0;}}else{preTop=icefable1.scrollTop;icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){ icefable1.scrollTop=icefable2.offsetHeight-marqueesHeight;
icefable1.scrollTop+=1;
}}}
init_srolltext();
</SCRIPT>
<SCRIPT FOR='EccoolAd' EVENT='fscommand()' LANGUAGE='JavaScript'>
AdLayer1.style.visibility='hidden';
AdLayer2.style.visibility='hidden';
</script>

搜索更多相关主题的帖子: 细节 错位 
2006-06-11 09:16
gg9mm
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-6-11
收藏
得分:0 
紧急求大虾看看。我多次遇到这个问题,图片只有2排时没事,多排就成问题了。
2006-06-11 09:17
gg9mm
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-6-11
收藏
得分:0 
我也想要这个效果,此网址页面底下的图片翻动效果。不知哪里有正确代码
http://www.neobiz.net/
2006-06-11 09:22
gg9mm
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-6-11
收藏
得分:0 
已解决。currentTop-1==80
2006-06-11 11:02
快速回复:细节问题怎么解决:图片移动多次后总是错位。
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.027838 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved