Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-12-27, 10:35 PM   #1
tickler
If there is nobody out there, that's a lot of real estate going to waste!
 
tickler's Avatar
 
Join Date: Dec 2003
Posts: 2,177
CSS browser detect question

I was wondering if there is a way to do a browser detect using CSS only. I would prefer to stay away from the JavaScript & calling a different .CSS file as some surfers turn JS off.

Mainly I want to pre-select the default tab for the surfers browser from a tabbed page.
__________________
Latina Twins, Solo, NN, Hardcore
Latin Teen Cash
tickler is offline   Reply With Quote
Old 2008-12-27, 11:14 PM   #2
MadCat
If something's hard to do, then it's not worth doing
 
MadCat's Avatar
 
Join Date: Sep 2008
Location: Berlin, Germany
Posts: 247
Check out this link: http://www.javascriptkit.com/dhtmltutors/csshacks.shtml

Gives you full details on using things like:

Code:
<!--[if IE]> <link href="ie_only.css" rel="stylesheet" type="text/css"> <![endif]-->
MadCat is offline   Reply With Quote
Old 2008-12-28, 08:17 AM   #3
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Something you may want to look into is whether your sponsors have a way to take the money from someone who doesn't have Javascript enabled in their browser.

Try turning it off and visiting a CCBill signup page and entering all of the information need to sign up (use 4444333322221111 as the CC# for this test). See if you can get past the message telling you that you don't have JS turned on.

Quote:
JavaScript Disabled
We have detected that your browser has JavaScript disabled.
To continue click on the button below.
So, if they don't have Javascript turned on, make sure you send them somewhere that will do you some good. Or maybe give them a good reason to turn it on.

Just something to think about.

__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:34 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc