如何实现使图片走马灯一样? <marquee><img src=1.gif><img src=2.gif><img src=3.gif></marquee> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <marquee><img src=1.gif></marquee> <marquee><img src="1.jpg"><img src="2.jpg"></marquee> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>连续向左滚动</title><style type="text/css"><!--body { font-size: 9pt; color: #000000;}a { color: #0000FF; text-decoration: none;}a:hover { color: #FF0000; text-decoration: underline;}--></style></head><body><div id="marquees"><a href="#">链接一</a><a href="#">链接二</a><a href="#">链接三</a><a href="#">链接四</a></div><div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div><script language="JavaScript">marqueesWidth=200;with(marquees){style.height=0;style.width=marqueesWidth;style.overflowX="hidden";style.overflowY="visible";noWrap=true;onmouseover=new Function("stopscroll=true");onmouseout=new Function("stopscroll=false");}preLeft=0; currentLeft=0; stopscroll=false;function init(){templayer.innerHTML="";while(templayer.offsetWidth<marqueesWidth){templayer.innerHTML+=marquees.innerHTML;}marquees.innerHTML+=templayer.innerHTML;setInterval("scrollLeft()",10);}init();function scrollLeft(){if(stopscroll==true) return;preLeft=marquees.scrollLeft;marquees.scrollLeft+=1;if(preLeft==marquees.scrollLeft){ marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+1;}}</script></body></html> <marquee onmouseout=this.start() onmouseover=this.stop() scrollAmount=3><img src="1.jpg"><img src="2.jpg"><img src="3.jpg"></marquee> 自己去看:http://www.38js.com/WebAngel/Js/Js.asp?catid=18&ToPage=2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>连续向左滚动</title><style type="text/css"><!--body { font-size: 9pt; color: #000000;}a { color: #0000FF; text-decoration: none;}a:hover { color: #FF0000; text-decoration: underline;}--></style></head><body><div id="marquees"><a href="#">链接一</a><a href="#">链接二</a><a href="#">链接三</a><a href="#">链接四</a></div><div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div><script language="JavaScript">marqueesWidth=200;with(marquees){style.height=0;style.width=marqueesWidth;style.overflowX="hidden";style.overflowY="visible";noWrap=true;onmouseover=new Function("stopscroll=true");onmouseout=new Function("stopscroll=false");}preLeft=0; currentLeft=0; stopscroll=false;function init(){templayer.innerHTML="";while(templayer.offsetWidth<marqueesWidth){templayer.innerHTML+=marquees.innerHTML;}marquees.innerHTML+=templayer.innerHTML;setInterval("scrollLeft()",10);}init();function scrollLeft(){if(stopscroll==true) return;preLeft=marquees.scrollLeft;marquees.scrollLeft+=1;if(preLeft==marquees.scrollLeft){ marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+1;}}</script></body></html> 标题: 不间断图片滚动http://www.1000script.com/script/go.asp?id=299自己去看吧 jquery 弹出对话框被activex控件遮挡问题 这两句代码要怎么理解啊? 发现一个问题,google浏览器是不是不能最大化? javascript 如何实现 stripslahes 关于限制文本框输入的一点疑惑 JS表格折叠 谷歌浏览器 加载js 问题依旧 怎么做“正在加载中,请稍候。。。。。。”的页面??就象csdn用户登录时一样。。。。。 <input type="file">問題﹐感覺有bug﹗ 当鼠标移开的时候就隐藏层的问题... IE6中控制无边窗口大小的问题。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>连续向左滚动</title>
<style type="text/css">
<!--
body {
font-size: 9pt;
color: #000000;
}
a {
color: #0000FF;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: underline;
}
-->
</style>
</head><body><div id="marquees">
<a href="#">链接一</a>
<a href="#">链接二</a>
<a href="#">链接三</a>
<a href="#">链接四</a>
</div><div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div>
<script language="JavaScript">marqueesWidth=200;with(marquees){
style.height=0;
style.width=marqueesWidth;
style.overflowX="hidden";
style.overflowY="visible";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preLeft=0; currentLeft=0; stopscroll=false;function init(){
templayer.innerHTML="";
while(templayer.offsetWidth<marqueesWidth){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML+=templayer.innerHTML;
setInterval("scrollLeft()",10);
}init();function scrollLeft(){
if(stopscroll==true) return;
preLeft=marquees.scrollLeft;
marquees.scrollLeft+=1;
if(preLeft==marquees.scrollLeft){
marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+1;
}
}
</script>
</body>
</html>
<img src="1.jpg"><img src="2.jpg"><img src="3.jpg">
</marquee>
http://www.38js.com/WebAngel/Js/Js.asp?catid=18&ToPage=2
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>连续向左滚动</title>
<style type="text/css">
<!--
body {
font-size: 9pt;
color: #000000;
}
a {
color: #0000FF;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: underline;
}
-->
</style>
</head><body><div id="marquees">
<a href="#">链接一</a>
<a href="#">链接二</a>
<a href="#">链接三</a>
<a href="#">链接四</a>
</div><div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div>
<script language="JavaScript">marqueesWidth=200;with(marquees){
style.height=0;
style.width=marqueesWidth;
style.overflowX="hidden";
style.overflowY="visible";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preLeft=0; currentLeft=0; stopscroll=false;function init(){
templayer.innerHTML="";
while(templayer.offsetWidth<marqueesWidth){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML+=templayer.innerHTML;
setInterval("scrollLeft()",10);
}init();function scrollLeft(){
if(stopscroll==true) return;
preLeft=marquees.scrollLeft;
marquees.scrollLeft+=1;
if(preLeft==marquees.scrollLeft){
marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+1;
}
}
</script>
</body>
</html>
自己去看吧