iE 7.0 的 朋友 进来看下,,我的是6.0运行正常

程序漫步 2009-04-28 07:50:15



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>测试图片效果</title>

<SCRIPT language=JavaScript type=text/JavaScript>
<!--
var sh;
marqueesWidth=610;
preLeft=0; currentLeft=0; stopscroll=false; getlimit=0;preTop=0; currentTop=0;

function scrollLeft()
{
if(stopscroll==true) return;
preLeft=marquees.scrollLeft;
marquees.scrollLeft+=2;
if(preLeft==marquees.scrollLeft)
{
//marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+1;
}
}

function scrollRight()
{
if(stopscroll==true) return;

preLeft=marquees.scrollLeft;
marquees.scrollLeft-=2;
if(preLeft==marquees.scrollLeft)
{
if(!getlimit)
{
marquees.scrollLeft=templayer.offsetWidth*2;
getlimit=marquees.scrollLeft;
}
marquees.scrollLeft-=69;
}
}

function Left()
{
stopscroll = false;
sh = setInterval("scrollLeft()",2);
}

function Right()
{
stopscroll = false;
sh = setInterval("scrollRight()",2);
}

function StopScroll()
{
stopscroll = true;
clearInterval( sh );
}



function SelectType(value)
{
document.all.sendForm.page.value = 1;
document.all.sendForm.type.value = value;

document.all.sendForm.submit();
}

function init()
{
with(marquees)
{
style.height=0;
style.width=marqueesWidth;
style.overflowX="hidden";
style.overflowY="visible";
style.align = "center";
noWrap=true;
}
}


//-->
</SCRIPT>


</head>

<body onLoad="init()">
<p> </p>
<TABLE cellSpacing=1 width=660 align=center border=0>
<TR bgColor=#f8f8f8>
<TD align=middle width=21><IMG
src="http://www.szrgb.net/text/scrollimage/image/right.gif" alt="向左流向远方-嘻嘻" width="21" height="79" border=0 style="CURSOR: pointer" onMouseDown=Left() onMouseUp=StopScroll()></TD>
<TD width="606" background="http://www.szrgb.net/text/scrollimage/image/bg.gif">
<DIV id=marquees>
<TABLE border=0>
<TR>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG

src='http://www.szrgb.net/text/scrollimage/image/1.gif' width="69" height="58" border=0 class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG src='http://www.szrgb.net/text/scrollimage/image/2.gif' width="69" height="58" border=0

class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG src='http://www.szrgb.net/text/scrollimage/image/3.gif' width="69" height="58" border=0

class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG src='http://www.szrgb.net/text/scrollimage/image/4.gif' width="69" height="58" border=0

class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG src='http://www.szrgb.net/text/scrollimage/image/5.gif' width="69" height="58" border=0

class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG

src='http://www.szrgb.net/text/scrollimage/image/1.gif' width="69" height="58" border=0 class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG src='http://www.szrgb.net/text/scrollimage/image/2.gif' width="69" height="58" border=0

class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG src='http://www.szrgb.net/text/scrollimage/image/3.gif' width="69" height="58" border=0

class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG src='http://www.szrgb.net/text/scrollimage/image/4.gif' width="69" height="58" border=0

class=imgframe></td>
</tr>
</table></TD>
<TD align=middle width=85><table cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td><IMG src='http://www.szrgb.net/text/scrollimage/image/5.gif' width="69" height="58" border=0

class=imgframe></td>
</tr>
</table></TD>
</TR>
</TABLE>
</DIV>
<DIV id=templayer style="LEFT: 0px; VISIBILITY: hidden; POSITION: absolute; TOP: 0px"></DIV></TD>
<TD align=middle width=23><img src="http://www.szrgb.net/text/scrollimage/image/left.gif" alt="向右流向远方-嘻嘻" width="23" height="79" style="CURSOR: pointer" onMouseDown=Right() onMouseUp=StopScroll()></TD>
</TR>
</TABLE>
<TABLE cellSpacing=1 width=660 align=center border=0>
<TR bgColor=#f8f8f8>
<TD align=middle width=21><IMG
src="http://www.szrgb.net/text/scrollimage/image/right.gif" alt="向左流向远方-嘻嘻" width="21" height="79" border=0 style="CURSOR: pointer" onmouseover=Left() onmouseout=StopScroll()></TD>
<TD width="606" background="http://www.szrgb.net/text/scrollimage/image/bg.gif">
<DIV id=templayer style="LEFT: 0px; VISIBILITY: hidden; POSITION: absolute; TOP: 0px"></DIV></TD>
<TD align=middle width=23><img src="http://www.szrgb.net/text/scrollimage/image/left.gif" alt="向右流向远方-嘻嘻" width="23" height="79" style="CURSOR: pointer" onmouseover=Right() onmouseout=StopScroll()></TD>
</TR>
</TABLE>
<p> </p>
</body>
</html>




为什么 到 IE7.0运行不正常。。。 帮我解决下~~~
...全文
111 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
程序漫步 2009-04-28
  • 打赏
  • 举报
回复
顶啊 ~~~~~~
陌上花花 2009-04-28
  • 打赏
  • 举报
回复
帮顶了。
程序漫步 2009-04-28
  • 打赏
  • 举报
回复
自己顶下,,求救啊 大家啊 ~~~~
dengyun_1223 2009-04-28
  • 打赏
  • 举报
回复
up
程序漫步 2009-04-28
  • 打赏
  • 举报
回复
或者 谁又类似这样 图片滚动的 代码给我 发下 最好是 DIV布局的 ~~~~

62,268

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧