Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 01-12-2008
Member
 
Join Date: Oct 2008
Posts: 35
Need script for website with firefox only

Someone who has a script or an encoding that only people who have firefox going sideways? Shall explain a little short how I feel.

I tried to visit a website a website through IE, I would get a box that says you use IE and this page is for people who have firefox. Also, it is an ok box and when I click the OK, it does nothing and then says, you do not have firefox and you will be sidelined! Is there any coding or script for this? And I would like tips on where it is on web or if someone wants to get it in this thread.
Reply With Quote
  #2  
Old 01-12-2008
Member
 
Join Date: May 2008
Posts: 2,293
Re: Need script for website with firefox only

I think that the javascript can find out what you have for browsers, and then determine if it will not enter the page or not. So that redirects to two different sides, depending on what you have for browsers. Do not know however how this script looks like.
Reply With Quote
  #3  
Old 01-12-2008
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Need script for website with firefox only

There is a php script that is capable of this, there is a website that allows you to do this. Type Select FF over IE. Dont remember the URL so I can not give you the code.
Reply With Quote
  #4  
Old 01-12-2008
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Need script for website with firefox only

I use this to have a separate CSS to the Internet explorer, probably can be done if other between the tags.
Code:
<!--[ If IE]> 
<link rel="stylesheet" href="original.css" type="text/css"> 
<! [endif] ->
The advantage is that it is the only internet explorer which read these tags, and do not need to rely on the client javascript enabled, everything is in the header.
Reply With Quote
  #5  
Old 01-12-2008
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Need script for website with firefox only

This is one of the things that are to do done. You should not do browser-specific solutions. You should not use browser bugs to get things that look like they want. Give priority to more important things, follow the standards and the page can be displayed for all. Availability and quality, please, do not throw out junk on the web.

editing add (I answer your question anyway):

So just use "Browser detection" if you really know what you are doing. It should preferably be deleted from what is in navigator.userAgent + use indexOf function that returns -1 if it finds a string in another.

navigator.appName contains the browser's official name, but you know you can change it in some,...Opera / WebTV.

Testing by example javascript: document.write (navigator.appCodeName) in the address bar, you get code name.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Need script for website with firefox only"
Thread Thread Starter Forum Replies Last Post
Re-enable the script for website in opera. Holly Dayin Technology & Internet 2 24-02-2012 07:54 PM
PHP Script for Registering and Signing in the Website hariharan_00 Software Development 6 05-01-2010 05:03 PM
Background Music Script for Website REDBULL Software Development 5 31-12-2009 12:55 PM
Nonresponsive script in Firefox lea alinda Windows Software 3 01-10-2009 03:16 PM
Free open source PHP calender script for my website? garfield1 Software Development 1 01-08-2009 09:21 PM


All times are GMT +5.5. The time now is 01:43 PM.