查看: 1306|回复: 0

在论坛里加入即时QQ聊天对话框!

[复制链接]
发表于 2009-4-30 00:27:57 | 显示全部楼层 |阅读模式

操作方法:
1,下载安装包。QQ。RAR直接解压到论坛的根目录下,比如我的论坛装在BBS目录下,解压后即BBS/QQ
2,到bbs/template/wind/下找到index.htm

在最后加入以下代码:
  1. <!-- 左隐藏菜单开始 -->
  2. <SCRIPT language=JavaScript1.2>
  3. function move(x, y) {
  4. if (document.all) {
  5. object1.style.pixelLeft += x;
  6. object1.style.pixelTop  += y;}
  7. else
  8. if (document.layers) {
  9. document.object1.left += x;
  10. document.object1.top  += y;
  11. }};
  12. function position() {
  13. document.object1.left += -200;
  14. document.object1.top  += 0;
  15. document.object1.visibility = "show"
  16. };
  17. function makeStatic() {
  18. if (document.all) {object1.style.pixelTop=document.body.scrollTop+140}
  19. else {eval('document.object1.top=eval(window.pageYOffset+20)');}
  20. setTimeout("makeStatic()",0);}
  21. </SCRIPT>
  22. <!-- 左隐藏菜单结束 -->
  23. <!-- 左隐藏菜单BIG -->
  24. <LAYER class=NS onmouseout="move(-580, 0)" onmouseover="move(580,0)" left="0" name="object1" top="20" visibility="hide">
  25. <SCRIPT language=JavaScript1.2>
  26. if (document.all)
  27. document.write('<DIV ID="object1" style="Position : Absolute ;Left : -195px ;Top : 20px ;Width : 0px ;Z-Index : 20">')
  28. </SCRIPT>
  29. <TABLE width="195"  border=0 cellPadding=2 cellSpacing=1 onmouseover=move(195,0) onmouseout="move(-195, 0)">
  30.   <TBODY>
  31.   <TR>
  32.     <TD width="180"  valign="top">
  33.      <!--DWLayoutTable-->
  34.      <table width="200"  border="0" align="center" cellpadding="0" cellspacing="0">
  35.        <tr>
  36.          <td height="268" align="left" valign="top" >
  37.            <table width="100%"  border="0" cellpadding="0" cellspacing="0">
  38.              <tr>
  39.                <td align="left" valign="top"><script language="javascript" type="text/javascript" src="qq/qq.asp"></script>
  40.                </td>
  41.               </tr>
  42.            </table>
  43.          </td>
  44.       </tr>
  45.      </table>
  46.     </TD>
  47.     <TD  align=middle valign="top">
  48.      <table width="25" border="0" cellpadding="0" cellspacing="0">
  49.        <tr>
  50.         <td height="124"><img src="qq/images/kefu.gif" width="20" height="109"> </td>
  51.        </tr>
  52.       </table>
  53.     </TD>
  54.   </TR>
  55. </table>
  56.   <SCRIPT language=JavaScript1.2>
  57. <!--
  58. if (document.all||document.layers)
  59. makeStatic();
  60. if (document.layers) {
  61. window.onload=position;
  62. }
  63. var sitems=new Array();
  64. var sitemlinks=new Array();
  65. function hl(n) {
  66. n.className='hl'}
  67. function n(h) {
  68. h.className='n'}
  69. //--></SCRIPT>
  70. <SCRIPT language=JavaScript1.2>
  71. if (document.all)
  72. document.write('<\/DIV>')
  73. </SCRIPT>
  74. </LAYER>
  75.    
  76. <!-- 左隐藏菜单END -->
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册,仅限中文

×
回复

使用道具 举报

本版积分规则

关注公众号

相关侵权、举报、投诉及建议等,请发 E-mail:admin@discuz.vip

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖
关注公众号
QQ客服返回顶部