|
@@ -1,7 +1,7 @@
|
|
|
-var marquee2 = document.getElementById("marquee2");
|
|
|
- marquee2.start();
|
|
|
- var marquee1 = document.getElementById("marquee1");
|
|
|
- marquee1.start();
|
|
|
+// var marquee2 = document.getElementById("marquee2");
|
|
|
+// marquee2.start();
|
|
|
+// var marquee1 = document.getElementById("marquee1");
|
|
|
+// marquee1.start();
|
|
|
$(function() {// 初始化内容
|
|
|
$("#gogogo").click(function(){
|
|
|
window.location="index2.html"
|
|
@@ -887,7 +887,7 @@ $(function() {// 初始化内容
|
|
|
var obj=topList[i];
|
|
|
|
|
|
$("#topListBody").append(
|
|
|
- $("<tr> <td>"+obj.orgName+" </td> <td>"+obj.score+" </td></tr>")
|
|
|
+ $("<tr> <td>"+obj.orgName+" </td> <td style='width: 100px;'>"+obj.score+" </td></tr>")
|
|
|
);
|
|
|
}
|
|
|
// <tr>
|
|
@@ -919,7 +919,7 @@ $(function() {// 初始化内容
|
|
|
|
|
|
|
|
|
$("#errorListBody").append(
|
|
|
- $("<tr> <td>"+obj.name+" </td> <td>"+map.get(obj.level)+" </td><td>"+map.get(obj.type)+" </td><td>"+(Y+M+D)+" </td></tr>")
|
|
|
+ $("<tr> <td>"+obj.name+" </td> <td style='width: 100px;'>"+map.get(obj.level)+" </td><td style='width: 80px;'>"+map.get(obj.type)+" </td><td style='width: 120px;'>"+(Y+M+D)+" </td></tr>")
|
|
|
);
|
|
|
}
|
|
|
createBar(data.obj1.rows1.length,202-data.obj1.rows1.length,"已关联工会","container",data.obj1.rows1.length+"/"+202);
|
|
@@ -1309,4 +1309,49 @@ $(function() {// 初始化内容
|
|
|
//console.log(params)
|
|
|
});
|
|
|
}
|
|
|
-});
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ var speed=100;
|
|
|
+ function getMy(str){
|
|
|
+ return document.getElementById(str)
|
|
|
+ }
|
|
|
+ var demo=getMy("topListContent");
|
|
|
+ var demo4=getMy("topListBody");
|
|
|
+
|
|
|
+ var ttt=0;
|
|
|
+ function Marquee1(){
|
|
|
+
|
|
|
+ // if (divs.offsetHeight > document.body.clientHeight ){
|
|
|
+ // divs.offsetHeight=document.body.clientHeight;
|
|
|
+ // demo.offsetHeight = divs.offsetHeight - divb.offsetHeight -count.offsetHeight;}
|
|
|
+ // console.log(document.body.clientHeight);
|
|
|
+ // console.log(divs.offsetHeight);
|
|
|
+ // console.log(demo.offsetHeight);
|
|
|
+
|
|
|
+ if(demo.offsetHeight < demo4.offsetHeight){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ ttt=ttt+2;
|
|
|
+
|
|
|
+ $("#topListContent").scrollTop(ttt)
|
|
|
+ if(demo4.offsetHeight-demo.offsetHeight+80<ttt){
|
|
|
+
|
|
|
+ console.log(demo.offsetTop+"--a---"+demo.offsetHeight+"c"+ttt)
|
|
|
+ console.log(demo4.offsetTop+"---b--"+demo4.offsetHeight+"ddd "+demo4.clientHeight)
|
|
|
+ $("#topListContent").scrollTop(0)
|
|
|
+ ttt=0;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ var MyMar1=setInterval(Marquee1,speed)//设置定时器
|
|
|
+ //鼠标移上时清除定时器达到滚动停止的目的
|
|
|
+ demo.onmouseover=function() {clearInterval(MyMar1)}
|
|
|
+ //鼠标移开时重设定时器
|
|
|
+ demo.onmouseout=function(){
|
|
|
+ ttt= $("#topListContent").scrollTop()
|
|
|
+ MyMar1=setInterval(Marquee1,speed)
|
|
|
+ }
|
|
|
+ //-->
|
|
|
+});
|