dimkim
08-11-2005, 12:11 AM
I want to add a link to a map from a web page, my preferred map site is google map but have found that if the user is running IE on win98 their computer hangs. So I need a way of detecting if this instance occurs so that I can point them at multimap instead. I have tried writing the following script but can’t get it to work...
<script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName>="Internet Explorer")&&(userAgent.indexOf("windows 98"))
document.write("<a href='http://www.multimap.com/ '>see map<\/a>")
else
document.write("<a href='http://maps.google.co.uk/ '>see map<\/a>")
-->
</script>
Can anyone tell me where I am going wrong?
<script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName>="Internet Explorer")&&(userAgent.indexOf("windows 98"))
document.write("<a href='http://www.multimap.com/ '>see map<\/a>")
else
document.write("<a href='http://maps.google.co.uk/ '>see map<\/a>")
-->
</script>
Can anyone tell me where I am going wrong?