var l_obj = document.getElementById('left'); var l_obj2 = document.getElementById('left2'); var r_obj = document.getElementById('right'); var r_obj2 = document.getElementById('right2'); function moveL() { if(!l_obj) { l_obj = document.getElementById('left'); } scrollTop = document.documentElement.scrollTop==0?document.body.scrollTop:document.documentElement.scrollTop; scrollLeft = document.documentElement.scrollLeft==0?document.body.scrollLeft:document.documentElement.scrollLeft; clientHeight = document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight; l_obj.style.top = (scrollTop+clientHeight-l_obj.clientHeight-80)+"px"; l_obj.style.left = "5px"; /** l_obj.innerHTML= "bodyHeight:"+document.documentElement.clientHeight+ "
bodyWidth:"+document.documentElement.clientWidth+ "
scrollTop:"+scrollTop+ "
scrollLeft:"+scrollLeft+ "
clientHeight:"+l_obj.clientWidth+ "
clientWidth:"+l_obj.clientHeight; setTimeout("moveR();",80) **/ } function moveL2() { if(!l_obj2) { l_obj2 = document.getElementById('left2'); } scrollTop = document.documentElement.scrollTop==0?document.body.scrollTop:document.documentElement.scrollTop; scrollLeft = document.documentElement.scrollLeft==0?document.body.scrollLeft:document.documentElement.scrollLeft; clientHeight = document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight; l_obj2.style.top = (scrollTop+clientHeight-l_obj2.clientHeight-180)+"px"; l_obj2.style.left = "5px"; /** l_obj.innerHTML= "bodyHeight:"+document.documentElement.clientHeight+ "
bodyWidth:"+document.documentElement.clientWidth+ "
scrollTop:"+scrollTop+ "
scrollLeft:"+scrollLeft+ "
clientHeight:"+l_obj.clientWidth+ "
clientWidth:"+l_obj.clientHeight; setTimeout("moveR();",80) **/ } function moveR() { if(!r_obj) { r_obj = document.getElementById('right'); } scrollTop = document.documentElement.scrollTop==0?document.body.scrollTop:document.documentElement.scrollTop; scrollLeft = document.documentElement.scrollLeft==0?document.body.scrollLeft:document.documentElement.scrollLeft; clientHeight = document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight; clientWidth = document.documentElement.clientWidth==0?document.body.clientWidth:document.documentElement.clientWidth; r_obj.style.top = (scrollTop+clientHeight-r_obj.clientHeight-80) + "px"; r_obj.style.left = (scrollLeft+clientWidth-r_obj.clientWidth-10) + "px"; } function moveR2() { if(!r_obj2) { r_obj2 = document.getElementById('right2'); } scrollTop = document.documentElement.scrollTop==0?document.body.scrollTop:document.documentElement.scrollTop; scrollLeft = document.documentElement.scrollLeft==0?document.body.scrollLeft:document.documentElement.scrollLeft; clientHeight = document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight; clientWidth = document.documentElement.clientWidth==0?document.body.clientWidth:document.documentElement.clientWidth; r_obj2.style.top = (scrollTop+clientHeight-r_obj2.clientHeight-180) + "px"; r_obj2.style.left = (scrollLeft+clientWidth-r_obj2.clientWidth-10) + "px"; } function closeDiv(obj) { obj = document.getElementById(obj); obj.style.visibility = 'hidden'; obj.style.display = 'none'; } if($) { $(document).ready(function(){ l_obj = document.getElementById('left'); l_obj2 = document.getElementById('left2'); r_obj = document.getElementById('right'); r_obj2 = document.getElementById('right2'); if(r_obj) var timer = setInterval(moveR,200); if(r_obj2) var timer2 = setInterval(moveR2,200); if(l_obj) var timer = setInterval(moveL,200); if(l_obj2) var timer2 = setInterval(moveL2,200); }); } if(r_obj) var timer = setInterval(moveR,100); if(r_obj2) var timer2 = setInterval(moveR2,100); if(l_obj) var timer = setInterval(moveL,100); if(l_obj2) var timer2 = setInterval(moveL2,100);