﻿lastScrollY = 0;
function heartBeat() {
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop;
	else if (document.body) diffY = document.body.scrollTop
	else {
		/*Netscape stuff*/
	}
	//alert(diffY);
	percent = .1 * (diffY - lastScrollY);
	if (percent > 0) percent = Math.ceil(percent);
	else percent = Math.floor(percent);
	document.getElementById("lovexin12").style.top = parseInt(document.getElementById("lovexin12").style.top) + percent + "px";
	lastScrollY = lastScrollY + percent;
	//alert(lastScrollY);
}
document.write("<DIV id=\"lovexin12\" style='right:5px;POSITION:absolute;TOP:250px;z-index:100;text-align:left'>");
document.write('<table cellSpacing="0" cellPadding="0" width="120" border="0" id="qqtab" style="font-size:13px;">');
document.write('<tr><td>');
document.write('<div><a href="Ad_Click.asp?Ad_ID=8" target="_blank"><img src="/upload/Ad/logoddd.gif" width="185"height="55" border="0"></a></div>');
document.write('<div><a href="Ad_Click.asp?Ad_ID=9" target="_blank"><img src="upload/Ad/2010349192066139.JPG" width="185"height="55" border="0"></a></div>');
document.write('<div><a href="Ad_Click.asp?Ad_ID=80" target="_blank"><img src="upload/Ad/20099310330991665.gif" width="185"height="55" border="0"></a></div>');
document.write('</table>');
document.write("</div>");
window.setInterval("heartBeat()", 1);
document.write('');
function far_close() {
	document.getElementById("lovexin12").innerHTML = "";
}
function setfrme() {
	var tr = document.getElementById("lovexin12");
	var twidth = tr.clientWidth;
	var theight = tr.clientHeight;
	var fr = document.getElementById("frame55la");
	fr.width = twidth - 1;
	fr.height = theight - 30;
}
//setfrme()
