Hi,
I've tried searching on this but can't seem to find exactly what I am looking for. My site sells WMV-HD digital downloads that, due to DRM protection, aren't playable on the Mac platform.
I would like to add some JS to my main catalog page that will redirect all Mac users to my mac.html page, which gives them info about the incompatibility and provides links to product categories in the catalog that they can purchase, like Blu-Ray discs. The JS I want to use is something like this, in the <HEAD> area of my index.php:
Which I hope is correct; I don't have a Mac to test it on.Code:<SCRIPT LANGUAGE="JavaScript"> if (navigator.platform.indexOf('Win') == -1) window.location=('mac.html'); </script>
I've also read several sites which give info on doing the Mac redirect via PHP, however I thought this route would be the easiest.
So my questions are: in which .php files (and where) do I need to add this JS statement so it will show up in the <HEAD> section of my index.php catalog page? And will this little JS do what I am trying to, in redirecting all Mac OS users to the mac.html page?
Thanks in advance for any help.
Patrick



