PDA

View Full Version : Have a box/message pop up based on which browser is being used?


GMofoLC
Sep-03-2008, 01:03 PM
Is something like this possible?
For instance, if the person is using IE6 (or any version of IE) and they come to my homepage, a message would pop up telling them whatever I want.

(I'm not into photography professionally, so I wouldn't mind bothering certain visitors with such a message.)

Also I want to do this because my site does not display properly(read: at all) in IE6.

Mike Lane
Sep-03-2008, 02:28 PM
Is something like this possible?
For instance, if the person is using IE6 (or any version of IE) and they come to my homepage, a message would pop up telling them whatever I want.

(I'm not into photography professionally, so I wouldn't mind bothering certain visitors with such a message.)

Also I want to do this because my site does not display properly(read: at all) in IE6.Well yeah, you could alienate 73% of your audience with an alert like that. May as well go for the whole shebang and put up a single image that says "go away" and then redirect people to my site. :wink :deal

I'm just thinking that you spend at least a few bucks on this great photo sharing service, why limit your ability to, you know, share your photos?

Anyhow, you can do this easily enough with a smidge of html and CSS if you really want. Just make new div, give it an ID and put whatever message you want. Then if you only want IE6 users to see it, just put something like

#whatever {display:none;}
* html #whatever {display:block;}

I, clearly, don't condone it, but who am I to hide that info from you?

Identing specific other browsers takes JS, I'll let others feed you that if you need it.

GMofoLC
Sep-03-2008, 05:44 PM
Most (if not all) of the people that see my site are friends/family, and I wouldn't be a very good friend if I didn't try to get them to use Firefox.
And to clarify, the* html means that only IE6 will be affected?

Andy
Sep-03-2008, 05:59 PM
http://www.savethedevelopers.org/

Mike Lane
Sep-04-2008, 12:34 AM
Most (if not all) of the people that see my site are friends/family, and I wouldn't be a very good friend if I didn't try to get them to use Firefox.
And to clarify, the* html means that only IE6 will be affected?IE6 only, yes.