opløsning script... virker ikke i netcape
Hej ...Jeg har hjemmesiden www.sogemaskiner.dk og på den har jeg indsat følgende script
<SCRIPT LANGUAGE=\"JavaScript\"><!--
if (navigator.appName == \'Netscape\'){
if (screen.height > 768) { location.href = \'index2.htm\'; }
if (screen.height == 768) { location.href = \'index2.htm\'; }
if (screen.height == 600) { location.href = \'index.htm\'; }
if (screen.height == 480) { location.href = \'index.htm\'; }
if (screen.height < 480) { location.href = \'index.htm\'; }
}
else {
if (navigator.appName == \'Microsoft Internet Explorer\'){
if (screen.height > 768) { location.href = \'index2.htm\'; }
if (screen.height == 768) { location.href = \'index2.htm\'; }
if (screen.height == 600) { location.href = \'index.htm\'; }
if (screen.height == 480) { location.href = \'index.htm\'; }
if (screen.height < 480) { location.href = \'index.htm\'; }
}
else if (navigator.appName == \'*\'){
if (screen.height > 768) { location.href = \'index2.htm\'; }
if (screen.height == 768) { location.href = \'index2.htm\'; }
if (screen.height == 600) { location.href = \'index.htm\'; }
if (screen.height == 480) { location.href = \'index.htm\'; }
if (screen.height < 480) { location.href = \'index.htm\'; }
}
}
//--></SCRIPT>
Problemet er at når jeg åbner i netscape, skifter den ikke til den url der passer til opløsningen
andet problem hvis skifter opløsning på min skærm (1024x768 ned til 800 x 600) og prøver og gå ind på min hjemmeside, så står IE bare og klikker, uden og hente nogen side...
Håber i kan hjælpe...
Jesper
