here's an easy script i 'borrowed' from pbs.org -- works pretty well.
write unique CSS files and test them on appropriate platforms


<script language="JavaScript">

//Determine Operating System
system=navigator.appVersion;
if (navigator.appVersion.indexOf("Mac") != -1 ) OS = "Mac";
else if (navigator.appVersion.indexOf("PowerPC") != -1 ) OS = "Mac";
else if (navigator.appVersion.indexOf("Win") != -1 ) OS = "Win";
else if (navigator.appVersion.indexOf("SunOS") != -1 ) OS = "Solaris";
else  OS = "Linux";

//Determine Browser Version
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);

if (OS == "Mac" && bName=="Netscape"){
        document.write("<link rel=\"stylesheet\" href=\"mac.css\">");
    }
else if (OS =="Mac" && bName=="Microsoft Internet Explorer"){
        document.write("<link rel=\"stylesheet\" href=\"mac.css\">");
    }
else if (OS =="Win" | OS == "Linux" && bName=="Netscape"){
        document.write("<link rel=\"stylesheet\" href=\"main.css\">");
    }
else if (OS =="Solaris" && bName=="Netscape"){
        document.write("<link rel=\"stylesheet\" href=\"main.css\">");
    }
else if (OS =="Win" | OS == "Linux" && bName=="Microsoft Internet
Explorer"){
        document.write("<link rel=\"stylesheet\" href=\"main.css\">");
    }
</script>


--- "Shaikh, NeelKamal (MED, TCS America)" <[EMAIL PROTECTED]>
wrote:
> THANK U Lindell .How can the problem be solved by javascript.Do u mean
> solving the problem by cascading style sheet.If it is so ,it didn't work
> out.
>
> Thanks a lot
> Neel
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to