﻿// JavaScript Document
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";
//document.getElementById("lovexin14").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
suspendcode12="<DIV id=\"lovexin12\" style='right:5px;POSITION:absolute;TOP:165px;'><table width='74' height='249' border='0' cellpadding='0' cellspacing='0'><tr><td><img src='images/gungdong_01.gif' width='74' height='51'></td></tr><tr><td><a href='tencent://message/?uin=623409117&Site=在线交谈&Menu=yes' ><img src='images/gungdong_02.gif' width='74' height='40''></a></td></tr><tr><td><a href='tencent://message/?uin=133131214&Site=在线交谈&Menu=yes' ><img src='images/gungdong_03.gif' width='74' height='40'></a></td></tr><tr>	<td><a href='tencent://message/?uin=139141214&Site=在线交谈&Menu=yes' ><img src='images/gungdong_04.gif' width='74' height='40'></a></td></tr><tr><td><a href='msnim:chat?contact=shelite_x@hotmail.com' title='点击这里用msn给我发消息'><img src='images/gungdong_05.gif' width='74' height='36'></a></td></tr><tr><td><img src='images/gungdong_06.gif' width='74' height='42'></td>	</tr></table><br><a href=JavaScript:; onclick=\"lovexin12.style.visibility='hidden'\"><img border=0 src=images/close2.gif></a></div>"
//修改left和top值可以控制图片在页面中的位置
//修改left和top值可以控制图片在页面中的位置
//suspendcode14="<DIV id=\"lovexin14\" style='right:15px;POSITION:absolute;TOP:69px;'><a href='http://www.jz123.cn' target='_blank'><img border=0 src=images/gungdong.gif><br><a href=JavaScript:; onclick=\"lovexin14.style.display = 'none'\"><img border=0 src=images/close2.gif></div>"

document.write(suspendcode12); 
//document.write(suspendcode14); 
window.setInterval("heartBeat()",1);
