<td style="width: 58px; position: relative; right: 33px; top: 9px;">
<%-- <marquee scrollAmount="2" whith="200px" style="height: 30px; width: 315px; position:relative; right:115px;">
<%foreach (BizEntity.Entity.TB_WS_INFO ws in ws_list)
{%>
<a href="http://<%=sub2(ws.WS_INFO_CONTENT)%>"><%=ws.WS_INFO_NAME%> </a>
<%} %> </marquee>--%>
<div id="demo" style="overflow: hidden; height: 30%; width: 58px; right: 115px;">
<div id="demo1" style="height: 30px; width: 315px; right: 115px; display: none">
<%foreach (BizEntity.Entity.TB_WS_INFO ws in ws_list)
{%>
<a href="http://<%=sub2(ws.WS_INFO_CONTENT)%>">
<%=ws.WS_INFO_NAME%>
</a>
<%} %>
</div>
<div id="demo2" style="height: 30px; width: 315px; right: 115px;"> <script type="text/javascript" language="javascript">
var speed=50
demo2.innerHTML=demo1.innerHTML + demo1.innerHTML + demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script> </div>
</div>
</td>
解决方案 »
- content为什么无法识别警告未定义
- js中创建含有多个sheet的excel文件
- 求助让一段JS代码行为分离
- 注册时,未同意协议书,下一步按纽不可用,用JS怎么实现啊?
- 怎么让JS转向代码并让统计显示来源!~
- document.title = "asdffdsadsf"; “Document”对象是JavaScript的对象还是HTML语言里的对象?
- prototype.js中的this
- 获取时间
- 超连接可以用title显示信息,<a href="tt.htm" title=欢迎进入>进入</a>请问select下拉表单可以吗?如何做?
- 如何在asp中的函数中写删除语句,在线等待
- 求牛人解密这段JS! 新手勿入!!!!!!
- 哪位帮忙给压缩一下这个JS文件
if(demo2.offsetWidth-demo.scrollLeft<=0){
demo.scrollLeft-=demo1.offsetWidth
}else{
demo.scrollLeft++
}
}
改成
demo.onmouseout=function() {MyMar=setInterval("Marquee()",speed)}