<div class="codetitle"> <span><a style="CURSOR: pointer" data="3661" class="copybut" id="copybut3661" onclick="doCopy('code3661')"><u>复制代</u></a></span> 代码如下:</div> <div class="codebody" id="code3661"> <br>(function(){ <br>QQMenuInt=_QQMenuInt; <br> moveQQmenu=_moveQQmenu; <br>function _QQMenuInt(){ <br>QQMenu.style.position="absolute"; <br>if(parseInt(document.documentElement.offsetWidth) >1024){ <br>QQMenuPosition.Left =(parseInt(document.documentElement.offsetWidth)-1024-20); <br>} <br>if(QQMenuPosition.isRight){ <br>QQMenu.style.right= QQMenuPosition.Left "px"; <br>}else{ <br>QQMenu.style.left=QQMenuPosition.Left "px"; <br>QQMenu.style.top=QQMenuPosition.Top "px"; 🎜>moveQQmenu(); <br>} <br>function _moveQQmenu(){ <br>var from=parseInt(QQMenu.style.top,10); <br>var to=window.pageYOffset; ?window.pageYOffset:document.documentElement.scrollTop; <br>to=to QQMenuPosition.Top; <br>if(to!=from){ <br>yOffset = Math.ceil(Math.abs(to-from)/ 20); <br>if(<from>var oldTop=parseInt(QQMenu.style.top,10); <br>QQMenu.style.top=(oldTop yOffset) ; <br>} <br>if(QQMenu.style.display!="none"){ <br>window.setTimeout("moveQQmenu()",QQMenuPosition.timeout); <br>} <br>} <br>})() <br><br><br><br><br>使用方法:</from> </div> <br>1、上面の js を導入 <br>2、页面の最后面上 <strong></strong><br><br><br><br>复制代<div class="codetitle"> <span><a style="CURSOR: pointer" data="81635" class="copybut" id="copybut81635" onclick="doCopy('code81635')">代码如下:<u></u></a> </span>var QQMenuPosition={Left:10,Top:200,isRight:false,timeout:10} </div>var QQMenu=document.getElementById("QQMenu"); <div class="codebody" id="code81635">QQMenuInt(); <br> <br><br><br><br>QQMenu はフローティング レイヤーの最も外側の ID です。<br>QQMenuPosition はフローティング レイヤーに関連するパラメーターを設定します。<br>Left: 左側を基準としたレイヤーのオフセットです。 isRight が true の場合、それは右側を基準としたオフセットです <br>Top: 上部を基準としたレイヤーのオフセット <br>timeout: レイヤーの移動時間間隔、時間が長いほど遅くなります <br><div class="htmlarea"> <textarea id="runcode11947"> <title>無題</title> <style type="text/css"> /*QQ在线客服务处*/ .kefuchu{ width:109px;} .SS_dh1{background:url(http://img.jb51.net/online/qq/images/SSindex/SS_dh1.jpg) no-repeat; height:51px; width:84px; float:left} .SS_dh2{background:url(http://img.jb51.net/online/qq/images/SSindex/SS_dh2.jpg) no-repeat; height:51px; width:25px; float:left; display:block} .SS_dh3{background:url(http://img.jb51.net/online/qq/images/SSindex/SS_dh3.jpg) repeat-y; width:109px; } .SS_dh4{background:url(http://img.jb51.net/online/qq/images/SSindex/SS_dh4.jpg) no-repeat; height:17px; width:109px; } .SS_dh5{background:url(http://img.jb51.net/online/qq/images/SSindex/SS_dh5.jpg) no-repeat; height:23px; width:74px; margin-left:20px;} </style> <!--QQ在线客服务处--> fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf fsdafsdfsfsdf <div class="kefuchu" id="QQMenu" style="display:none;"> <div class="SS_dh1"> </div> <a class="SS_dh2" href="javascript:void(0)" onclick="QQMenu.style.display='none'"> </a><span class="clear"> </span><div class="SS_dh3"> <div class="SS_dh5"> <a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc" target="_blank;" onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime=' Math.random() '&sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc';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:461478385:1" alt="Floatable QQ オンラインカスタマーサービス_JavaScript スキル"></a> </div> <script type="text/javascript" src="http://img.jb51.net/online/qq/js/QQMenu.js"></script><span class="clear"></span> <span class="blank8"></span> <div class="SS_dh5"><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc" target="_blank;" onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime=' Math.random() '&sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc';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:461478385:1" alt="Floatable QQ オンラインカスタマーサービス_JavaScript スキル"></a></div> <span class="clear"></span> <span class="blank8"></span> <div class="SS_dh5"><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc" target="_blank;" onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime=' Math.random() '&sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc';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:461478385:1" alt="Floatable QQ オンラインカスタマーサービス_JavaScript スキル"></a></div> <span class="clear"></span> <span class="blank8"></span> <div class="SS_dh5"><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc" target="_blank;" onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime=' Math.random() '&sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc';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:461478385:1" alt="Floatable QQ オンラインカスタマーサービス_JavaScript スキル"></a></div> <span class="clear"></span> <span class="blank8"></span> <div class="SS_dh5"><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc" target="_blank;" onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime=' Math.random() '&sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc';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:461478385:1" alt="Floatable QQ オンラインカスタマーサービス_JavaScript スキル"></a></div> <span class="clear"></span> <span class="blank8"></span> <div class="SS_dh5"><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc" target="_blank;" onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime=' Math.random() '&sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc';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:461478385:1" alt="Floatable QQ オンラインカスタマーサービス_JavaScript スキル"></a></div> <span class="clear"></span> <span class="blank8"></span> <div class="SS_dh5"><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc" target="_blank;" onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=d7bb49730f3ed47c475611fe4baa06914c1c954e4674e29bc09d96892eae6edc';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:461478385:1" alt="Floatable QQ オンラインカスタマーサービス_JavaScript スキル"></a></div> <span class="clear"></span> </div> <span class="clear"></span> <div class="SS_dh4"></div> </div> <script type="text/javascript"> var QQMenuPosition={Left:10,Top:200,isRight:false,timeout:10} var QQMenu=document.getElementById("QQMenu"); QQMenuInt(); </script> </textarea><br><input onclick="runEx('runcode11947')" type="button" value="运行代码"> <input onclick="doCopy('runcode11947')" type="button" value="复制代码"> <input onclick="doSave(runcode11947)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://Floatable%20QQ%20%E3%82%AA%E3%83%B3%E3%83%A9%E3%82%A4%E3%83%B3%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%83%BC%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9_JavaScript%20%E3%82%B9%E3%82%AD%E3%83%AB/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div> <br><a href="http://img.jb51.net/online/qq/qq.rar" target="_blank">打包下载</a> </div>