实现在线咨询的功能

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
    <html xmlns="
http://www.w3.org/1999/xhtml ">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>随滚动条滚动的在线客服工具条</title>
    </head>
    <body>
    <div id="divStayTopright" style="position:absolute; z-index:999">
    <a href="/" title="返回主页"><img border=0  src="
http://www.codefans.net/jscss/demoimg/201102//back_home.gif " ></a><br>
    <a href="javascript:window.external.addFavorite('http://www.pigzz.com/','制作学院');" title="收藏本站"><img border=0  src="
http://www.codefans.net/jscss/demoimg/201102//icon_bookmark.gif " ></a><br>
    <a href="
mailto:[email protected] " title="给客服发送邮件"><img border=0  src=" http://www.codefans.net/jscss/demoimg/201102//icon_mail_phone.gif " ></a><br>
    <a href="
http://wpa.qq.com/msgrd?V=1&Uin=249834575&Site=www.codefans.net&Menu=yes " target="_blank" title="客服""><img src=" http://www.codefans.net/jscss/demoimg/201102//qq_12606688_on.gif " border="0" align="absmiddle"></a><br>
    <a href="msnim:[email protected]" target="_blank" title="客服"><img src="
http://www.codefans.net/jscss/demoimg/201102//icon_msn.gif " border="0" align="absmiddle"></a><br>
    <a target="_blank" href="
http://amos.im.alisoft.com/msg.aw?v=2&uid=guoguoshopcn&site=cntaobao&s=2&charset=utf-8 " ><img border="0" src=" http://www.codefans.net/jscss/demoimg/201102//icon_wangwang.gif " alt="客服" /></a><br>
    <a href="#top" title="返回页顶"><img border="0" src="
http://www.codefans.net/jscss/demoimg/201102//top.gif"></a><br >
    </div>
    <SCRIPT type=text/javascript>
    var verticalpos="frombottom"
    function JSFX_FloatTopDiv()
    {
    var startX =0,
    startY = 459;
    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.divs[id];
    if(d.divs)el.style=el;
    el.sP=function(x,y){this.style.right=x;this.style.top=y;};
    el.x = startX;
    if (verticalpos=="fromtop")
    el.y = startY;
    else{
    el.y = ns ? pageYOffset + innerHeight : document.documentElement.scrollTop +
    document.documentElement.clientHeight;
    el.y -= startY;
    }
    return el;
    }
    window.stayTopright=function()
    {
    if (verticalpos=="fromtop"){
    var pY = ns ? pageYOffset : document.documentElement.scrollTop;
    ftlObj.y += (pY + startY - ftlObj.y)/8;
    }
    else{
    var pY = ns ? pageYOffset + innerHeight : document.documentElement.scrollTop +
    document.documentElement.clientHeight;
    ftlObj.y += (pY - startY - ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.x, ftlObj.y);
    setTimeout("stayTopright()", 10);
    }
    ftlObj = ml("divStayTopright");
    stayTopright();
    }
    JSFX_FloatTopDiv();
    </SCRIPT>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p align="center"></p>
    <div align="center"><p>功能:1.返回主页 2.加入收藏&nbsp; 3.邮件 4.QQ客服&nbsp;&nbsp; 5.MSN客服&nbsp;&nbsp; 6.旺旺客服 7.返回顶部</p></div>
    <p align="center"></p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    </body>
    </html>

你可能感兴趣的:(JavaScript)