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);
}
//position: absolute可以改成relative,虽然relative显示的位置是相对的,比较准确,但是宽屏下还是绝对定位到一边用户体验好点。
document.write('
');
var recontent='
';
document.write('
');
document.write('
');
document.write('- 家园客服
');
document.write('- 家园客服
');
document.write('- 楼市频道
');
document.write('- 装饰频道
');
document.write('- 建材频道
');
document.write('- 家私频道
');
document.write('- 家电频道
');
document.write('- 家政频道
');
document.write('- 置换频道
');
document.write('- 婚庆频道
');
document.write('- 投诉建议
');
document.write('
');
document.write('
');
document.write('
');
//document.write(recontent);
document.write('
');
window.setInterval("heartBeat()",1);
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;
}
function ld(i,off)
{
var L=document.getElementById("oDiv"+i);
if (off=="no")
{
L.style.display="none";
}
if (off=="yes")
{
L.style.display="";
}
}