Firefox Advertisement

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Firefox Advertisement

Postby Ron Williams » Mon 21 Mar, 2005 12:56 am

Is there a way I can add a firefox ad like the ones at getfirefox.com which has a link, that only shows up on browsers other than firefox, and when a person with firefox come to my site it shows something like the picture at the link below.

The ad is viewable by firefox and gecko browsers only
http://www.inke.com.sg/welcome.asp
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
User avatar
Ron Williams
BANNED
BANNED
 
Posts: 845
Joined: Tue 25 Nov, 2003 9:47 am
Location: Cambridge, Maryland

Re: Firefox Advertisement

Postby Antony » Tue 22 Mar, 2005 11:15 pm

piranarew wrote:Is there a way I can add a firefox ad like the ones at getfirefox.com which has a link, that only shows up on browsers other than firefox, and when a person with firefox come to my site it shows something like the picture at the link below.

The ad is viewable by firefox and gecko browsers only
http://www.inke.com.sg/welcome.asp
Simply add some JavaScript browser detection or using server side scripting language (such as PHP, ASP, etc) and perform a browser detection.
When the output of browser detection shows a browser is not Firefox, show the ads or links.
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.5.7 (KHTML, like Gecko) Safari/125.12
User avatar
Antony
diamond member
diamond member
 
Posts: 14509
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], Yahoo [Bot]