Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Subscribe to WebmasterWorld
Stylesheets on Mac and PC Ayrenth msg:1212170 10:31 am on Aug 29, 2002 (gmt 0) we are in the process of developing a site that needs to be mac and pc based. Both are viewed in MSIE 5+.
can anyone assist
starway msg:1212171 11:51 am on Aug 29, 2002 (gmt 0)
if (navigator.userAgent.indexOf("Mac") > -1)
document.write("<link rel='stylesheet' href='macstyle.css'>") else if (navigator.userAgent.indexOf("Win") > -1) document.write("<link rel='stylesheet' href='winstyle.css'>") else document.write("<link rel='stylesheet' href='nixstyle.css'>")
Place this in the <script> section of the <head> of your pages, or save it in external .js file and attach to all pages.