function $(id){ return document.getElementById(id); } var sjbMute=0; var chname=""; var vpn=0; var sep; var bMute = 0; var volume = 100; var playing = 0; var u_id ="{72667B9E-803F-48D0-B71C-1E0B3B7DE5C9}"; var u_name = "CCTV1"; var u_av = 1; //var u_type = ""; var chtype= 102; var u_info = "#1"; var opc=""; var state=""; var kep=""; var ket=""; var chtype=""; var pcl; /*获取频道列*/ function queryString(sParam){ var sBase = window.location.search; var re = eval("/" + sParam + "=([^&]*)/"); if (re.test(sBase)){ return RegExp.$1; } else{ return "uu_shell" ; } } var platform = queryString("platform"); if(platform==""){ platform="uu_shell"; } /*鼠标菜单效果*/ function sjxplay(name,tvno,info,type,av){ if(state==tvno){ //解决双击问题 }else{ state = tvno; /*播放代码*/ chtype=type; u_av=av; u_name=name; u_id=tvno; u_info=info.substr(1,3); /*判断info的长短*/ //name=[UUSEE网络电视]&id={53B9C5ED-5A29-44BB-9DDF-0173F429B760}&type=112&info=2&platform=telcom if(platform=="etong"){ var purl = "/player/newplayer/shutter_play.php?name="+ escape(u_name) +"&id="+ u_id +"&type="+ chtype +"&info="+ u_info +"&platform="+platform; }else{ var purl = "/player/newplayer/uu_play.php?name="+ escape(u_name) +"&id="+ u_id +"&type="+ chtype +"&info="+ u_info +"&platform="+platform; } //alert(purl); parent.document.getElementById("leftFrame").src=purl; //避免鼠标多次 var pcl = setInterval("clean()",20000); } } function clean(){ clearInterval(pcl); state=""; } function opcf(cp){ if (opc!=""){ opc.className="ce"; } opc=cp; cp.className="ce2"; } function opk(obj){ if (opc!=obj){ obj.className="ce"; } } function showDanp(obj,cid){ //alert(obj.innerHTML); /*确保只运行一次*/ if(obj.innerHTML==""){ psort(cid); obj.style.display='block'; $("cp_"+cid).className="cp2"; }else { if (obj.style.display=='none'){ obj.style.display='block'; $("cp_"+cid).className="cp2"; } else{ obj.style.display='none'; $("cp_"+cid).className='cp1'; } } } var xmlDoc; var chl_Num; var adNum; var xmlDocHot; var hotNum; var G5; var G4; var G3; var G2; var G1; /*开始加载*/ function loadlist(){ xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); //==var xmlFile = "UUTV_NEW.xml" ; var xmlFile = "http://www.uusee.com/clientver_uusee_mini/SubUpdate/UUTV_NEW.xml" ; xmlDoc.async=false; xmlDoc.load(xmlFile); if (xmlDoc.parseError.errorCode !=0){ // document.getElementById("plist").innerHTML="加载失败!检查你的网络是否连接!"; } else{ chl_node = xmlDoc.selectNodes("/UUTV/Class/Channel"); //获取全部频道数 chl_Num = chl_node.length; //alert(chl_Num); node = xmlDoc.selectNodes("//Class"); //获取全部类别 adNum = node.length; /*获取channelinfo*/ gInfo = xmlDoc.selectNodes("//UUTV/Info"); /*获取热度*/ xmlDocHot = new ActiveXObject("Microsoft.XMLDOM"); var xmlFileHot = "UUTV_STAT.xml" ; //var xmlFileHot = "http://www.uusee.com/clientver_uusee_mini/SubUpdate/UUTV_STAT.xml" ; xmlDocHot.async=false; xmlDocHot.load(xmlFileHot); if (xmlDocHot.parseError.errorCode ==0){ //加载成功!; nodeHot = xmlDocHot.selectNodes("//UUTV/Channel"); hotNum = nodeHot.length; gHot = xmlDocHot.selectNodes("//UUTV"); G5 = gHot[0].getAttribute("G5"); G4 = gHot[0].getAttribute("G4"); G3 = gHot[0].getAttribute("G3"); G2 = gHot[0].getAttribute("G2"); G1 = gHot[0].getAttribute("G1"); //alert(G5); } } } /*根据id信息获取热度,输出相应的图片*/ function getHot(chid){ for (i=0;i=G5){ return ""; } if(stat>=G3&&id"); } if(stat>=G2&&stat"); } if(stat>=G1&&stat"); } if(stat<=G1){ return (""); } break; } } } /*2个搜索模式*/ var runonce = 0; function searchtv(str){ if(runonce==0){ loadlist(); runonce =1; } var str2=str.replace(/(\/|\\|\||\(|\)|\.|\*|\$|\&|\?|\+|\{|\}|\^|\[|\]|\-)/ig,''); if(str2!=""){ var cell = document.createElement("div"); for(var a=0; a"; } cell.innerHTML+="
"+name+"
"+hot+"
"; } } document.getElementById("plist").style.display="none"; document.getElementById("searchlist").style.display="block"; document.getElementById("searchlist").innerHTML=cell.innerHTML; if(cell.innerHTML==""){ document.getElementById("searchlist").innerHTML="没有检索到相关频道!"; } } else{ document.getElementById("searchlist").style.display="none"; document.getElementById("plist").style.display="block"; } } function searchsb(){ document.searchform.action = "http://so.uusee.com/search/filteredSearch.asp"; document.searchform.target = "_blank"; document.searchform.submit(); } try{ $("lietitle").innerHTML="  全部频道("+ chl_Num +")"; }catch(e){ }