Hallo,
hab mal wieder ein Problem.
Ich hab folgender Code:
HTML
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name=" " content="Adobe GoLive 5">
<title></title>
<script>
// ============================================================================
// here begins java script code
// ============================================================================
function OpenHelp()
{
var neu=null;
neu=window.open('', 'remote', 'directories=no, menubar=no, resizable=yes, scrollbars=yes toolbars=no, status=no, location=no, height=650 , width=800');
if (neu != null)
{
if (neu.opener == null)
{
neu.opener = self;
}
//neu.location.href = 'help.html';
neu.location.href = 'dialog_NotAvailable_Help.html';
}
}
// ============================================================================
function SetField(LANGUAGE)
{
var LangValue;
LangValue = document.FormLanguage.Hid_Lan_Menu.value;
if ( LangValue != LANGUAGE)
{
document.FormLanguage.Hid_Lan_Menu.value = LANGUAGE;
document.FormLanguage.Hidden_Submit.value = 1;
document.FormLanguage.DefaultIndex.value = 0;
LoadNewSide();
// send form
document.getElementById("FORM_LANG").submit();
}
else
{
return;
}
return;
}
// ============================================================================
function LoadNewSide()
{
var Value;
Value = document.FormLanguage.Hid_Lan_Menu.value;
ChangeSides('start.html');
return;
}
// ============================================================================
function ChangeSides(a)
{
top['WebBrowser_Dialog'].document.location.href = a;
return;
}
// ============================================================================
function CheckLanguage()
{
g_Language = 1//document.FormLanguage.Hid_Lan_Menu.value;
if ( g_Language == 1)
{
document.getElementById('HELP_LABEL').innerHTML = 'Hilfe';
document.getElementById('EXIT_LABEL').innerHTML = 'Beenden';
}
else if (g_Language == 2)
{
document.getElementById('HELP_LABEL').innerHTML = 'Help';
document.getElementById('EXIT_LABEL').innerHTML = 'Exit';
}
else
{
alert("Wrong Language !!!");
}
return;
}
// ============================================================================
function MouseOver(ID, BUTTON_ID, BUTTON_ID2)
{
document.getElementById(ID).bgColor = '#0480C3';
document.getElementById(ID).style.border = "3pt solid white";
document.getElementById(BUTTON_ID).style.color = "white";
if(BUTTON_ID2 != 0)
{
document.getElementById(BUTTON_ID2).style.color = "white";
}
return;
}
// ============================================================================
function MouseOut(ID, BUTTON_ID, BUTTON_ID2)
{
document.getElementById(ID).bgColor='#CAE3F2';
document.getElementById(ID).style.border = "3pt solid #96e1ff";
document.getElementById(BUTTON_ID).style.color = "black";
if(BUTTON_ID2 != 0)
{
document.getElementById(BUTTON_ID2).style.color = "black";
}
return;
}
// ============================================================================
// end java script
// ============================================================================
</script>
</head>
<body background="menu.gif" topmargin="490" marginheight="490" leftmargin="25" marginwidth="25" onLoad="CheckLanguage()" >
<div align="left">
<table border="0" cellpadding="0" cellspacing="5" width="160">
<tr height="50">
<th width="150" height="50" id="TAB_HELP" bgcolor="#CAE3F2" style="border:'3pt solid #96e1ff';" onclick="OpenHelp()" onmouseover="MouseOver('TAB_HELP', 'HELP_LABEL', 0)" onmouseout="MouseOut('TAB_HELP', 'HELP_LABEL', 0)">
[i]<font face="Arial" size="3" id="HELP_LABEL" color="black"></font>[/i]
</th>
</tr>
<tr height="50">
<a href="javascript:window.close()" >
<th width="150" height="50" id="TAB_EXIT" bgcolor="#CAE3F2" style="border:'3pt solid #96e1ff';" onmouseover="MouseOver('TAB_EXIT', 'EXIT_LABEL', 0)" onmouseout="MouseOut('TAB_EXIT', 'EXIT_LABEL', 0)">
[i]<font face="Arial" size="3" id="EXIT_LABEL" color="black"></font>[/i]
</a>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="5" width="200">
<tr height="15">
<td height="15" width="95">[url='#']<image src="german.gif" border=0 width="50" height="25" id="GERMAN">[/url]</td>
<td width="95" height="15">[url='#']<image src="english.gif" border=0 width="50" height="25" id="ENGLISH">[/url]</td>
</tr>
</table>
</p>
</div>
<form name="FormLanguage" method="post" id="FORM_LANG">
<input type="hidden" name="Hid_Lan_Menu" size="2" value="%i">
<input type="hidden" name="Hidden_Submit" size="2" value="" >
</form>
</body>
</html>
Alles anzeigen
Diese Seite ist in einem Frame.
Im IE funzt es mit window.close(), im Netscape, bzw Firefox eben nicht.
Hat jemand ne Idee?