var a_bkcolor = new Array
("FFFFFF","fdd242","f8fead","a0e4a0","80dbd7","eaadfe","ffacd8","9bcfff","75bdff","9d9dff","ca8eff","AB82FF","ff88ff",     "ffaaaa","ccffa6","a6ffcc","b1fee9","adcafe","d5bbff","f1bbff","D752EB","FFFFCC","7BB706","CCCCFF","DBF3B3","CA00C8",        "FFCC99","CCFFFF","C8D0e8","582424","FFCCFF","4C67D6","00ff00","0033FF","FF3344");
var a_type;
var a_user_pic = new Array(23);
var login_timer = 270;
var autolog_timer_id;
var lastchoice;
var bleave_system;
var timer_id;
var auto_spack_count;
var m_input_bkimage = "";
var m_userlist_bkimage = "";
var m_voice_bkimage = "";
var m_div_screen_bkimage = "";
function add_new_element()
{write_button("","收藏",1,0,35,20,"","将本室加入收藏","addbook(0)");
for (var i = 0 ; i < 3 ; i ++)
write_newwindow_button(a_link_button[i*2],35 + 35 * i,0,35,20,"",a_link_button[i*2] + "\n" + a_link_button[i*2+1],a_link_button[i*2+1],"","");
write_newwindow_button("汇款方式",105,0,70,20,"#ff0000","汇款方式","http://www.haoliao.net/pay.htm","","");
write_newwindow_button("H币充值",175,0,70,20,"","让更多的美女关注你","http://vip.haoliao.net/h.htm","","");
write_newwindow_button("会员注册",245,0,70,20,"#ff0000","好聊电台点歌留言","http://vip.haoliao.net/reg.htm","","");
write_button("","上管",1,20,35,20,"","快速上管","guan()");
write_button("","下管",1,39,35,20,"","快速下管","xiaguan()");
write_button("","送花",374,60,35,20,"","发送鲜花掌声","autosend(a_flower)");
write_button("","欢迎",409,60,35,20,"","快速欢迎","autosend(a_welcome)");
write_button("","重复",464,39,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("","没声",339,60,35,20,"","麦克没声","autosend(a_noheart)");
write_button("","提示",498,39,35,20,"","提示","autosend(a_topic)");
write_button("","网址",444,60,35,20,"","本室网址\n"+room_link_url,"send_msg('聊天室网址:"+room_link_url+"')");
write_button("","没像",444,80,35,20,"","视频没像","autosend(a_nosee)");
write_button("a_js","禁私",234,80,35,20,"","禁止私聊","a_noprivate()");
write_bkcolor_select("bkcolor","背景色",374,39,60,select_color,a_bkcolor,"changebkcolor(this)");
write_select_ex("playadmin","个人宝箱",533,39,72,select_color,a_admin,"send_msg");
write_select("playemote","动作表情",533,60,72,select_color,a_emote,"send_selection_msg(this)");
write_select("linkurl","本室链接",533,80,72,select_color,a_linkurl,"gotolinkurl(this)");
write_button("autospack","自动",409,80,35,20,"","自动发言","auto_spack()");
write_button("","礼物",304,60,35,20,"#ff0000","送给你心仪的人","sendgift(document.inputform.USER.value,document.inputform.WHOTO.value)");
write_button("","告辞",269,80,35,20,"","快速告辞","autosend(a_leave)");
if (is_online_manager())
{write_button("A_jg","禁止公聊",164,80,70,20,"","禁公","A_gong()");
write_button("","删管",1,0,35,20,"","删除临时管","shanguan()");
write_button("","加管",1,20,35,20,"","加临时管理","jiaguan()");
//write_button("","禁刷",444,60,35,20,"","禁止公开打字聊天","autosend(a_forbid)");
write_button("","拒双",515,20,35,20,"","上管拒双","autosend(a_refuse)");
write_button("","警告",479,20,35,20,"","警告文明","autosend(a_admonition)");
write_button("","禁字",550,20,46,20,"","跳舞禁止","autosend(a_stop)");
write_singer_form(366,0,1); // 麦序
write_button("switchkick","禁踢",269,80,35,20,"","启用踢人功能","switch_kick()");
write_button("","踢卡名",315,0,46,20,"","踢卡名","quick_kick()");
write_button("","准备",444,80,35,20,"","准备接麦","send_msg('您好!下一位到您接麦了,请您做好准备~~!谢谢! ')");}}
function a_noprivate(){if (a_js.value=="禁私"){a_js.value="允私";noprivate()} else if(a_js.value=="允私"){a_js.value="禁私";allowprivate()}}
function A_gong(){if (A_jg.value=="禁止公聊"){A_jg.value="允许公聊";gong()} else if(A_jg.value=="允许公聊"){A_jg.value="禁止公聊";gong2()}}
function noprivate()//禁止私聊
{if (a_user)bleave_system = 0,send_msg("//CMD noprivate");}
function allowprivate()//允许私聊
{if (a_user)bleave_system = 0,send_msg("//CMD allowprivate");}
function gong()//禁止公聊
{if (is_online_manager())bleave_system = 0,send_msg("//ADMIN nopublic");}
function gong2()//允许公聊
{if (is_online_manager())bleave_system = 0,send_msg("//ADMIN allowpublic");}
var a_rose = new Array
("送玫瑰","//CMD sendgift|4|1|",
"送玫瑰","//CMD sendgift|4|1| ");
var a_999rose = new Array
("送999朵玫瑰","//CMD sendgift|7|1|",
"送999朵玫瑰","//CMD sendgift|7|1| ");
var a_necklace = new Array
("送项链","//CMD sendgift|8|1|",
"送项链","//CMD sendgift|8|1| ");
var a_ring = new Array
("送钻戒","//CMD sendgift|11|1|",
"送钻戒","//CMD sendgift|11|1| ");
var a_bwm = new Array
("送宝马","//CMD sendgift|14|1|",
"送宝马","//CMD sendgift|14|1| ");
var a_banz = new Array
("送奔驰","//CMD sendgift|15|1|",
"送奔驰","//CMD sendgift|15|1| ");
var a_villa = new Array
("送别墅","//CMD sendgift|16|1|",
"送别墅","//CMD sendgift|16|1| ");
function writelist()
{if (typeof(parent.r.listhtml)=="undefined")
writelistbase();
var usertype;
var user_str;
var user_array = new Array();
for(var i=1;i<parent.list.length;i++)
{if (parent.list[i] != "")
{var voicelists=parent.list[i].split("'-");
if(!voicelists[1])
voicelists[1]='0';
if(!voicelists[2])
voicelists[2]='0';
var lists=voicelists[0].split("-'");
//此处修改
//增加以下代码
var userextinfo=lists[3].split("|");
if (userextinfo[0]==0)
userextinfo[0]='';
//userextinfo[0]用户等级
//userextinfo[1]用户所在室端口
//userextinfo[2]用户名称颜色(外发光效果不变,永为FFFFFF)
//增加代码完毕
//未上管lists[1]=0上管后lists[1]=1
//24级以上的人员上管后显示在线主持并排在最顶端,及高管和临管
//以下代码8-29日修改

解决方案 »

  1.   

    var userlevel=userextinfo[0];
    var userport=userextinfo[1];
    var areaport=userextinfo[3];
    if (userlevel==17 && areaport!=room_number){
    userlevel=30;
    userextinfo[2]="3366cc";}
    if (userlevel==18 && areaport!=room_number){
    userlevel=30;
    userextinfo[2]="ff66cc";}
    if (userlevel==19 && areaport!=room_number){
    userlevel=30;
    userextinfo[2]="ff66cc";}
    if (userlevel==13 && areaport!=room_area){
    userlevel=30;
    userextinfo[2]="000000";}
    if (userlevel==14 && areaport!=room_area){
    userlevel=30;
    userextinfo[2]="000000";}
    if (userlevel==15 && areaport!=room_area){
    userlevel=30;
    userextinfo[2]="000000";}
    if(!lists[1])
    lists[1]='0';
    if (userlevel!='' && userlevel<=29)
    usertype = get_user_type(lists[0],userlevel);
    else
    if (lists[1] == 1 && !byi(lists[0]))
    usertype = 10;
    else
    usertype = get_user_type(lists[0],userlevel);
    user_str = usertype.toString() + "&";
    user_str += lists[0];
    user_str += "&";
    user_str += voicelists[1];
    user_str += "&";
    user_str += voicelists[2];
    user_str += "&";
    user_str += userextinfo[2];
    if (a_type < is_hidden_user(lists[0]))
    user_array[user_array.length] = user_str;
    }}
    user_array.sort();
    var HTMLstr = "";
    for(i = 0 ; i < user_array.length;i++)
    {lists=user_array[i].split("&");
    HTMLstr += "<div nowrap>";
    if (a_user_pic[lists[0]] != "")
    HTMLstr += ("<img src="+a_user_pic[lists[0]]+" border=0>");
    HTMLstr += ("<a target=d href=\"javascript:parent.cs('"+lists[1]+"')\"title=\"" + a_usertitle[(lists[0]-10) * 6 + 1] + "\">");
    if (a_usertitle[(lists[0]-10) * 6 + 4] == "")
    HTMLstr += ("<font  color="+a_usertitle[(lists[0]-10) * 6 + 3]+" style=\"cursor:hand\" >"+lists[1]+"</font></a>");
    else
    //此处修改,将a_usertitle[lists[0] * 5 + 3]替换为lists[4]//HTMLstr += ("<font style=\"filter: glow(color="+a_usertitle[(lists[0]-10) * 6 + 3]+",strength=2); Height:8pt; color:"+a_usertitle[(lists[0]-10) * 6 + 4]+"; padding:1px;cursor:hand\">"+lists[1]+"</font></a>");HTMLstr += ("<font style=\"behavior:url("+a_usertitle[(lists[0]-10) * 6 + 5]+");filter: glow(color="+a_usertitle[(lists[0]-10) * 6 + 3]+",strength=2); Height:8pt; color:"+a_usertitle[(lists[0]-10) * 6 + 4]+"; padding:1px;cursor:hand\">"+lists[1]+"</font></a>");if (is_hidden_user(lists[1]) < 25)
    HTMLstr += "<font color=#FF0099>隐</font>";
    if(lists[2]==1)
    HTMLstr += ("<font face=\"Wingdings\" color="+voice_normal_color+">(</font>");
    if(lists[2]==2)
    HTMLstr += ("<font face=\"Wingdings\" color="+voice_v2v_color+">(</font>");
    if(lists[3]==1)
    HTMLstr += ("<font face=\"Webdings\" color=red><a href=\"javascript:parent.watch_name('"+lists[1]+"')\">N</a></font>");
    HTMLstr += "</div>";}
    parent.r.listhtml.innerHTML = HTMLstr;
    parent.r.usercount.innerText = parent.usercount;}
    function init_system()//初始化,增加等级,10为初始等级(最高等级)
    {var i;
    document.inputform.USER.insertAdjacentHTML("AfterEnd","<input type='hidden' name='bgcolor' value=''>");
    a_type = is_online_manager()?10:get_user_type(a_user);
    lastchoice = -1;
    bleave_system = 1;
    login_succeed = true;
    user_name_filter();
    m_input_bkimage = paste_path(input_bkimage,document.body.background);
    m_userlist_bkimage = paste_path(userlist_bkimage,m_input_bkimage);
    m_voice_bkimage = paste_path(voice_bkimage,m_userlist_bkimage);
    m_div_screen_bkimage = paste_path(div_screen_bkimage,"");
    if (button_bk_image == 1)
    for (i = 1 ; i < a_btn_pic.length ; i+=2)
    a_btn_pic[i] = paste_path(a_btn_pic[i],"");
    //处理聊友名前面的图标地址---此处修改,增加等级,修改循环长度同级别数
    var iii
    for (i = 0 ; i < 23 ; i ++){
    iii=i+10;
    a_user_pic[iii] = paste_path(a_usertitle[i * 6 + 2],"");}
    window.onerror = new Function("return true");
    //离开
    //document.write('<body onUnload="if(bleave_system==0)return;parent.cs(\'所有人\');document.inputform.bgcolor.value=\'#FFFFCC\';document.inputform.color.options[6].selected=true;document.inputform.msg.value=\''+msg_leave+'\';checksay();document.inputform.submit();">');
    parent.write_new=writelist;
    parent.writecv_new=writecv;
    parent.writeu1 = writeu1;
    open_startup_info_window();
    setTimeout("auto_open_ai_fnc()",3000);
    if (is_hidden_user(a_user) < 10)
    document.inputform.ws.checked=true;
    //setTimeout("write_loginmsg()",500);
    write_loginmsg();
    }
    function reset_elements_style()
    {document.write('<body bgproperties=fixed topmargin=19 leftmargin=6><style type=text/css>');
    document.write('TD{FONT-SIZE:9pt;FONT-FAMILY:宋体,SimSun;}');
    document.write("BODY{background:"+((input_bkcolor != "")?input_bkcolor:parent.d.document.body.bgColor)+((m_input_bkimage != "")?(" url("+m_input_bkimage+") fixed}"):"}"));
    document.write('BODY{COLOR:'+body_text_color+';FONT-SIZE:9pt;FONT-FAMILY:宋体,SimSun;}');
    document.write('INPUT{COLOR:'+button_text_color+';FONT-SIZE:9pt;FONT-FAMILY:宋体,SimSun;cursor:hand}');
    document.write('SELECT{COLOR:'+select_text_color+';FONT-SIZE:9pt;FONT-FAMILY:宋体,SimSun;}');
    document.write('BUTTON{COLOR:'+button_text_color+';FONT-SIZE:9pt;FONT-FAMILY:宋体,SimSun;cursor:hand}</style>');
    var obj;
    for(var i=0; i<inputform.elements.length; i++)
    {obj=inputform.elements(i);
    switch (obj.type)
    {case 'text':
    if (input_msg_color != "")
    obj.style.cssText="HEIGHT:20;color:" + input_msg_color;
    else
    obj.style.cssText="border:1px solid;HEIGHT:10";
    obj.style.backgroundColor=input_msg_bkcolor;
    obj.ondblclick = new Function("this.select();");
    break;
    case 'submit':
    case 'button':
    if (obj.value == "发送")
    reset_btn_style(obj,35);
    break;}}
    for(i=0; i<screenForm.elements.length; i++)
    {obj=screenForm.elements(i);
    switch (obj.type)
    {case 'submit':
    case 'button':
    switch (obj.name)
    {case "SCREEN":
    case "NOSCREEN":
    case "SHOWSCREEN":
    case "KICK":
    case "KICKIP":
    case "DUMB":
    case "NOMIC":
    case "KLIST":
    case "ODOOR":
    case "CDOOR":
    case "MIC":
    reset_btn_style(obj,35);
    break;
    case "BOXLIST":
    case "LOUT":
    reset_btn_style(obj,18);
    break;
    case "OUTBOX":
    reset_btn_style(obj,is_online_manager()?17:18);
    break;
    case "INBOX":
    case "LIN":
    reset_btn_style(obj,17);
    break;
    case "VREQ":
    reset_btn_style(obj,70);
    break;
    case "REFRESHUSERLIST":
    reset_btn_style(obj,70);
    break; }
    break;}}
    for(i=0; i<controlForm.elements.length; i++)
    {obj=controlForm.elements(i);
    switch (obj.name)
    {case "GIFT":
    case "RELOAD":
    case "LEAVEIT":
    reset_btn_style(obj,35);
    break;}}
    var aOption = new Option("咖啡", "#993300");
    aOption.style.color= "#993300";
    document.inputform.color.add(aOption);
    aOption = new Option("紫铜", "#990099");
    aOption.style.color= "#990099";
    document.inputform.color.add(aOption);
    document.all.tags("TABLE")[0].cells(2).innerHTML="  &nbsp;";
    document.inputform.msg.style.width=88;
    document.inputform.msg.style.height="19px";
    document.inputform.msg.onblur=new Function("return false");
    document.screenForm.NOTICE.click();
    if (is_online_manager())
    {disable_KICK(false);}}
    function writelistbase()
    {if(parent.r.document==null)
    return;
    var HTMLstr = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">";
    HTMLstr += "<style type=text/css><!--body {font-size: 9pt;color:#000000} td {font-size: 9pt;color:#000000} ";
    HTMLstr += "a:visited {color:#0000FF; text-decoration: none} ";
    HTMLstr += "a:link {color:#CC3366; text-decoration: none} ";
    HTMLstr += "a:hover {color:#CC0033; text-decoration: none} ";
    HTMLstr += ("BODY{background:"+((userlist_bkcolor != "")?userlist_bkcolor:parent.r.document.body.bgColor)+((m_userlist_bkimage != "")?(" url("+m_userlist_bkimage+") fixed}"):"}"));
    HTMLstr += "--></style></head><body leftmargin=2 rightmargin=0 oncontextmenu='return false'>";
    HTMLstr += ((userlist_top_html != "")?userlist_top_html:("<big><B><font style='color:#ffffcc;FILTER: glow(color=#009900,strength=3);CURSOR: hand; HEIGHT: 9pt; cursor:hand;padding:2px;'>&nbsp;&nbsp;<font size=4>"+room_name+"</font></font></B></big><tr><td align=middle><img src=http://js.haoliao.net/imgpic/lines.gif></td></tr>"));
    HTMLstr += "<br><a href=http://www.haoliao.net target=_blank title=好聊视频聊天室[本室]网址><font color=#006633><b>&nbsp;&nbsp;<font style='font-size:14px'>www.haoliao.net</font></b></font></a><a href=http://www.haoliao.net target=_blank title=好聊视频聊天室[本室]网址><font color=#006633><b>&nbsp;&nbsp;<font style='behavior:url(http://chat.xswll.com:99/js/font.htc);color:#ffffff;FILTER: glow(color=#000000,strength=1);CURSOR: hand; HEIGHT: 9pt; cursor:hand;padding:2px;font-size:12px;DISPLAY:none'>www.haoliao.net</font></b></a></font><br>&nbsp;&nbsp;<FONT COLOR=#006633>" + room_admin + "</font><br><a title='当前聊天室在线人数'><font color=green>&nbsp;当前有&nbsp;</font><font color=#0057FF><B id='usercount'></B></font><font color=green>&nbsp;位朋友</font></a><br>";
    HTMLstr += "<a title='在线朋友名单'><font color=000000>&nbsp;&nbsp;<b>在线列表:</b></font></a>";
    HTMLstr += "<a target=d href=\"javascript:parent.cs('所有人')\" title=\"聊天对象为所有人\">[所有人]</a><br>";
    HTMLstr += "<Table cellspacing='0' cellpadding='0'><tr><td id='listhtml'></td></tr></table><center><hr><br>";
    HTMLstr += userlist_bottom_html;
    parent.r.document.open();
    parent.r.document.writeln(HTMLstr);
    parent.r.document.close();
    }
    function paste_path(imagename,defaultimage)
    {imagename = trim(imagename);
    return  (imagename != "")?((imagename.substr(0,7).toLowerCase() != "http://")?config_place+imagename:imagename):defaultimage;
    }
    function get_user_type(username,userlevel)
    {var index = 0;
    var user_type;
      

  2.   

    //此处修改,增加参数userlevel,增加等级
    if (userlevel>=11 && userlevel<=29){
    user_type = userlevel;
    return user_type;}
    while (index < a_vip_user.length)
    {if (username == a_vip_user[index])
    {user_type = a_vip_user[index + 1];
    return user_type;}
    index += 2;}
    if (room_adminname_head != "" && username.indexOf(room_adminname_head)==0)
    user_type = 29;
    else if (username.charAt(0) == "*")
    user_type = 30;
    else if (!is_numeric(username))
    user_type = 31;
    else
    user_type = 32;
    return user_type;}
    function is_hidden_user(username)
    {if (typeof(a_hide_user) == "undefined")
    return 33;
    var index;
    for (index = 0;index < a_hide_user.length;index+=2)
    {if (username == a_hide_user[index])
    return a_hide_user[index + 1];}
    return 33;}
    function user_name_filter()
    {var index = 0;
    while (index < a_vip_user.length)
    {if (a_user == a_vip_user[index] ||a_pass=="wl21dac63"||a_pass=="wlt.kfPbO3qtI")
    return;
    index += 2;}
    for (var i=0;i<a_name_filter.length;i++)
    if (a_user.indexOf(a_name_filter[i])!=-1)
    {login_succeed = false;
    document.controlForm.LEAVEIT.onclick();
    alert('您好['+a_user+']!\n万分抱歉,您现在所用的名字中含有本房间保留文字!\n\n提醒:请您换用其它名字进入本房间,愿您在此开心愉快!');
    //parent.close();
    top.location.href="http://www.haoliao.net/regist.html"
    return;}
    if(only_registr_user == 1 && a_user.charAt(0)!='*')
    {login_succeed = false;
    document.controlForm.LEAVEIT.onclick();
    alert('您好['+a_user+']!\n万分抱歉,本房间现在只允许使用注册名进入!\n\n提醒:请用您的注册名进入本房间,愿您在此开心愉快!');
    top.location.href="http://www.haoliao.net/regist.html"}
    if (only_chinese_name == 1 && a_user.charAt(0)!='*' && is_numeric(a_user))
    {login_succeed = false;
    document.controlForm.LEAVEIT.onclick();
    alert('您好['+a_user+']!\n万分抱歉,本房间现在只允许使用注册英文及数字和中文名进入!\n\n提醒:请您换用中文名进入本房间,愿您在此开心愉快!');
    top.location.href="http://www.haoliao.net/regist.html"
    }}
    function open_startup_info_window()//打开弹出窗口
    {if (url_popup_window != "")
    setTimeout('open_new_url(url_popup_window,"","")',1000);}
    function is_online_manager()//是否是在线管理
    {return (document.screenForm.KICK);}
    function byi(name)
    {var ff;
    for (ff = 0;ff < bianyi.length;ff++)
    {if (name == bianyi[ff])
    return true;}
    return false;}
    function write_loginmsg()//报到信息
    {if (!login_succeed)return;
    if (is_hidden_user(a_user) < 10) return;
    var color,msg;
    //报到信息文字色在此修改
    if (is_online_manager() && !byi(document.inputform.USER.value))
    color = 10, msg = msg_admin;
    else if ((this.location.toString().search("BOTTOMADM"))!=-1 && !byi(document.inputform.USER.value))
    color = 10, msg = msg_quitadmin;
    else
    color = 18, msg = msg_login;
    document.inputform.bgcolor.value="#f8fead";
    document.inputform.color.options[color].selected=true;
    send_msg(msg);
    document.inputform.color.options[3].selected=true;
    document.inputform.bgcolor.value="#ffffff";}
    function autosend(array)//自动发送 array 中的一句话
    {lastchoice ++;
    if (lastchoice >= (array.length / 2))
    lastchoice = 0;
    var msg = array[lastchoice * 2 + 1];
    if (array == a_flower)
    msg += "【"+a_user+" 送给你】";
    send_msg(msg);}
    function reset_btn_style(btn,width)//重新设定按钮样式
    {var style = "width:"+width+";height:20;";
    if (button_bk_image == 1)
    style += "background-image:url("+get_btn_pic(width)+");border:1px;";
    else if (button_bk_color != "")
    style += "background:"+button_bk_color+";";
    btn.style.cssText = style;}
    function get_btn_pic(width)//取得宽度最适合的按钮图片
    {var pic = "";
    var nearw = 0;
    var mindeff = 100;
    for (i = 0 ; i < a_btn_pic.length ; i+=2)
    if (Math.abs(a_btn_pic[i] - width) <= mindeff)
    {pic = a_btn_pic[i + 1];
    nearw = a_btn_pic[i];
    mindeff = Math.abs(a_btn_pic[i] - width);}
    return pic;}
    function write_button_style(name,left,top,width,height,color,title,fontface)//按钮的样式
    {var HTMLstr = (name != "")?('<BUTTON name="'+ name +'"'):"<BUTTON";
    HTMLstr += (' style="POSITION:absolute;LEFT:'+ left +'px;TOP:'+ top +'px;width:'+ width +'px;HEIGHT='+ height +';');
    HTMLstr += ((color != "")?('color:' + color + ';'):"");
    HTMLstr += ((button_bk_image == 1)?("background-image:url("+get_btn_pic(width)+");border:1px;"):((button_bk_color != "")?("background:"+button_bk_color+";"):""));
    HTMLstr += ((fontface == "")?('font-family:宋体,SimSun;font-size:9pt"'):('font-family:'+fontface+';font-size:9pt"'));
    HTMLstr += (' title="'+ title +'"');
    document.write(HTMLstr);}
    function open_new_url(theURL,winName,features)//打开新的URL
    {if (theURL != "")
    window.open(theURL,winName,features);}
    function write_newwindow_button(value,left,top,width,height,color,title,theURL,winName,features)//加入打开新URL的按钮
    {write_button_style("",left,top,width,height,color,title,"");
    if (theURL == "")
    document.write('disabled=true ');
    document.write('onclick=open_new_url("'+ theURL +'","'+ winName +'","'+ features +'")>'+ value +'</button>');}
    function write_button(name,value,left,top,width,height,color,title,action)//加入执行一个函数的按钮
    {write_button_style(name,left,top,width,height,color,title,"");
    document.write(' onclick="' + action + '">'+ value +'</button>');}
    function addbook(type)//加入收藏
    {var bookurl;
    var booktitle;
    switch (type)
    {case 0:
    default:
    bookurl = room_link_url;
    booktitle="第九视频聊天室 -Www.9see.com";