Leider konnte ich die showmenu.js nicht als Anhang hochladen, auch nicht als Txt-Datei, deshalb hier offen. :roll:
Da ich nichts von Javascript verstehe, kann ich zum Inhalt nicht sagen, ausser dass am Ende zwei leere geschweifte Klammern sind, ansonsten aber alle Klammern geschlossen scheinen.
Code
//added by bin 04/03/2003
function showHead(wanStatus,helpItem,isRouter,isPS)
{
var strHtml;
strHtml = '<table border="0" cellspacing="0" cellpadding="0" align="left" width="100%" height="100%">'+
'<tr>'+
'<td colspan="3" bordercolor="#FFFFFF" height="64">'+
'<table width="100%" border="0" cellspacing="0" cellpadding="0" >'+
'<tr>'+
'<td rowspan="3" width="20" valign="bottom">'+
'<a href="http://www.belkin.com"><img src="graphics/head_logo.gif" border="0" width="121" height="64"></a>'+
'</td>'+
'<td colspan="4" height="21" align="right" nowrap> '+
'</td>'+
'</tr>';
document.write(strHtml);
if('1'=='1' )
{
strHtml = '<tr>'+
'<td colspan="4" height="18">'+
'<img src="graphics/title.gif" height="15" width="265">'+
'</td>'+
'</tr>';
document.write(strHtml);
}
else
{
strHtml = '<tr>'+
'<td colspan="4" height="18" class="head_bold">'+
'Wireless Access Point Setup Utility'+
'</td>'+
'</tr>';
document.write(strHtml);
}
strHtml = '<tr>'+
'<td background="graphics/bar_floor.gif" width="150" height="28">'+
'<img src="graphics/shim.gif" width="1" height="28" >'+
'</td>'+
'<td background="graphics/bar.gif" height="28" >'+
'<img src="graphics/bar_slope.gif" width="163" height="28">'+
'</td>'+
'<td background="graphics/bar.gif" height="28" align="right" nowrap class="top_nav"> ';
document.write(strHtml);
if(helpItem=='indexa' || helpItem=='Login' || helpItem=='Helpa' )
{
strHtml = '<nobr><a href="indexa.htm" class="top_nav">'+show1+'</a>'+
'| <a href="helpa.htm" class="top_nav">'+show2+'</script></a>'+
'| <a href="login.htm" class="top_nav">'+show3+'</a> ';
document.write(strHtml);
}
else
{
strHtml = '<nobr><a href="index.htm" class="top_nav">'+show1+'</a>'+
'| <a href="help.htm" class="top_nav">'+show2+'</script></a>';
document.write(strHtml);
if (helpItem!='Help' && helpItem!='Parental Control') {
strHtml = '| <a href="javascript:document.forms[0].submit()" onClick="return logoutF();" class="top_nav">'+show4+'</a> ';
document.write(strHtml);
}
else document.write(' ');
}
//alert(wanStatus);
if(wanStatus == 'Up')
{
strHtml = '<span class="top_nav">'+show5+': <b>'+
'<font face="verdana,arial" size="2" color="#33FF33">'+show6+'</font></b></nobr> ';
document.write(strHtml);
}
else if(wanStatus == 'Down')
{
strHtml = '<span class="top_nav">Internet Status: <b>'+
'<font face="verdana,arial" size="2" color="#FF0000">'+show7+'</font></b></nobr> ';
document.write(strHtml);
}
else
{
}
strHtml = '</td>'+
'<td height="28" align="right" background="graphics/bar.gif" >'+
'<img src="graphics/bar_cap.gif" width="11" height="28">'+
'</td>'+
'</tr>'+
'</table>'+
'</td>'+
'</tr>';
document.write(strHtml);
}
function showMenu(menuSection,menuItem,isRouter,isPS,isAPmode)
{
var yellow ='#FFFF00';
var white ='#FFFFFF';
var red ='#FF0000';
var blue ='#E8F8FF';
var darkBlue ='#94CAE4';
var black ='#000000';
var bssid = '00:11:50:38:c6:39';
//alert(isRouter);
//alert(isAPmode);
var strHtml;
strHtml='<tr>'+
'<td valign="top" width="130" height="100%">'+
'<table width="140" border="0" cellspacing="0" cellpadding="0" align="left">';
document.write(strHtml);
// Router Mode
if(isAPmode =='0')
{
// LAN Section
if(menuSection=='LAN')
{
printMenuSection('lan_main.htm', show8, yellow);
if(menuItem=='LAN Settings')
{
printMenuItem('lan_settings.htm', show9, red, darkBlue);
}
else
{
printMenuItem('lan_settings.htm', show9, black, blue);
}
if(menuItem=='DHCP Client List')
{
printMenuItem('lan_dhcp.htm', show10, red, darkBlue);
}
else
{
printMenuItem('lan_dhcp.htm', show10, black, blue);
}
}
else
{
printMenuSection('lan_main.htm', show8, white);
printMenuItem('lan_settings.htm', show9, black, white);
printMenuItem('lan_dhcp.htm', show10, black, white);
}
// WAN Section
if(menuSection=='WAN')
{
printMenuSection('wan_main.htm', show11, yellow);
if(menuItem=='Connection Type')
{
printMenuItem('wan_conn.htm', show12, red, darkBlue);
}
else
{
printMenuItem('wan_conn.htm', show12, black, blue);
}
if(menuItem=='DNS')
{
printMenuItem('wan_dns.htm', show13, red, darkBlue);
}
else
{
printMenuItem('wan_dns.htm', show13, black, blue);
}
if(menuItem=='MAC Address')
{
printMenuItem('wan_mac.htm', show14, red, darkBlue);
}
else
{
printMenuItem('wan_mac.htm', show14, black, blue);
}
}
else
{
printMenuSection('wan_main.htm', show11, white);
printMenuItem('wan_conn.htm', show12, black, white);
printMenuItem('wan_dns.htm', show13, black, white);
printMenuItem('wan_mac.htm', show14, black, white);
}
}
// router or ap mode
/*
// WLAN Section
if(bssid != show15) {
if(menuSection=='WLAN')
{
printMenuSection('wireless_main.htm', show16, yellow);
if(menuItem=='Channel and SSID')
{
printMenuItem('wireless_chan.htm', show17, red, darkBlue);
}
else
{
printMenuItem('wireless_chan.htm', show17, black, blue);
}
if(menuItem=='Security')
{
printMenuItem('wireless_encrypt.htm', show18, red, darkBlue);
}
else
{
printMenuItem('wireless_encrypt.htm', show18, black, blue);
}
if(menuItem=='Use as Access Point')
{
if('1'=='1' )
{
printMenuItem('wireless_apt.htm', show19, red, darkBlue);
}
else
{
printMenuItem('wireless_apt.htm', show20, red, darkBlue);
}
}
else
{
if('1'=='1' )
{
printMenuItem('wireless_apt.htm', show19, black, blue);
}
else
{
printMenuItem('wireless_apt.htm', show20, black, blue);
}
}
if(isAPmode=='1') // AP or ap mode of router
{
if(menuItem=='MAC Address Control')
{
printMenuItem('wireless_mac_ctrl.htm', show21, red, darkBlue);
}
else
{
printMenuItem('wireless_mac_ctrl.htm', show21, black, blue);
}
}
if(menuItem=='Wireless Bridge')
{
printMenuItem('wireless_bridge.htm', show22, red, darkBlue);
}
else
{
printMenuItem('wireless_bridge.htm', show22, black, blue);
}
}
else
{
printMenuSection('wireless_main.htm', show16, white);
printMenuItem('wireless_chan.htm', show17, black, white);
printMenuItem('wireless_encrypt.htm', show18, black, white);
if('1'=='1' )
{
printMenuItem('wireless_apt.htm', show19, black, white);
}
else
{
printMenuItem('wireless_apt.htm', show20, black, white);
}
if(isAPmode=='1') // AP or ap mode of a router
{
printMenuItem('wireless_mac_ctrl.htm', show21, black, white);
}
printMenuItem('wireless_bridge.htm', show22, black, white);
}
}
*/
//router mode
if(isAPmode=='0')
{
// Fire Wall Section
if(menuSection=='Fire')
{
printMenuSection('fw_main.htm', show23, yellow);
//if(menuItem=='Application Gateways')
//{
// printMenuItem('fw_gtwy.htm', 'Application Gateways', red, darkBlue);
//}
//else
//{
// printMenuItem('fw_gtwy.htm', 'Application Gateways', black, blue);
//}
if(menuItem=='Virtual Servers')
{
printMenuItem('fw_virt.htm', show24, red, darkBlue);
}
else
{
printMenuItem('fw_virt.htm', show24, black, blue);
}
if(menuItem=='Client IP Filters')
{
printMenuItem('fw_clientip.htm', show25, red, darkBlue);
}
else
{
printMenuItem('fw_clientip.htm', show25, black, blue);
}
if(menuItem=='MAC Address Filtering')
{
printMenuItem('fw_mac.htm', show26, red, darkBlue);
}
else
{
printMenuItem('fw_mac.htm', show26, black, blue);
}
if(menuItem=='DMZ')
{
printMenuItem('fw_dmz.htm', show27, red, darkBlue);
}
else
{
printMenuItem('fw_dmz.htm', show27, black, blue);
}
if(menuItem=='WAN Ping Blocking')
{
printMenuItem('fw_ping.htm', show28, red, darkBlue);
}
else
{
printMenuItem('fw_ping.htm', show28, black, blue);
}
if(menuItem=='Security Log')
{
printMenuItem('fw_security.htm', show29, red, darkBlue);
}
else
{
printMenuItem('fw_security.htm', show29, black, blue);
}
}
else
{
printMenuSection('fw_main.htm', show23, white);
//printMenuItem('fw_gtwy.htm', 'Application Gateways', black, white);
printMenuItem('fw_virt.htm', show24, black, white);
printMenuItem('fw_clientip.htm', show25, black, white);
printMenuItem('fw_mac.htm', show26, black, white);
printMenuItem('fw_dmz.htm', show27, black, white);
printMenuItem('fw_ping.htm', show28, black, white);
printMenuItem('fw_security.htm', show29, black, white);
}
}
// Printer Server section
//router mode
if(isPS =='1')
{
if(menuSection=='Printer')
{
printMenuSection('Printer_main.htm', show39, yellow);
if(menuItem=='Printer Config')
{
printMenuItem('Printer_config.htm', show40, red, darkBlue);
}
else
{
printMenuItem('Printer_config.htm', show40, black, blue);
}
}
else
{
printMenuSection('Printer_main.htm', show39, white);
printMenuItem('Printer_config.htm', show40, black, white);
}
}
// router or ap mode
// Utilities Section
if(menuSection=='Util')
{
printMenuSection('util_main.htm', show30, yellow);
if(1==0) {
if(isAPmode=='0') // router
{
if(menuItem=='Parental Control')
{
printMenuItem('util_parentalc.htm', show31, red, darkBlue);
}
else
{
printMenuItem('util_parentalc.htm', show31, black, blue);
}
}
}
if(menuItem=='Restart Router')
{
if('1'=='1' )
{
printMenuItem('util_reset.htm', show32, red, darkBlue);
}
else
{
printMenuItem('util_reset.htm', show33, red, darkBlue);
}
}
else
{
if('1'=='1' )
{
printMenuItem('util_reset.htm', show32, black, blue);
}
else
{
printMenuItem('util_reset.htm', show33, black, blue);
}
}
if(menuItem=='Restore Factory Default')
{
printMenuItem('util_factory.htm', show34, red, darkBlue);
}
else
{
printMenuItem('util_factory.htm', show34, black, blue);
}
if(menuItem=='Save/Backup Settings')
{
printMenuItem('util_save.htm', show35, red, darkBlue);
}
else
{
printMenuItem('util_save.htm', show35, black, blue);
}
if(menuItem=='Restore Previous Settings')
{
printMenuItem('util_prev.htm', show36, red, darkBlue);
}
else
{
printMenuItem('util_prev.htm', show36, black, blue);
}
if(menuItem=='Firmware Update')
{
printMenuItem('util_firmware.htm', show37, red, darkBlue);
}
else
{
printMenuItem('util_firmware.htm', show37, black, blue);
}
if(menuItem=='System Settings')
{
if(isAPmode=='0')
{
printMenuItem('util_system.htm', show38, red, darkBlue);
}
else
{
printMenuItem('utilb_system.htm', show38, red, darkBlue);
}
}
else
{
if(isAPmode=='0')
{
printMenuItem('util_system.htm', show38, black, blue);
}
else
{
printMenuItem('utilb_system.htm', show38, black, blue);
}
}
}
else
{
printMenuSection('util_main.htm', show30, white);
if(1==0){
if(isAPmode=='0') // router
{
printMenuItem('util_parentalc.htm', show31, black, white);
}
}
if('1'=='1' )
{
printMenuItem('util_reset.htm', show32, black, white);
}
else
{
printMenuItem('util_reset.htm', show33, black, white);
}
printMenuItem('util_factory.htm', show34, black, white);
printMenuItem('util_save.htm', show35, black, white);
printMenuItem('util_prev.htm', show36, black, white);
printMenuItem('util_firmware.htm', show37, black, white);
if(isAPmode=='0')
{
printMenuItem('util_system.htm', show38, black, white);
}
else
{
printMenuItem('utilb_system.htm', show38, black, white);
}
}
//router mode
/*if(isAPmode=='0')
{
// Parental Control Section
if(menuSection=='Parent')
{
printMenuSection('', 'Parental Control', white);
}
else
{
printMenuSection('', 'Parental Control', yellow);
}
}*/
strHtml= '</table>'+
'</td>'+
'<td valign="top" width="1" bgcolor="#006699" height="100%">'+
'<img src="graphics/shim.gif" width="1" height="1">'+
'</td>';
document.write(strHtml);
}
function showTail()
{
var strHtml;
strHtml = '</tr>'+
'</table>'+
'</body>'+
'</html>';
document.write(strHtml);
}
function printMenuSection(link, content, color)
{
var strHtml;
strHtml= '<tr>'+
'<td colspan="2" height="20" width="140" background="graphics/blu_bar.gif">'+
'<img src="graphics/shim.gif" width="8" height="8">'+
'<a href="' + link + '" class="section"><font color="' + color + '">'+
content+
'</font></a>'+
'</td>'+
'</tr>';
document.write(strHtml);
}
function printMenuItem(link, content, color, background)
{
var strHtml;
strHtml= '<tr>'+
'<td width="5" bgcolor="' + background + '"> </td>'+
'<td class="leftLink" bgcolor="' + background + '">'+
'<a href="' + link + '"><font color="' + color + '">' + content + '</font></a>'+
'</td>'+
'</tr>';
document.write(strHtml);
}
function chkautofw()
{
}
Alles anzeigen