⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wireless_advanced.v23.svn-base

📁 一个很好的无线搜索、自动连接脚本
💻 SVN-BASE
📖 第 1 页 / 共 3 页
字号:
<% do_pagehead(); %>		<title><% nvram_get("router_name"); %> - Advanced Wireless Settings</title>		<script type="text/javascript">		//<![CDATA[document.title = "<% nvram_get("router_name"); %>" + wl_adv.titl;function initWlTimer(radio_on_time){	var color_red='#FF0000';	var color_green='#00FF00';		for(var i = 0; i < radio_on_time.length; i++){		if(radio_on_time.charAt(i)==1){			bgcolor=color_green;			val=1;		}else{			bgcolor=color_red;			val=0;		}		if(ie4 || op){			eval("document.all.td_" + i + ".style.backgroundColor = '" + bgcolor + "'");			eval("document.all.td_" + i + ".value = '" + val + "'");		}		if(ns4) {			eval("document.td_" + i + ".backgroundColor = '" + bgcolor + "'");			eval("document.td_" + i + ".value = '" + val + "'");		}		if(ns6) {			eval("document.getElementById('td_" + i + "').style.backgroundColor = '" + bgcolor + "'");			eval("document.getElementById('td_" + i + "').value = '" + val + "'");		}	}}function setWlTimer(id, state){	var color_red='#FF0000';	var color_green='#00FF00';		if(id=='all'){		if(state){			bgcolor=color_green;			val=1;		}else{			bgcolor=color_red;			val=0;		}					for(var i = 0; i < 24; i++) {			if(ie4 || op){				eval("document.all.td_" + i + ".style.backgroundColor = '" + bgcolor + "'");				eval("document.all.td_" + i + ".value = '" + val + "'");			}			if(ns4){				eval("document.td_" + i + ".backgroundColor = '" + bgcolor + "'");				eval("document.td_" + i + ".value = '" + val + "'");			}			if(ns6){				eval("document.getElementById('td_" + i + "').style.backgroundColor = '" + bgcolor + "'");				eval("document.getElementById('td_" + i + "').value = '" + val + "'");			}		}	} else {		if(ie4 || op){			if(eval("document.all." + id + ".value")=='1'){				eval("document.all." + id + ".style.backgroundColor = '" + color_red + "'");				eval("document.all." + id + ".value = '0'");			}else{				eval("document.all." + id + ".style.backgroundColor = '" + color_green + "'");				eval("document.all." + id + ".value = '1'");			}		}		if(ns4){			if(eval("document." + id + ".value")=='1'){				eval("document." + id + ".backgroundColor = '" + color_red + "'");				eval("document." + id + ".value = '0'");			}else{				eval("document." + id + ".backgroundColor = '" + color_green + "'");				eval("document." + id + ".value = '1'");			}		}		if(ns6){			if(eval("document.getElementById('" + id + "').value")=='1'){				eval("document.getElementById('" + id + "').style.backgroundColor = '" + color_red + "'");				eval("document.getElementById('" + id + "').value = '0'");			}else{				eval("document.getElementById('" + id + "').style.backgroundColor = '" + color_green + "'");				eval("document.getElementById('" + id + "').value = '1'");			}		}	}}function computeWlTimer(){	var radio_on_time='';		for(var i = 0; i < 24; i++){		if(ie4 || op){			radio_on_time+=eval("document.all.td_" + i + ".value");		}		if(ns4) {			radio_on_time+=eval("document.td_" + i + ".value");		}		if(ns6) {			radio_on_time+=eval("document.getElementById('td_" + i + "').value");		}	}	return radio_on_time;}function setRadioTable(){	var table = document.getElementById("radio_table");	cleanTable(table);		var row1 = table.insertRow(-1);	var row2 = table.insertRow(-1);	row2.style.cursor = "pointer";		for(var i = 0; i < 24; i++){				var cell_label = row1.insertCell(-1);		cell_label.innerHTML = i;						var cell_timer = row2.insertCell(-1);		cell_timer.style.width = "4%";		cell_timer.id = "td_" + i;		cell_timer.title = i + "h - " + eval(i+1) + "h";		cell_timer.innerHTML = "&nbsp;";		cell_timer.onclick=function(){setWlTimer(this.id, true);};	}}function to_submit(F) {	F.save_button.value = sbutton.saving;	F.radio0_on_time.value = computeWlTimer();	apply(F);}function setWMM(val) {	setElementsActive("wl_wme_no_ack", "_wl_wme_sta_vo5", val == "on");}addEvent(window, "load", function() {	setRadioTable();	setWMM("<% nvram_get("wl_wme"); %>");	show_layer_ext(document.wireless.wl_wme, 'idwl_wme', <% nvram_else_match("wl_wme", "on", "1", "0"); %> == 1);	show_layer_ext(document.wireless.radio_timer_enable, 'radio', <% nvram_else_match("radio_timer_enable", "1", "1", "0"); %> == 1);	initWlTimer('<% nvram_get("radio0_on_time"); %>');});				//]]>		</script>	</head>	<body class="gui">		<% showad(); %>		<div id="wrapper">			<div id="content">				<div id="header">					<div id="logo"><h1><% show_control(); %></h1></div>				<% do_menu("Wireless_Basic.asp","Wireless_Advanced.asp"); %>				</div>				<div id="main">					<div id="contents">						<form id="wireless" name="wireless" action="apply.cgi" method="<% get_http_method(); %>">							<input type="hidden" name="submit_button" value="Wireless_Advanced" />							<input type="hidden" name="action" value="Apply" />							<input type="hidden" name="change_action" />							<input type="hidden" name="submit_type" />							<input type="hidden" name="commit" value="1" />														<input type="hidden" name="radio0_on_time" />							<h2><% tran("wl_adv.h2"); %></h2>														<fieldset>								<legend><% tran("wl_adv.legend"); %></legend>								<div class="setting">									<div class="label"><% tran("wl_adv.label"); %></div>									<input class="spaceradio" type="radio" name="wl_auth" value="0" <% nvram_checked("wl_auth", "0"); %> /><% tran("share.auto"); %>&nbsp;									<input class="spaceradio" type="radio" name="wl_auth" value="1" <% nvram_checked("wl_auth", "1"); %> /><% tran("share.share_key"); %>									<span class="default">										<script type="text/javascript">										//<![CDATA[										document.write("(" + share.deflt + ": " + share.auto + ")");										//]]>										</script>									</span>								</div>								<div class="setting">									<div class="label"><% tran("wl_adv.label2"); %></div>									<select name="wl_rateset">										<option value="12" <% nvram_selected("wl_rateset", "12"); %>>1-2 Mbps</option>										<script type="text/javascript">										//<![CDATA[										document.write("<option value=\"default\" <% nvram_selected("wl_rateset", "default", "js"); %>>" + share.deflt + "</option>");										document.write("<option value=\"all\" <% nvram_selected("wl_rateset", "all", "js"); %>>" + share.all + "</option>");										//]]>										</script>									</select>									<span class="default">										<script type="text/javascript">										//<![CDATA[										document.write("(" + share.deflt + ": " + share.deflt + ")");										//]]>										</script>									</span>								</div>								<div class="setting">									<div class="label"><% tran("wl_adv.label3"); %></div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -