View Full Version : different pages for mac and windows
link92
10-04-2003, 04:38 PM
when u go to my website i want people on pc's to go to one page and people on mac's to another
hrisula
10-04-2003, 06:30 PM
I use this script on my index page.
<SCRIPT LANGUAGE="javascript">
var os = navigator.platform.toLowerCase();
var mac = (os.indexOf("mac")!=-1) ? true:false;
if(mac)
{location.href="mac.htm"}
</SCRIPT>
Just replace mac.htm with the name of the file you wish people to go to if on a Mac
A second alternative would be to use this script
var os = navigator.platform.toLowerCase();
var mac = (os.indexOf("mac")!=-1) ? true:false;
var win = (os.indexOf("win")!=-1) ? true:false;
Hrisula
oracleguy
10-05-2003, 02:34 AM
Most of the time you really shouldn't need to do this though. If you have compliant code, it will display almost the same, if not the same.
hrisula
10-05-2003, 03:50 PM
True, but Mac people have their particularities, and Windows people have other particularities.... So, in my case I try to keep both fronts happy by having somewhat different interfaces.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.