Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   CSS browser detect question (http://www.greenguysboard.com/board/showthread.php?t=50721)

tickler 2008-12-27 10:35 PM

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.

MadCat 2008-12-27 11:14 PM

Check out this link: http://www.javascriptkit.com/dhtmltutors/csshacks.shtml

Gives you full details on using things like:

Code:



Simon 2008-12-28 08:17 AM

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.

:)


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

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