概述
//qq在线客服代码生成网站: http://wp.qq.com/
var qqarray=new Array();
qqarray[0]="<a href=/"http://sighttp.qq.com/cgi-bin/check?sigkey=c932ad8a73e8f5d81b54a1db95e4dc4b05ac5370c0c091e068cadf700bfa5ea9/"; target=_blank; οnclick=/"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=c932ad8a73e8f5d81b54a1db95e4dc4b05ac5370c0c091e068cadf700bfa5ea9';var oldscript=document.getElementById('testJs');var newscript=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);}return false;/"><img border=/"0/" SRC='http://wpa.qq.com/pa?p=1:78035458:41' alt=/"/"></a>";
document.write( "<div id=/"QQFloat/" style=/"Z-INDEX:20; VISIBILITY:visible; WIDTH:111px; POSITION:absolute; TOP:148px; HEIGHT:300px; left: 5px;/">" );
document.write("<table width=/"100%/" border=/"0/" align=/"center/" cellpadding=/"0/" cellspacing=/"0/"><tr><td height=/"24/"><img src=/"images/qq/01.gif/" width=/"111/" height=/"24/"></td>");
document.write(" </tr><tr><td height=/"27/"><img src=/"images/qq/03.gif/" width=/"111/" height=/"27/"></td></tr><tr><td valign=/"top/" background=/"images/qq/04.gif/">");
document.write("<table width=/"100%/" height=/"100%/" border=/"0/" cellpadding=/"0/" cellspacing=/"0/"><tr valign=/"top/"><td colspan=/"2/">");
document.write("<table width=/"100%/" border=/"0/"><tr><td align=/"center/">");
for(var i =0;i<qqarray.length;i++){
document.write(qqarray[i]);
document.write("</td></tr><tr></tr><tr><td align=/"center/">");
}
document.write("</td></tr><tr></tr><tr>");
document.write("</table></td></tr></table></td></tr><tr><td height=/"19/"><img src=/"images/qq/05.gif/" width=/"111/" height=/"19/"></td></tr></table></div>");
//动态
//var tips =100;
var theTop = 150/*这是默认高度,越大越往下*/;
var old = theTop;
tips = document.getElementById('QQFloat');
function moveTips() {
var tt=50;
if (window.innerHeight) {
pos = window.pageYOffset
}
else if (document.documentElement && document.documentElement.scrollTop) {
pos = document.documentElement.scrollTop
}
else if (document.body) {
pos = document.body.scrollTop;
}
if ( tips != undefined ){
pos=pos-tips.offsetTop+theTop;
pos=tips.offsetTop+pos/10;
if (pos < theTop) pos = theTop;
if (pos != old) {
tips.style.top = pos+"px";
tt=10;
//alert(tips.style.top);
}
}
old = pos;
setTimeout(moveTips,tt);
}
moveTips();
最后
以上就是怕孤单钢笔为你收集整理的QQ 的js调用 的全部内容,希望文章能够帮你解决QQ 的js调用 所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复