最简单明了的QQ在线客服代码-飞外
源码:网站被封了,源码不了,但是这个源码很简单,相信有点基础的人都知道怎样用。
floatAd.js代码如下:
varlastScrollY=0;//滚动条距顶部位置
functionheartBeat(){
vardiffY;
if(document.documentElement document.documentElement.scrollTop)
diffY=document.documentElement.scrollTop;
elseif(document.body)
diffY=document.body.scrollTop
else
{/*Netscapestuff*/}
percent=.1*(diffY-lastScrollY);
if(percent 0)percent=Math.ceil(percent);
elsepercent=Math.floor(percent);
document.getElementById("gvRightAd").style.top=parseInt(document.getElementById("gvRightAd").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",100);//每0.1秒钟执行一次调用:
!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
htmlxmlns="http://www.w3.org/1999/xhtml"
head
title 最简单明了的QQ在线客服代码 /title
scriptsrc="style/floatAd.js" /script
/head
body
div
table cellpadding="0"cellspacing="0"
tr
td imgsrc="images/qq/qqbg1.gif"alt=""/ /td
/tr
tr
td
div !--这里的QQ代码请到http://imis.qq.com/webpresence/code.shtml申请--
ahref="http://sighttp.qq.com/cgi-bin/check?sigkey=7cd7c4f0fe8acae47af475bfd5864dd2a9910c5e16692240f96d1d9343fa6e82b8685b01340a0c99b5f625bc523faf6d34ae463cf21aba0e";target=_blank;onclick="vartempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+' sigkey=7cd7c4f0fe8acae47af475bfd5864dd2a9910c5e16692240f96d1d9343fa6e82b8685b01340a0c99b5f625bc523faf6d34ae463cf21aba0e';varoldscript=document.getElementById('testJs');varnewscript=document.createElement('script');newscript.setAttribute('type','text/javascript');newscript.setAttribute('id','testJs');newscript.setAttribute('src',tempSrc);if(oldscript==null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript,oldscript);}returnfalse;" imgborder="0"SRC='http://wpa.qq.com/pa?p=1:1090126549:1'alt="张老师" /a
/div
div ahref="http://sighttp.qq.com/cgi-bin/check?sigkey=7cd7c4f0fe8acae4d6822fba4ae9ad0363e4805f0a646f849ad95f6a69ffc6c52caf5f5505cbbaa4d5666e4f402e1f9177da136fadfad826";target=_blank;onclick="vartempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+' sigkey=7cd7c4f0fe8acae4d6822fba4ae9ad0363e4805f0a646f849ad95f6a69ffc6c52caf5f5505cbbaa4d5666e4f402e1f9177da136fadfad826';varoldscript=document.getElementById('testJs');varnewscript=document.createElement('script');newscript.setAttribute('type','text/javascript');newscript.setAttribute('id','testJs');newscript.setAttribute('src',tempSrc);if(oldscript==null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript,oldscript);}returnfalse;" imgborder="0"SRC='http://wpa.qq.com/pa?p=1:1131441761:1'alt="王老师" /a
/div
/td
/tr
tr
td imgsrc="images/qq/qqbg3.gif"alt=""/ /td
/tr
/table
/div
/body
/html
热门阅读
- 龙门古镇在哪里 0人看过
- 鸡蛋里面白色的东西是什么 0人看过
- 金桔核能吃吗 0人看过
- 生姜从地里挖出来后如何储存 0人看过
- 生蚝怎么存放过夜不死 0人看过
- 豆腐长黑毛还可以吃吗? 0人看过
- 3077代表什么 0人看过
- 茶里有咖啡因吗 0人看过
- 车厘子冷藏能放多久 0人看过
- 冬天水管子冻了怎么办 0人看过