Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3316 times and has 1 reply Next Thread
Male MacRankin
Advanced Member
Member's Avatar


Joined: Dec 18, 2005
Post Count: 368
Status: Offline
Reply to this Post  Reply with Quote 
CSS Browser Selector

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!

[Oct 25, 2008 9:15:55 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male shelfimage
Advanced Member
Member's Avatar

USA
Joined: Mar 24, 2005
Post Count: 3000
Status: Offline
Reply to this Post  Reply with Quote 
Re: CSS Browser Selector

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]
[Oct 27, 2008 8:36:55 PM] Show Printable Version of Post    View Member Profile    Send Private Message    mainewebworks    mainewebworks [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread