三更论坛技术版『 聊室配置 』 → 碧聊配置介绍(1):聊天室基本配置介绍和寒江332与336脚本


  共有31671人关注过本帖树形打印复制链接

主题:碧聊配置介绍(1):聊天室基本配置介绍和寒江332与336脚本

帅哥哟,离线,有人找我吗?
荞麦
  11楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:坛主 帖子:7889 积分:39456 威望:0 精华:5 注册:2004-7-31 17:34:24
房间配置讲座(08):献花、情话、表情、贴图等设置  发帖心情 Post By:2004-10-13 10:34:14 [只看该作者]

通过上面的设置,就知道很多设置方式大同小异,甚至格式完全一样。

献花等设置,可以直接使用原脚本的通用部分,也可以自己修改,融入自己房间的特色。



三更论坛交流群:11484137 三更有梦休闲群:30275742
荞麦的新浪博客:http://blog.sina.com.cn/qiaomai
有事请点这里与荞麦临时会话QQ留言
 回到顶部
帅哥哟,离线,有人找我吗?
荞麦
  12楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:坛主 帖子:7889 积分:39456 威望:0 精华:5 注册:2004-7-31 17:34:24
房间配置讲座(09):结束语  发帖心情 Post By:2004-10-13 10:45:26 [只看该作者]

脚本里面,需要自己修改,满足自己房间需要的部分,我们才修改。其他的,不能更变的代码,甚至根本看不懂的代码,我们不用去理睬。

有时候,需要重新安排一些按钮的位置、大小,只要明白按钮位置定义的意思,就能设置了。比如下面的按钮定义,“收藏”后面的数字“6, 0,35,20”意思是:按钮距离左边6,距离上边0,按钮编号长度35,高度20。其他的都一样的意思。明白以后,就可以重新设置某个按钮到另一个地方。

这个介绍就到这里,脚本看多了,需要明白的地方,慢慢也就明白了,也就能自己配置房间了。

write_button("","收藏",6, 0,35,20,"","将本室加入收藏","addbookmark(0)"); write_button("","直达",41, 0,35,20,"","将使用当前的名字直接进入本室的快捷方式加入收藏","addbookmark(1)");

for(var i=0;i<9;i++) write_newwindow_button(a_link_button[i*2],111+35*i,0,35,20,"",a_link_button[i*2]+"\n"+a_link_button[i*2+1],a_link_button[i*2+1],"","");

write_button("autowelcome","迎宾",6,40,30,20,"","自动欢迎新进聊友","switch_autowelcome()");

write_button("","送花",374,60,35,20,"","发送鲜花掌声","autosend(a_flower)"); write_button("","欢迎",409,60,35,20,"","快速欢迎","autosend(a_welcome)"); write_button("","插图",409,80,35,20,"","输入图片","insert_picture()"); write_button("","温情",444,60,35,20,"","温情话语","autosend(a_love)"); write_button("","重复",269,80,35,20,"","重复上次的发言","repeat_msg()"); write_button("","送行",304,80,35,20,"","快速送行","autosend(a_byebye)"); write_button("","要麦",339,80,35,20,"","快速要麦","autosend(a_wantmic)"); write_button("","听见",374,80,35,20,"","快速听见","autosend(a_heart)"); write_button("","网址",444,80,35,20,"","本室网址\nhttp://"+room_number+".bliao.com","send_msg('三更有梦网址:http://"+room_number+".bliao.com')"); write_bkcolor_select("bkcolor","背景色",374,39,60,select_color,a_bkcolor,"changebkcolor(this)"); write_select("playemote","动作表情",479,80,72,select_color,a_emote,"send_selection_msg(this)"); write_select("picture","图片快递",479,60,72,select_color,a_picture,"play_pic(this)"); write_select_ex("playadmin","聊天帮助",533,0,72,select_color,a_admin,"send_msg"); write_select("linkurl","本室链接",533,80,72,select_color,a_linkurl,"gotolinkurl(this)"); write_singer_form(479,20,select_color); write_changeroom_form(269,100,126); write_changeuser_form(397,100,208); write_make_flower(269,120); if(isADMIN) { write_button("","下管",76,0,35,20,"","快速下管","xiaguan()"); write_button("switchkick","准踢",339,60,35,20,"","启用踢人功能","switch_kick()"); write_button("","准备",409,80,35,20,"","准备接麦","send_msg('您好!下一位到您接麦了,请您做好准备~~!谢谢! ')"); write_select_ex("playadmin","管理专用",533,60,72,select_color,a_admin,"send_msg"); if(document.screenForm.LOUT) document.screenForm.LOUT.insertAdjacentHTML("AfterEnd","<input type=button name=KEEPMIC value=护麦 title='每10秒自动护麦' onclick=\"auto_keep_mic();\">"); else document.screenForm.MIC.insertAdjacentHTML("AfterEnd","<input type=button name=KEEPMIC value=护麦 title='每10秒自动护麦' onclick=\"auto_keep_mic();\">"); document.screenForm.MIC.insertAdjacentHTML("AfterEnd","<input type=button name=GETMIC value=收麦 title='将麦克递给自己' onclick=\"keep_mic_fnc('"+a_user+"');\">"); } else { write_button("","上管",76,0,35,20,"","快速上管","guan()"); write_button("autospack","发公告",479,0,60,20,"","自动发布公告","auto_spack()"); write_button("","告辞",339,60,35,20,"","快速告辞","autosend(a_leave)"); write_select("linkroom","房间走廊",533,60,72,select_color,a_roomlink,"gotolinkroom(this)"); } }



三更论坛交流群:11484137 三更有梦休闲群:30275742
荞麦的新浪博客:http://blog.sina.com.cn/qiaomai
有事请点这里与荞麦临时会话QQ留言
 回到顶部
帅哥哟,离线,有人找我吗?
荞麦
  13楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:坛主 帖子:7889 积分:39456 威望:0 精华:5 注册:2004-7-31 17:34:24
防止寒江后台被别的房间连接的方法  发帖心情 Post By:2005-11-20 16:07:37 [只看该作者]

别人使用你的脚本,可能无意连接了你的后台,影响你的空间正常运行。可以修改后台文件login.asp,提示“盗链”的房间:

把下面的代码

else Response.Redirect "http://www.bliao.com";

替换为:

else if not roomid = ROOM_ID then Response.write "<SCRIPT LANGUAGE='JavaScript'>" Response.write "window.onerror = new Function('return true');" Response.write "alert(' 友好提示:\n\n该房间脚本无意连接了别人的后台!\n\n请尽快取消此连接,十分谢谢!');" Response.write "top.location.href='http://www.bliao.com';" Response.write "</SCRIPT>" end if

-----------------------------

可以替换上面的转向碧聊的网址为自己房间的登陆网址,那么进入盗链房间的就纷纷来到你的房间了,94000是房间号,修改为自己的房间号即可:

http://garden.bliao.com/loginchat.php?roomid=94000&USER=我来这里看看&PASS=密码



三更论坛交流群:11484137 三更有梦休闲群:30275742
荞麦的新浪博客:http://blog.sina.com.cn/qiaomai
有事请点这里与荞麦临时会话QQ留言
 回到顶部