大家好!有谁知道哪种像led广告循环出文字的脚本吗 很多文字在页面一个固定的位置显示,不是一次全部显示,就是像led屏幕上的广告那样。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用jquery中的infiniteCarousel这个插件 看看是不是你想要的<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>test</title><script language="javascript" type="text/javascript"> var scrollFun = function () { var box = document.getElementById("box"); var con = document.getElementById("con"); var boxWidth = box.offsetWidth; var conWidth = con.offsetWidth; var left = +con.style.left.replace("px", ""); if (left >= boxWidth) { con.style.left = -conWidth + "px"; left = -conWidth; } con.style.left = (left + 2) + "px"; setTimeout(scrollFun, 100); }; window.onload = scrollFun;</script><style type="text/css"> .box{ border:1px solid red; width:200px; height:50px; position:relative; overflow:hidden;} .con{ position:absolute; top:20px; white-space:nowrap;}</style></head><body><div id="box" class="box"> <div id="con" class="con" style="left:0px;">我在滚动</div></div></body></html> window.close()不马上关闭 js数组的深度克隆,求大神。 急!急!急! 求一个用JS做的 可以按名字排序 等排序的 点击按钮触发另一个页面的按钮的点击事件 表单验证 $('#sub').html() 无法加载div嵌套html的内容。 js动态添加文本框后前面文本框里面内容被清除 急需javascript 树,并且要有checkbox可以选择的? 如何作 pdf文件被显示完成后就把它删除,请高手指点。 问一个简单的问题 跪求一个验证表达式 js实现--禁用IE8的 ctrl+n,求大侠帮助
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
<script language="javascript" type="text/javascript">
var scrollFun = function () {
var box = document.getElementById("box");
var con = document.getElementById("con");
var boxWidth = box.offsetWidth;
var conWidth = con.offsetWidth;
var left = +con.style.left.replace("px", "");
if (left >= boxWidth) {
con.style.left = -conWidth + "px";
left = -conWidth;
}
con.style.left = (left + 2) + "px";
setTimeout(scrollFun, 100); };
window.onload = scrollFun;
</script>
<style type="text/css">
.box{ border:1px solid red; width:200px; height:50px; position:relative; overflow:hidden;}
.con{ position:absolute; top:20px; white-space:nowrap;}
</style>
</head><body>
<div id="box" class="box">
<div id="con" class="con" style="left:0px;">我在滚动</div>
</div>
</body>
</html>