Wednesday, April 29, 2009

Want to link CSS to IE6 and IE7

Now you can link a different CSS style sheet to IE6 and 7.Here is the link to FF, Safari and Opera with this java script.
Try this codes……….


var safari = false;
var opera = false;
var firefox = false;
var agent = navigator.userAgent.toLowerCase();

if (agent.indexOf("safari") != -1){
//code to show Safari Stylesheet
document.write('');
}
else if(agent.indexOf("opera") != -1){
//code to show Opera Stylesheet
document.write('');
}
else if(agent.indexOf("firefox") != -1){
//code to show FireFox Stylesheet
document.write('');
}

2 comments:

  1. You certainly do have a lot of very interesting and helpful info on your blog.

    I love finding new little time saving tips.

    Thanks:)

    ReplyDelete