function gund(boxa) { var oDiv=document.getElementById(boxa); var aLiBtn=oDiv.getElementsByTagName('ol')[0].getElementsByTagName('li'); var oUl=oDiv.getElementsByTagName('ul')[0]; var aLi=oUl.getElementsByTagName('li'); var t=null; var iNow=0; var left=0; var autoPlayTimer=null; var i=0; oUl.innerHTML+=oUl.innerHTML; oUl.style.width=aLi.length*aLi[0].offsetWidth+'px'; for(i=0;i0?Math.ceil(iSpeed):Math.floor(iSpeed); left+=iSpeed; var l=left; l%=oUl.offsetWidth/2; if(l<-oUl.offsetWidth/2) { l+=oUl.offsetWidth/2; } oUl.style.left=l+'px'; } } oDiv.onmouseover=function () { clearInterval(autoPlayTimer); }; oDiv.onmouseout=function () { autoPlayTimer=setInterval(next, 5000); }; }; $$(function() { $$("#div_float").adFloat({ width: 200, height: 146, top: 30, left: 20 }); //$$("#div_float").hide(); }) $$(document).ready(function(){ var htmlStr = "" + "
" + "
" + " 页面正在加载中,请稍后...
"; $$("#index_main_div").html(htmlStr); var paras = { }; $$.post("/page/index_indexBody",paras,function(data) { if(data!=null){ $$("#content").replaceWith(data); } }); }); function divClose() { document.getElementById("floater").style.visibility="hidden"; document.getElementById('stype').style.display = "block"; } function divClose_floater1() { document.getElementById("div_float").style.visibility="hidden"; //document.getElementById('stype').style.display = "block"; } function hide(){ //document.getElementById("divClose").style.display="none"; document.getElementById("divClose").style.visibility="hidden"; } function show(){ //document.getElementById("divClose").style.display="block"; document.getElementById("divClose").style.visibility="visible"; }