现在的位置就是对的啊,意思就是当鼠标放上去的时候,停止滚动,鼠标离开,继续滚动(跑马灯项目功能)
1 <marquee id="marquee" onmouseover="this.stop()" onmouseout="this.start()"> 2 <a href='javascript:detail("7f913b41725f45baae7dfa71157c67c6")'>11111111</a> 3 4 <a href='javascript:detail("ba338193f4ee4fc2a3f99c99682b585b")'>开船中间的事故</a> 5 6 <a href='javascript:detail("C18F418919ED4E15BED1113A96899EC1")'>事故通报</a> 7 8 <a href='javascript:detail("760E7E446CAD45E3B340583FB9F46034")'>通知公告</a> 9 10 </marquee> 11 12 13 14 <div class="marquee"> 15 <div class="send_gg"> 16 <span>通知公告</span> 17 </div> 18 <marquee id="marquee" onmouseover="this.stop()" onmouseout="this.start()"> 19 </marquee> 20 </div> 21 22 23 24 $(function(){ 25 var res = GetXmlBySql("SELECT WID,S_TITLE FROM (SELECT JS.*, ROWNUM R FROM (SELECT * FROM JCGL_SGTB ORDER BY S_CREATETIME DESC) JS) WHERE R BETWEEN '1' AND '5'"); 26 for(var i=0;i<res.length;i++){ 27 $("#marquee").append("<a href='javascript:detail(\""+res[i].WID+"\")'>"+res[i].S_TITLE+"</a>"); 28 } 29 }) 30 function detail(wid) { 31 layer.open({ 32 type : 2, 33 title : '事故报告', 34 area : [ '60%', '60%' ], 35 content : '${ctx}/gcgl/gcwh/shiguweihu.action?wid='+wid//${ctx}/web/GCGL/GCWH/detail.jsp 36 }); 37 }