How do you make a webpage firefox only?

Discussion in 'HTML & Website Design' started by Ckrismoney, Jun 6, 2008.

  1. #1
    I have set up a web page in the past that had a portion that was IE only to promote a Firefox code which only IE users can see... it was an adsense referral code for Firefox.

    At the time I was averaging around $15 a day. I want to set it up so the user would have to download firefox to view the main info on the site or to access certain downloads on an html web page.

    Does anyone here know an html code for firefox only?

    Thanks in advance! :D
     
    Ckrismoney, Jun 6, 2008 IP
  2. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think it's a horrible idea, but hey, it's your choice.

    I am not sure of any HTML that would enable you to do this, but I am pretty certain you could achieve this with PHP.

    You can detect which browser the person if using and with some simple if statements you can only display data to those whose browser matches with FF.

    Here, check this out for some PHP
     
    nicangeli, Jun 6, 2008 IP
  3. locjan

    locjan Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    go to this explorerdestroyer.com to downloads the script and how to do it
     
    locjan, Jun 6, 2008 IP
  4. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #4
    You can detect browser by using JS. This way you could display something saying to download a better browser.

    Or you can always use a different CSS file for IE users which will hide everything (for example having body {visibility:none;} in the style sheet). I know this is a JS detect before anyone even says it, but it's the easy way to do it if your wanting to have nothing show.

    Not sure you can make it FF only though, only know how to block IE out.

    I wouldn't recomend it, but each to their own.
     
    twistedspikes, Jun 6, 2008 IP
  5. qube99

    qube99 Peon

    Messages:
    75
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    use the htaccess scripr on Apache server to make it FF only. You can even select which versions to target.
     
    qube99, Jun 7, 2008 IP
  6. kenji123

    kenji123 Member

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #6
    You can use javascript to easily tell who is using FireFox or some other browser. The code below only allows FireFox users, otherwise they are told to download FireFox.

    To use, insert this code between '<head></head>' and '<body>' or just after '<body>'. This scipt must have it's own file, i.e. no other content must be included with it. In the code, change the "http://www.yoursite.com/redirect.html" (with quotes) to the url you want to redirect FireFox users.

    Hope this helps.

     
    kenji123, Jun 8, 2008 IP
  7. Blogspotter

    Blogspotter Notable Member

    Messages:
    2,327
    Likes Received:
    285
    Best Answers:
    0
    Trophy Points:
    205
    #7
    I guess since here are many people answering to a similar query, I have seen those yellow sticker like nav bar that displays affiliate links.. And there was a plugin for the same.. anybody has any idea about that plugin.. even better if I can show that to only IE users
     
    Blogspotter, Jun 8, 2008 IP