求一个网站两侧挂的qq聊天框
就是网站上挂的在线联系的qq聊天框,哪位能加以指点.
或者谁见过这样的例子,打个网址.
不胜感激.
[解决办法]
参见:www.notsoft.cn
[解决办法]
把下面代码里面的QQ改成你的QQ即可
你可以把里面的table改成你想要的大小和样式.
<script>
var online= new Array();
if (!document.layers)
document.write( ' <div id= "divStayTopLeft " style= "position:absolute "> ')
</script>
<layer id= "divStayTopLeft ">
<table border= "0 " width= "110 " cellspacing= "0 " cellpadding= "0 ">
<tr> <td width= "110 "> <img border=0 src=http://www.mxe.cn/pic/images/kefu_up.gif> </td> </tr>
<script src= "http://webpresence.qq.com/getonline?Type=1&82061299:173783688: "> </script>
<tr> <td valign=middle background=http://www.mxe.cn/pic/images/kefu_middle.gif>
<script>
if (online[0]==0)
document.write( " <img src=http://www.mxe.cn/pic/images/QQoffline.gif border=0 align=middle> <a class= 'qqb ' target=blank href= 'http://wpa.qq.com/msgrd?V=1&Uin=82061299&Site=在线咨询&Menu=no ' title= '客服不在线,请留言 '> 82061299 </a> ");
else
document.write( " <img src=http://www.mxe.cn/pic/images/QQonline.gif border=0 align=middle> <a class= 'qqa ' target=blank href= 'http://wpa.qq.com/msgrd?V=1&Uin=82061299&Site=在线咨询&Menu=no ' title= '在线即时交谈 '> 82061299 </a> ");
</script >
</td> </tr>
<tr> <td valign=middle background=http://www.mxe.cn/pic/images/kefu_middle.gif>
<script>
if (online[1]==0)
document.write( " <img src=http://www.mxe.cn/pic/images/QQoffline.gif border=0 align=middle> <a class= 'qqb ' target=blank href= 'http://wpa.qq.com/msgrd?V=1&Uin=173783688&Site=在线咨询&Menu=no ' title= '客服不在线,请留言 '> 173783688 </a> ");
else
document.write( " <img src=http://www.mxe.cn/pic/images/QQonline.gif border=0 align=middle> <a class= 'qqa ' target=blank href= 'http://wpa.qq.com/msgrd?V=1&Uin=173783688&Site=在线咨询&Menu=no ' title= '在线即时交谈 '> 173783688 </a> ");
</script >
</td> </tr>
<tr> <td width= "110 "> <img border=0 src=http://www.mxe.cn/pic/images/kefu_down.gif> </td> </tr>
</table>
</layer>
<script type= "text/javascript ">
var verticalpos= "frombottom "
if (!document.layers)
document.write( ' </div> ')
function JSFX_FloatTopDiv()
{
//默认情况显示在屏幕左侧,若要显示在右侧,修改下面的0,0是指距离屏幕左侧的距离。
var startX =0,
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>