suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 6px; POSITION: absolute; TOP: 105px; width: 100px; height: 300px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.top17.net/news_info/4515.html' target='_blank'><img src='Upload/UploadPic/2011122195432514.gif' width='100' height='300' border='0'></a></DIV>"
document.write(suspendcode);



//flash格式调用方法
//<EMBED src='flash.swf' quality=high  WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=ad wmode=opaque></EMBED>

var tips; var theTop = 105/*这是默认高度,越大越往下*/; var old = theTop;
function initFloatTips() {
  tips = document.getElementById('lovexin1');
  //alert(window.screen.width);
  //tips.style.left=((window.screen.width-850)/2+850)+"px";
  tips.style.left="6px";
  moveTips();
};


function moveTips() {
  var tt=50;
  if (window.innerHeight) {
    pos = window.pageYOffset
  }
  else if (document.documentElement && document.documentElement.scrollTop) {
    pos = document.documentElement.scrollTop
  }
  else if (document.body) {
    pos = document.body.scrollTop;
  }

  pos=pos-tips.offsetTop+theTop;
  pos=tips.offsetTop+pos/10;
	
  if (pos < theTop) pos = theTop;
  if (pos != old) {
    tips.style.top = pos+"px";
    tt=10;
		//alert(tips.style.top);
  }
	
  old = pos;
  setTimeout(moveTips,tt);
}

initFloatTips();


function hide()  
{   
lovexin1.style.visibility="hidden"; 
}


