IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Javascript Browser Redirection For Safari

, Can't find one anywhere


BooZker
no avatar
Mad Scientist of 2006
*********
Group: [HOSTED]
Posts: 750
Joined: 27-April 06
From: Washington State in the USA
Member No.: 22,661



Post #1 post Jan 6 2007, 11:52 AM
I need a script for Safari visitors for my forum. My forum works on all browsers except safari. Even my actual site works for safari just not the forum. I have looked on the google, here, and javascript.internet.com and i am unable to find a script for a Safari browser redirect. Can someone help? Just what Safari would be named in javascript would be enough. Or if someone here know whats wrong with my forum at http://boozkerstweaks.trap17.com/forum on Safari tell me how to fix it.
Go to the top of the page
+Quote Post
Saint_Michael
no avatar
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************
Group: [MODERATOR]
Posts: 7,255
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
myCENT:47.70



Post #2 post Jan 6 2007, 12:12 PM
I should get full copyrights to your site booz laugh.gif

here is the javascript you will need. However this will open redirect on browser types, which means you have to set up all your pages based on that browser. Annoying yes, but of course by then you start using php includes and then just edit those files and nothing else.

CODE

<script language="JavaScript">
<!--
browserName=navigator.appName;
browserVer=parseInt(navigator.appVersion);

if ((browserName=="Netscape" && browserVer>=4) || (browserName=="Microsoft Internet Explorer" && browserVer>=4))
version="ver4";
else
version="other";

/* Version 4 browser URL */
if (version=="ver4")
window.location="http://someplace.com/ver4.html";

/* Other browsers URL */
else
window.location="http://someplace.com/other.html";

//-->
</SCRIPT>


You can remove the version stuff it won't effect it at all.
Go to the top of the page
+Quote Post
BooZker
no avatar
Mad Scientist of 2006
*********
Group: [HOSTED]
Posts: 750
Joined: 27-April 06
From: Washington State in the USA
Member No.: 22,661



Post #3 post Jan 13 2007, 07:03 AM
If there is anything i can do to repay you just let me know. So i just have to type in Safari? This will actually work if i just type in that name?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 1 hasa 6,714 3rd August 2004 - 11:15 AM
Last post by: Shackman
No New Posts   9 srujanlive 897 24th June 2007 - 10:27 AM
Last post by: rize619
No New Posts   10 Vacant 5,429 3rd June 2009 - 05:11 PM
Last post by: proskiier23
No new   73 braitt 5,846 27th September 2009 - 11:11 PM
Last post by: akira550
No New Posts 10 holyium 9,937 25th September 2004 - 12:33 AM
Last post by: spyshow
No New Posts   3 Vacant 7,835 26th August 2004 - 09:09 AM
Last post by: Vacant
No New Posts   8 grrlfromoz 4,724 23rd October 2004 - 07:05 AM
Last post by: X3r0X
No New Posts   5 logophobia 6,024 23rd October 2004 - 03:40 PM
Last post by: logophobia
No New Posts   4 logophobia 3,685 29th October 2004 - 09:44 PM
Last post by: logophobia
No new   813 jacob 70,524 9th April 2009 - 09:20 AM
Last post by: aloKNsh
No New Posts 2 reciter 9,440 30th January 2005 - 06:17 AM
Last post by: jordanliuhao
No New Posts 3 Mechablitz 2,834 20th September 2009 - 05:56 AM
Last post by: akira550
No New Posts 5 reciter 3,631 14th January 2005 - 08:16 PM
Last post by: MaRiOnI
No New Posts   7 Mike 4,269 30th April 2009 - 10:32 PM
Last post by: webishqiptar
No New Posts   3 swanx 2,472 27th November 2004 - 04:04 AM
Last post by: RED NOVA


 



RSS Open Discussion Time is now: 6th November 2009 - 09:35 PM

Web Hosting Powered by ComputingHost.com.