PageSourceSearch

http://premier-industry.cn/js/slide.js

js premier-industry.cn collected 2026-10-08 22:50:36 UTC 1,444 bytes, 36 lines download raw bytes

1// JavaScript Document
2//使用div时,请保证colee_left2与colee_left1是在同一行上.
3var speed=30//速度数值越大速度越慢
4var colee_left2=document.getElementById("colee_left2");
5var colee_left1=document.getElementById("colee_left1");
6var colee_left=document.getElementById("colee_left");
7colee_left2.innerHTML=colee_left1.innerHTML
8function Marquee3(){
9if(colee_left2.offsetWidth-colee_left.scrollLeft<=0)//offsetWidth 是对象的可见宽度
10colee_left.scrollLeft-=colee_left1.offsetWidth//scrollWidth 是对象的实际内容的宽,不包边线宽度
11else{
12colee_left.scrollLeft++
13}
14}
15var MyMar3=setInterval(Marquee3,speed)
16colee_left.onmouseover=function() {clearInterval(MyMar3)}
17colee_left.onmouseout=function() {MyMar3=setInterval(Marquee3,speed)}
18
19<!--向左滚动代码结束-->
20<!--下面是向右滚动代码-->
21
22var speed=30//速度数值越大速度越慢
23var colee_right2=document.getElementById("colee_right2");
24var colee_right1=document.getElementById("colee_right1");
25var colee_right=document.getElementById("colee_right");
26colee_right2.innerHTML=colee_right1.innerHTML
27function Marquee4(){
28if(colee_right.scrollLeft<=0)
29colee_right.scrollLeft+=colee_right2.offsetWidth
30else{
31colee_right.scrollLeft--
32}
33}
34var MyMar4=setInterval(Marquee4,speed)
35colee_right.onmouseover=function() {clearInterval(MyMar4)}
36colee_right.onmouseout=function() {MyMar4=setInterval(Marquee4,speed)}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.