DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Need a script which detects browser version ? (http://www.daniweb.com/forums/thread122411.html)

chrbar May 4th, 2008 3:49 pm
Need a script which detects browser version ?
 
Hello,

I would like to use ThickBox script in my Web page (http://jquery.com/demo/thickbox/), but this script is supported on Safari 2.0.4+ and my Web page has to be compatible with Safari 2.0.3 too!

Do you know a script which detects browser version?

A script which allows to use a specific code line depending of the browser version, like:

if Safari 2.0.4 =
<a href="ajaxOverFlow.html?height=300&width=300" title="add a caption to title attribute / or leave blank" class="thickbox">Scrolling content</a>
(ThickBox code)

if Safari 2.0.3 =
<a href="test.html" target="_parent">test</a>
(classic code)

Thanks a lot your help ;)
Chris


All times are GMT -4. The time now is 5:41 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC