Display a yellow pop-up at the top of the IE brower.

Posted by sumit270 on Fri, 05/11/2007 - 06:37Blog plugins

Currently I am building site which is http://funnyemails.uni.cc/
The outcome is perfect in the Firefox browser, but it acts strange when it come to IE. All the layouts are jumbled when It is shown on the IE browser.

I just want to build this simple script which could enable my site viewers to upgrade to Firefox, when they are using the IE.

Here is the stuffs what this script should do.
When my site is viewed in the IE, it should show a yellow pop-up describing to upgrade the browser. While this shouldn't be displayed on the firefox browser.
Is this possible?

The example of this type can be seen on NamePros site (http://www.namepros.com/). < the yellow pop-up is displayed when a user isn't registered)


Submitted by sumit270 on Sat, 05/12/2007 - 02:28.

I think this isn;t a good idea so i want to try something new.

I use the referral link of the google adsense to make people download firefox

is there any possible way to put this download link in only the non-firefox browsers.?

like using some sort of codes like

<!–[if gte IE 5.5]>

<![if lt IE 7]>

Submitted by Kelson on Mon, 05/14/2007 - 19:27.

If you only want to show the link for IE users, then conditional comments like you posted will work.  Unfortunately, no other browsers have picked up on the idea.

There are two possible solutions, though:

1. If you're using PHP, ASP, or another scripting language, you can use that to show the link only if HTTP_USER_AGENT does not include 'Firefox' (this will also show download links to Seamonkey, Camino, and Flock users).  There should be some examples on this site.

2. You can use JavaScript to insert the link.  A simple example would be this:

if ( 0 <= navigator.userAgent.indexOf('Firefox')) {
document.write('INSERT DOWNLOAD CODE HERE');
}

I posted a script a while back that will take a Firefox download link and convert it to either an upgrade banner or a link to SpreadFirefox for Firefox users, leaving the original banner in place for users of other browsers.  Feel free to use it.

--

Can Firefox users and Opera fans agree on anything?
The Alternative Browser Alliance

Submitted by 3518742690 on Fri, 05/11/2007 - 22:53.

Is that what you're talking about? Because I've seen that before.


And as a reply to the person who mentioned the Information Bar, I wonder how you're going to trick Internet Explorer into doing that...




Look at this blog entry... if it becomes outdated.


Also, Visit my Top 20½ reasons to use Firefox page!

Submitted by sumit270 on Fri, 05/11/2007 - 06:41.

i think its also called the infobar

Submitted by Kelson on Fri, 05/11/2007 - 22:27.

Personally, I'm not sure that spoofing the user interface is a good idea.  It blurs the line between web page (untrusted) and browser (trusted), and the techniques are too close to phishing for my taste.

That said, a lot of scripts to do this have been posted here.  This search should help.

--

Can Firefox users and Opera fans agree on anything?
The Alternative Browser Alliance