?? osvi.js
字號:
var baseurl="../cgi-bin/webcm?getpage=../html/"
var imgAr=new Array()
imgAr[0]="Server DHCP"
imgAr[1]="Server DNS"
imgAr[2]="Gestione IP"
imgAr[3]="Modulazione"
imgAr[4]="Nuova conn"
imgAr[5]="UPNP"
imgAr[6]="Inoltra porte"
imgAr[7]="Chiudi porte"
imgAr[8]="Sicurezza"
imgAr[9]="Client LAN"
imgAr[10]="Filtri bridge"
imgAr[11]="Multicast"
imgAr[12]="Routing stat."
imgAr[13]="Routing din."
imgAr[14]="Salva/riavvia"
//imgAr[15]="Log remoti"
imgAr[16]="Data e ora"
imgAr[17]="Utente"
imgAr[18]="Config.xml"
imgAr[19]="Ping"
imgAr[20]="Test OAM"
imgAr[21]="DNS dinamici"
imgAr[22]="Stat. di rete"
imgAr[23]="LAN / WAN"
imgAr[24]="Client DHCP"
imgAr[25]="Stato DSL"
imgAr[26]="Info prodotto"
imgAr[27]="Log"
imgAr[28]="IPaccount"
imgAr[40]="Risorse"
imgAr[41]="Segnalazioni"
var urlAr=new Array()
urlAr[0]="setup/dhcp.htm"
urlAr[1]="setup/dns.htm"
urlAr[2]="setup/mgmtip.htm"
urlAr[3]="setup/modemsetup.htm"
urlAr[4]="setup/menu1_setup_pppoe.htm&var:contype=pppoe&var:param=5&var:conid=<? query manager:command/connection/new ?>&var:mode=new"
urlAr[5]="advanced/upnp.htm"
urlAr[6]="advanced/portforw.htm&var:pagename=fwan&var:category=categoryG"
urlAr[7]="advanced/acess.htm&var:pagename=flan&var:category=categoryG"
urlAr[8]="advanced/advsec.htm"
urlAr[9]="advanced/lanclients.htm"
urlAr[10]="advanced/bridgefilters.htm"
urlAr[11]="advanced/multicast.htm"
urlAr[12]="advanced/strouting.htm"
urlAr[13]="advanced/dyrouting.htm"
urlAr[14]="tools/syscommands.htm"
//urlAr[15]="tools/remotelog.htm"
urlAr[16]="tools/time.htm"
urlAr[17]="tools/usrmgmt.htm"
urlAr[18]="tools/updgateway.htm"
urlAr[19]="tools/pingtest.htm"
urlAr[20]="tools/modemtest.htm"
urlAr[21]="advanced/ddinamici.htm"
urlAr[22]="status/ethernet.htm"
urlAr[23]="status/connstatus.htm"
urlAr[24]="status/dhcpclients.htm"
urlAr[25]="status/modemstatus.htm"
urlAr[26]="status/prodinfo.htm"
urlAr[27]="status/syslog.htm"
urlAr[28]="../cgi-bin/ipaccount"
urlAr[29]="status/dsl.htm"
urlAr[40]="../cgi-bin/risorse"
urlAr[41]="tools/talkback.htm"
function logout() {
if(confirm("Sei sicuro di voler effettuare il logout?")) document.location.href="../cgi-bin/webcm?getpage=../html/logout.htm"
}
function bttn(num) {
document.write('<input type="button" class="bttmenu" value="'+imgAr[num]+'" id="btmenu_'+num+'" onClick="document.location.href=\'../cgi-bin/webcm?getpage=../html/'+urlAr[num]+'\';"><br><br>');
}
function intestazione(){
document.write('<div align="center">'+
'<table style="text-align: left; width: 770px; background-color: white;" border="0" cellpadding="0" cellspacing="0">'+
'<tbody>'+
'<tr>'+
'<td colspan="2" rowspan="1" style="height: 105px; width: 770px; background-image: url(\'../html/images/niko.gif\');"></td>'+
'</tr>'+
'<tr>'+
'<td colspan="2" rowspan="1" align="center">'+
'<table style="background-color: #D1D1E1; border: 1px solid #0B198C; width: 100%; border-left: 0px; border-right: 0px" cellpadding="6" cellspacing="0"><tbody>'+
'<tr align="center" class="hdr">'+
'<td id="a_index" onMouseOver="javascript:ricolora(\'a_index\',1,0);" onMouseOut="javascript:ricolora(\'a_index\',2,0);" style="width: 20%;"><a href="../cgi-bin/webcm?getpage=../html/home.htm" target="_self">Indice</a></td>'+
'<td id="a_confg" onMouseOver="javascript:ricolora(\'a_confg\',1,0);" onMouseOut="javascript:ricolora(\'a_confg\',2,0);" style="width: 20%;"><a href="../cgi-bin/webcm?getpage=../html/setup/index.htm" target="_self">Configurazione</a></td>'+
'<td id="a_avanz" onMouseOver="javascript:ricolora(\'a_avanz\',1,0);" onMouseOut="javascript:ricolora(\'a_avanz\',2,0);" style="width: 20%;"><a href="../cgi-bin/webcm?getpage=../html/advanced/index.htm" target="_self">Avanzate</a></td>'+
'<td id="a_tools" onMouseOver="javascript:ricolora(\'a_tools\',1,0);" onMouseOut="javascript:ricolora(\'a_tools\',2,0);" style="width: 20%;"><a href="../cgi-bin/webcm?getpage=../html/tools/index.htm" target="_self">Strumenti</a></td>'+
'<td id="a_stato" onMouseOver="javascript:ricolora(\'a_stato\',1,0);" onMouseOut="javascript:ricolora(\'a_stato\',2,0);" style="width: 20%;"><a href="../cgi-bin/webcm?getpage=../html/status/index.htm" target="_self">Stato</a></td>'+
'</tr></tbody></table>'+
'</td>'+
'</tr>'+
'<tr>'+
'<td style="width: 130px; text-align: center; vertical-align: top; background-color: white; border-right: 2px solid;" colspan="1" rowspan="2"><br>');}
function menu(tipo) {
if (tipo=="1") {
var stilozzo = "style='font-family: Arial, Verdana, Sans-Serif; font-size:12px; font-weight: bold; color: #0000A0; text-align: center;'";
document.write('<div '+stilozzo+'>Impostazioni LAN</div><br>');
bttn(0);
bttn(1);
bttn(2);
document.write('<br><br><div '+stilozzo+'>Impostazioni WAN</div><br>');
bttn(3);
bttn(4);
putconnectionidimages();
cambiaBK('a_config');
} else if (tipo=="2") {
bttn(6);
bttn(7);
bttn(8);
bttn(9);
bttn(10);
bttn(11);
bttn(12);
bttn(13);
bttn(21);
bttn(5);
cambiaBK('a_avanz');
} else if (tipo=="3") {
bttn(14);
//bttn(15);
bttn(16);
bttn(17);
bttn(18);
bttn(19);
bttn(20);
bttn(41);
cambiaBK('a_tools');
} else if (tipo=="4") {
bttn(22);
bttn(23);
bttn(24);
bttn(25);
bttn(26);
document.write('<input type="button" class="bttmenu" value="'+imgAr[28]+'" onClick="document.location.href=\'../cgi-bin/ipaccount\';"><br><br>');
document.write('<input type="button" class="bttmenu" value="'+imgAr[40]+'" onClick="document.location.href=\'../cgi-bin/risorse\';"><br><br>');
bttn(27);
cambiaBK('a_stato');
}
document.write('<br><input type="button" class="bttmenu" onClick="javascript:logout();" value="Logout">'+
'<br><br></td><td style="vertical-align: top; background-color: white;" align="center"><br><br>');
}
function footer() {
document.write('<br><br></td>'+
'</tr>'+
'</tbody></table>'+
'</div><br>');
}
function prendiogg(chi) {
if (document.getElementById) return document.getElementById(chi);
else if (document.all) return document.all[chi];
else if (document.layers) return document.layers[chi];
else return false;
}
function ricolora(chi, nuovoc) {
oggetto = prendiogg(chi);
if (nuovoc == 1) colore = "#7D9CD1"; //chiaro
else if (nuovoc == 2) colore = "#738FBF"; //scuro
else colore = nuovoc;
if (oggetto) oggetto.style.backgroundColor = colore;
}
function cambiaBK(chi) {
oggetto = prendiogg(chi);
if (oggetto) oggetto.style.backgroundImage = 'url(../html/images/selez.gif)';
}
function evidenziaBT(chi) {
oggetto = prendiogg('btmenu_'+chi);
if (oggetto) oggetto.style.backgroundImage = 'url(../html/images/bottone2.gif)';
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -