Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Dec 16, 2002

Applying Different Stylesheets Across Various Browsers

 
function IsIE(){
	var str=new
String(Request.ServerVariables("HTTP_USER_AGENT")).toUpperCase();
	return (str.indexOf("MSIE")>-1)?true:false;
}

if(IsIE()==false){
		Response.Write ("<link rel='stylesheet' 
type='text/css' href='CStyleNS.css'>");
	}
	else{
		Response.Write ("<link rel='stylesheet' 
type='text/css' href='CStyleIE.css'>");
		}
Devington B.
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date