var adv_x=30,adv_y=40,adv_xin=true,adv_yin=true; var bb=false; function floatAdv(objname,step,id) { var obj=document.getElementById(objname); var L=T=0; var R= document.body.clientWidth-obj.offsetWidth; var B = document.body.clientHeight-obj.offsetHeight; obj.style.left = adv_x + document.body.scrollLeft; obj.style.top = adv_y + document.body.scrollTop; adv_x = adv_x + step*(adv_xin?1:-1); if (adv_x < L) { adv_xin = true; adv_x = L;} if (adv_x > R){ adv_xin = false; adv_x = R;} adv_y = adv_y + step*(adv_yin?1:-1); if (adv_y < T) { adv_yin = true; adv_y = T;} if (adv_y > B) { adv_yin = false; adv_y = B;} } var adv_x1=30,adv_y1=40,adv_xin1=true,adv_yin1=true; function floatAdv1(objname,step,id) { var obj=document.getElementById(objname); var L=T=0; var R= document.body.clientWidth-obj.offsetWidth; var B = document.body.clientHeight-obj.offsetHeight; obj.style.left = adv_x1 + document.body.scrollLeft; obj.style.top = adv_y1 + document.body.scrollTop; adv_x1 = adv_x1 + step*(adv_xin1?1:-1); if (adv_x1 < L) { adv_xin1 = true; adv_x1 = L;} if (adv_x1 > R){ adv_xin1 = false; adv_x1 = R;} adv_y1 = adv_y1 + step*(adv_yin1?1:-1); if (adv_y1 < T) { adv_yin1 = true; adv_y1 = T;} if (adv_y1 > B) { adv_yin1 = false; adv_y1 = B;} } function showAdv(step,delay,id){ var temp1=(id?("_"+id):""); var obj=document.getElementById("floatadv"+temp1); if(bb){ var itl= setInterval("floatAdv1('floatadv"+temp1+"',"+step+","+id+")", delay); obj.onmouseover=function(){clearInterval(itl);}; obj.onmouseout=function(){itl=setInterval("floatAdv1('floatadv"+temp1+"',"+step+","+id+")", delay)}; }else{ var itl= setInterval("floatAdv('floatadv"+temp1+"',"+step+","+id+")", delay); obj.onmouseover=function(){clearInterval(itl);}; obj.onmouseout=function(){itl=setInterval("floatAdv('floatadv"+temp1+"',"+step+","+id+")", delay)}; bb=true; } } document.write('

×
');$(function(){setTimeout("showAdv(1,20,113)",5000);});