<link rel="stylesheet" href="images/qq.css" type="text/css">
<script>
var online= new Array();
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer name="divStayTopLeft" left="880" top="1055" id="divStayTopLeft">
<table border="0" width="110" cellspacing="0" cellpadding="0">
<tr>
<td width="110"><img src=QQ/kefu_up.gif width="110" height="70" border=0></td>
</tr>
<script src="http://webpresence.qq.com/getonline?Type=1&727347018:000000:"></script>
<tr>
<td valign=middle background=QQ/kefu_middle.gif>
<script>
if (online[0]==0)
document.write(" <img src=QQ/QQoffline.gif border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=727347018&Site=www.baidu.com&Menu=no' title='不在线,请留言'> 产品咨询</a>");
else
document.write(" <img src=QQ/QQonline.gif border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/pa?p=1?V=1&Uin=727347018&Site=www.baidu.com&Menu=no' title='在线即时交谈'> 产品咨询</a>");
</script >
</td>
<br />
<tr>
<td width="23%"><span class="STYLE13">程序交流:</span></td><td width="26%"><a target="_blank" href="tencent://message/?uin=727347018&Menu=yes"><img border="0" src=http://wpa.qq.com/pa?p=1:727347018:6 alt="在线交流"></a></td>
</tr>
</tr>
</table>
</layer>
<script type="text/javascript">
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX =3,
startY = 250;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
<script>
var online= new Array();
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer name="divStayTopLeft" left="880" top="1055" id="divStayTopLeft">
<table border="0" width="110" cellspacing="0" cellpadding="0">
<tr>
<td width="110"><img src=QQ/kefu_up.gif width="110" height="70" border=0></td>
</tr>
<script src="http://webpresence.qq.com/getonline?Type=1&727347018:000000:"></script>
<tr>
<td valign=middle background=QQ/kefu_middle.gif>
<script>
if (online[0]==0)
document.write(" <img src=QQ/QQoffline.gif border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=727347018&Site=www.baidu.com&Menu=no' title='不在线,请留言'> 产品咨询</a>");
else
document.write(" <img src=QQ/QQonline.gif border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/pa?p=1?V=1&Uin=727347018&Site=www.baidu.com&Menu=no' title='在线即时交谈'> 产品咨询</a>");
</script >
</td>
<br />
<tr>
<td width="23%"><span class="STYLE13">程序交流:</span></td><td width="26%"><a target="_blank" href="tencent://message/?uin=727347018&Menu=yes"><img border="0" src=http://wpa.qq.com/pa?p=1:727347018:6 alt="在线交流"></a></td>
</tr>
</tr>
</table>
</layer>
<script type="text/javascript">
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX =3,
startY = 250;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
来源:https://www.cnblogs.com/abcdwxc/archive/2008/01/10/1034000.html