杉杉来了中手机:求救::怎样把这个广告移到左边

来源:百度文库 编辑:高考问答 时间:2024/04/30 19:16:44
<!-- #BeginEditable "doctitle" -->
<!-- #EndEditable -->
<DIV ID=eMeng STYLE="BORDER-RIGHT:1px solid #455690; BORDER-TOP: 1px solid #a6b4cf; Z-INDEX:99999; LEFT: 113px; VISIBILITY: hidden; BORDER-LEFT: 1px solid #a6b4cf; WIDTH: 160px; BORDER-BOTTOM: 1px solid #455690; POSITION: absolute; TOP: 1px; HEIGHT: 172px; BACKGROUND-COLOR: #c9d3f3">
<script>var UnionId='734'</script><script src='http://union.144.cc/union_code/js/160-250-002.js'></script><script src=http://union.144.cc/union_code/js/checkxlt.js></script><script>
window.onload = getMsg;
window.onresize = resizeDiv;
window.onerror = function(){}
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
try{
divTop = parseInt(document.getElementById("eMeng").style.top,10)
divLeft = parseInt(document.getElementById("eMeng").style.left,10)
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight-(document.body.clientHeight-596);
document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;// divHeight
document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
document.getElementById("eMeng").style.visibility="visible"
objTimer = window.setInterval("moveDiv()",10)
}
catch(e){}
}

function resizeDiv()
{
i+=1
//if(i>800) closeDiv()
try{
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight-(document.body.clientHeight-450);
document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)
document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
}
catch(e){}
}

function moveDiv()
{
try
{
if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
{
window.clearInterval(objTimer)
objTimer = window.setInterval("resizeDiv()",1)
}
divTop = parseInt(document.getElementById("eMeng").style.top,10)
document.getElementById("eMeng").style.top = divTop - 1
}
catch(e){}
}
function closeDiv()
{
document.getElementById('eMeng').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer)
}
getMsg();</script>

将:function resizeDiv() 中
document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
改为:
document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10)

上google自己搜

求救怎样把这个广告移到左边 :
上google自己搜