麻烦各位高手帮忙看一下,这个程序有没有问题?能够运行就是放入主页里面后,打开主页时要等一、两分钟才能显示!
<script>
var online= new Array();
if (!document.layers) document.write('<div id="divStayTopLeft" style="position:absolute">') </script> <style type="text/css">
<!--
A.qqa:link {COLOR: red; text-decoration: none}
A.qqa:visited {COLOR: red; text-decoration: none}
A.qqa:active {COLOR: red; text-decoration: none}
A.qqa:hover {COLOR: blue; text-decoration: none}A.qqb:link {COLOR: black; text-decoration: none}
A.qqb:visited {COLOR: black; text-decoration: none}
A.qqb:active {COLOR: black; text-decoration: none}
A.qqb:hover {COLOR: blue; text-decoration: none}
-->
</style><layer id="divStayTopLeft"><table border="0" width="110" cellspacing="0" cellpadding="0">
<tr><td width="110"><img border=0 src=images/kefu_up.gif></td></tr>
<script src="http://webpresence.qq.com/getonline?Type=1&814865733"></script><tr><td valign=middle background=images/kefu_middle.gif>
<script>
if (online[0]==0)
document.write(" <img src=images/QQoffline.gif border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=8148657338&Site=在线咨询&Menu=no' title='客服不在线,请留言'>在线咨询</a>");
else
document.write(" <img src=images/QQonline.gif border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=814865733&Site=在线咨询&Menu=no' title='在线即时交谈'>在线咨询</a>");
</script >
</td></tr>
<tr><td width="110"><img border=0 src=images/kefu_down.gif></td></tr>
</table>
</layer>
<script language="JavaScript" type="text/JavaScript">
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX =10,
startY =500;
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> <style type="text/css">
<!--
A.qqa:link {COLOR: red; text-decoration: none}
A.qqa:visited {COLOR: red; text-decoration: none}
A.qqa:active {COLOR: red; text-decoration: none}
A.qqa:hover {COLOR: blue; text-decoration: none}A.qqb:link {COLOR: black; text-decoration: none}
A.qqb:visited {COLOR: black; text-decoration: none}
A.qqb:active {COLOR: black; text-decoration: none}
A.qqb:hover {COLOR: blue; text-decoration: none}
-->
</style><layer id="divStayTopLeft"><table border="0" width="110" cellspacing="0" cellpadding="0">
<tr><td width="110"><img border=0 src=images/kefu_up.gif></td></tr>
<script src="http://webpresence.qq.com/getonline?Type=1&814865733"></script><tr><td valign=middle background=images/kefu_middle.gif>
<script>
if (online[0]==0)
document.write(" <img src=images/QQoffline.gif border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=8148657338&Site=在线咨询&Menu=no' title='客服不在线,请留言'>在线咨询</a>");
else
document.write(" <img src=images/QQonline.gif border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=814865733&Site=在线咨询&Menu=no' title='在线即时交谈'>在线咨询</a>");
</script >
</td></tr>
<tr><td width="110"><img border=0 src=images/kefu_down.gif></td></tr>
</table>
</layer>
<script language="JavaScript" type="text/JavaScript">
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX =10,
startY =500;
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>
解决方案 »
- 帮我解释一下 这段JQ
- JavaScript 是基于对象的语言还是面向对象语言
- 看看这些问题 谢谢回答 ,能回答几个算几个,来着有份,回答散分
- 图片自动缩放的
- body.offsetHeight在IE中和FF得到的结果不同.怎么办?
- 各位老师帮忙呀,使用JS代码找对象,如果重名只能找到第一个怎么办呀,我晕,帮忙,,
- 如何判断只能为浮点数,或整数?
- 谁有thinking in JAVA 的中文版或者英文版呀?还有学xml的话,那本书好呀?
- 如何让选中的一行记录高亮显示
- 求助,定时器叠加问题
- 谁有javascript好的学习资料,推荐给我一下.
- 请教大家 我想在td中的文本域放入文字,但是td有背景。我把文本域设置成透明的,但是输入文字的时候文字也是透明的。
这个加载太慢,是最新的qq状态代码吗
调用qq的方法:
<A href="tencent://message/?uin=20989163&Site=博客园&Menu=yes">
<span style="font-size:13px">点击这里给我发消息 </span></A>
<br/><br/>
调用msn的方法:
<A href="msnim:[email protected]" target=blank>点这里和我MSN聊天</A>