纯js不间断滚动代码 来源: http://www.cssrain.cn/demo/Class-Of-Marquee-Scroll/MSClass.html 使用方法: 应用说明:页面包含 创建实例: //参数直接赋值法 new Marquee("marquee") new Marquee("marquee","top") ...... new Marquee("marquee",0,1,760,52) new Marquee("marquee","top",1,760,52,50,5000)
代码如下: function settime() { var myyear,mymonth,myweek,myday,mytime,mymin,myhour,mysec; var mydate=new Date(); myyear=mydate.getFullYear(); mymonth=mydate.getMonth(); myday=mydate.getDate(); myhour=mydate.getHours(); mymin=mydate.getMinutes(); mysec=my