[thelist] browser redirect script for Safari 2 and 1

Jawad Anwar janwar73 at yahoo.com
Mon Jul 7 17:58:23 CDT 2008

I dont know about Safari v1 but this is how I used for safari 2.0.

var detect = navigator.userAgent.toLowerCase();
var version= navigator.appVersion.toLowerCase();
var mac= (navigator.platform.indexOf("Win32") < 0) ? 1 : 0;
var safari_2_x=(mac && detect.indexOf("safari") >=0 && detect.indexOf("412") >= 0) ? 1 : 0;   //used to detect safari version 2

Hope it helps.

 Jawad Anwar
Canton, Michigan

"Shall I not inform you of a better act than fasting?  Making peace with one another, (for) enmity and malice tear up heavenly rewards by the roots"              -- Prophet Muhammad (peace be upon him)

"Take benefit of five before five:your youth before your old age,
your health before your sickness,your wealth before your poverty,
your free-time before your preoccupation, and your life before your death."                -- Prophet Muhammad (peace be upon him)

"I don't measure a man's success by how high he climbs but how high he bounces when he hits bottom" -- General George S. Patton

----- Original Message ----
> From: Kenneth Smith <kennethbsmith at yahoo.com>
> To: thelist at lists.evolt.org
> Sent: Monday, July 7, 2008 2:55:31 PM
> Subject: [thelist] browser redirect script for Safari 2 and 1
> I have a site with SVG in the home page, unfortunately it does not  
> work in Safari 2 and earlier. I have a redirect script for Safari that  
> works but it does not include the version number. Since my page 
> http://systemarchitects.net/ 
>   works well in version 3, I only want the redirect script to work on  
> Versions 1 and 2.
> Can you help me with a script that only redirects versions 1 and 2?
> kbs
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 


More information about the thelist mailing list