Results 1 to 5 of 5

Thread: Need script for website with firefox only

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    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.

  4. #4
    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.

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,020,120.75237 seconds with 17 queries