如何是marquee的文字在初始的时候是不滚动的? <marquee id=test width=100>test test</marquee><input type=button value=start onclick="test.start()"> <script>test.stop()</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <marquee id=marquee1 width=200 onmouseout="this.stop();">laskdjfkjsdf</marquee><input type=button vlaue="start" onclick="marquee1.start();"> 用stop方法的话初始化的时候marquee里面什么都没有,希望得到的效果是初始化的时候文字在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="1.htm"><img src="csdn.gif"></a><a href="2.htm"><img src="csdn2.gif"></a><a href="3.htm"><img src="csdn.gif"></a><a href="4.htm"><img src="csdn2.gif"></a></div><div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div><input type=button value=test onclick="init()"><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);}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> 求一段字符处理的js特效 网页版的n体问题模拟 想要用DIV制作无缝链接的广告哦,可是不知道哪错了,请高手指教一下,谢谢啦 二进制 图片 请教:用户登录验证问题 这句话竟然不能录入?var oS = document . getElements ByName( name )[0]; 怎样将变量通过js传递到子窗口 怎么样得到页面中iframe当前的路径? 天啊。。~~~经验。。。~~~ 请问,我想在IE的工具条上加一个按健,当这个按键被点击时将当前网页作为邮件发出去???? 小弟初来乍到,请教各位大,来者有分。 有可能隐藏Listbox吗?
<input type=button vlaue="start" onclick="marquee1.start();">
<!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="1.htm"><img src="csdn.gif"></a>
<a href="2.htm"><img src="csdn2.gif"></a>
<a href="3.htm"><img src="csdn.gif"></a>
<a href="4.htm"><img src="csdn2.gif"></a>
</div>
<div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div>
<input type=button value=test onclick="init()">
<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);
}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>