Re-direct Problems - Still

Can anyone tell me what with this script, netscape will only load up my background image a freezes.<br />
<br />
****URL's have been changed to protect the innocent**** :)<br />
<br />
<script><br />
version=parseInt(navigator.appVersion);if (navigator.appVersion.indexOf('5.')>-1){version=5}; browser='OTHER'; if (navigator.appName=='Netscape'){browser='NS'+version;} if (navigator.appName=='Microsoft Internet Explorer'){browser='MSIE'+version;} if (navigator.appVersion.indexOf('MSIE 3')>0) {browser='MSIE3';} if(browser == 'NS5'){browser='NS6'};if (browser=='MSIE3') {window.location='http://www.accesscomm.ca/index.html'}if (browser=='MSIE4') {window.location='http://www.accesscomm.ca/index.html'}if (browser=='MSIE5') {window.location='http://www.accesscomm.ca/index.html'}if (browser=='MSIE6') {window.location='http://www.accesscomm.ca/testpage.html'}if (browser=='NS3') {window.location='http://www.accesscomm.ca/testpage.html'}if (browser=='NS4') {window.location='http://www.accesscomm.ca/testpage.html'}if (browser=='NS6') {window.location='http://www.accesscomm.ca/testpage.html'}if (browser=='OTHER') {window.location='http://www.accesscomm.ca/index.html'}<br />
</script><!--content-->Dunno if this helps any, but this is one that I've tried and it seems to work OK...<br />
<br />
<script type="text/javascript" language="JavaScript"> <br />
<!-- <br />
var agt=navigator.userAgent.toLowerCase(); <br />
var is_win = (agt.indexOf("win")!=-1); <br />
var is_mac = (agt.indexOf("mac")!=-1); <br />
<br />
var IE4 = (document.all && !document.getElementById) ? true : false; <br />
var NS4 = (document.layers) ? true : false; <br />
var IE5 = (document.all && document.getElementById) ? true : false; <br />
var NS6 = (document.getElementById && !document.all) ? true : false; <br />
<br />
if (IE4 || IE5 || NS6) <br />
{do this stuff for an IE4,IE5 or NS6 browser;}<br />
else <br />
{do this other stuff for a different browser;}<br />
<br />
// --> <br />
</script><!--content-->
 
Back
Top