Forum Moderators: open
I am using a dhtml navigation which comes out of the side and it's working on every browser except on a mac ie5.0 and netscape 4.7 (nothing new there).
I am trying to find a browser detect which allows you to detect only ie 5.0 and only on a mac. It works fine on ie 5.2 and all script I found are all browsers 5 upwards...
It should only redirect to an upgrade your browser page if you are using ie mac 5.0.
Can anybody help - please?
Thanks
Nathalie
<script language="javascript">
Mac = navigator.userAgent.indexOf("Mac") > -1;
n = navigator.userAgent;
ms = n.substr(n.indexOf("MSIE"), 4);
if(Mac)if(ms == 'MSIE')//do your redirect here!
</script>
OR
<script language="javascript">
Mac = navigator.userAgent.indexOf("Mac") > -1;
n = navigator.userAgent;
if(Mac)if(n.indexOf("MSIE"))//do your redirect here!
</script>
Is this what you are after?
-George
if that redirects all mac users to
[myhumblewebsite.com...]
its wat i want thanx :)
its hard 4 non mac users 2 test that kind of thing :(
Another thing: maintaining two or more versions of the same page may be possible for amateur sites. In a business environment the costs will soon be considered too high.
<script language="javascript">
Mac = navigator.userAgent.indexOf("Mac") > -1;
n = navigator.userAgent;
if(Mac)if(n.indexOf("MSIE"))location.replace('http://www.yourdomain.com/mac_users.html');
</script>
HTH,
-George
I discovered if you put a piece of non-floated content, equal or greater in height to the height of the first float, above the first float, the problem seems to disappear. Wierd but consistent and repeatable. Since this site contains image galleries with images of varying heights, I put the first row and first row only into a table and that fixed the problem.
I'm on PC and have yet to test this in Safari but based on what I'm seeing I'm pretty sure it will work.