|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 2
|
|
| Author |
|
|
Advanced Member Joined: Dec 18, 2005 Post Count: 368 Status: Offline |
I've just come across a javascript equivalent of a conditional comment that can be used for all browsers and operating systems..? Info http://rafael.adm.br/css_browser_selector/ Javascript http://github.com/rafaelp/css_browser_selecto...r/css_browser_selector.js Once you've got an idea how this work, simply copy that javascript, target it, and select an alternative value for whatever browser you wish to target... <script src="css_browser_selector.js" type="text/javascript"></script> <style type="text/css"> .ie6 body { background: #FC0; } </style> ---------------------------------------- We Brits do things differently, but we still get shot at! |
||
|
|
Advanced Member USA Joined: Mar 24, 2005 Post Count: 3000 Status: Offline |
I've been using a php equivalent to do this. I couldn't live without it :) I don't have the original page bookmarked, but it can be found searching mike's php experiments: http://green-beast.com/experiments/support/P_php_browser_sniffer.phps good to know of that JS though b/c I've run across situations when I couldn't use PHP. ---------------------------------------- "The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo Save the developers<!> Maine Webworks ---------------------------------------- [Edit 1 times, last edit by shelfimage at Oct 27, 2008 8:38:57 PM] |
||
|
|
|
|
|
Current timezone is GMT May 21, 2012 4:25:11 AM |