• 0

Display Unobtrusive Message for IE Users?


Question

Hi, I have been designing my website to look good in Firefox. I've discovered that my website displays poorly in IE 7 and 8. I was wondering if there is a Javascript code that I can insert into the head of my website that would display a non obtrusive message at the top

of my site that only IE users will see. I am looking to put like a thin horizontal bar at the top of the page with an X in the corner that you can close out of.

The message would say something along the lines of:

This website displays best in a modern browser like Firefox, Opera, Google Chrome or Safari.

Then so that the message does not come back every time they go to a different page, perhaps it would remember when they close the message.

Does anybody know if there is an easy solution for this?

I have already implemented a message that says my website is completely unsupported on IE6. I didn't bother making it unobtrusive because the website is literally completely unusable in ie6.

Any help would be very appreciated. :)

Thanks,

-Neil

Link to comment
Share on other sites

Recommended Posts

  • 0

Hi, I have been designing my website to look good in Firefox. I've discovered that my website displays poorly in IE 7 and 8. I was wondering if there is a Javascript code that I can insert into the head of my website that would display a non obtrusive message at the top

of my site that only IE users will see. I am looking to put like a thin horizontal bar at the top of the page with an X in the corner that you can close out of.

The message would say something along the lines of:

Then so that the message does not come back every time they go to a different page, perhaps it would remember when they close the message.

Does anybody know if there is an easy solution for this?

I have already implemented a message that says my website is completely unsupported on IE6. I didn't bother making it unobtrusive because the website is literally completely unusable in ie6.

Any help would be very appreciated. :)

Thanks,

-Neil

You could learn to code the right way so it will work in any browser, but I guess that would be too much trouble for you. If I even knew you had something like that, I would never visit your site, no matter what browser I might be using. Lazy coders shouldn't code at all. Go find something else to be lazy at.

Link to comment
Share on other sites

  • 0

I'm going to make this very clear for you.

I DON'T code.

I have been using a Firefox extension called Firebug. I modify the CSS code of certain elements in Firebug so that I get it looking the way I want. I then open the corresponding CSS file, go to the specific line and then duplicate the changes. The CSS code I add I try to make it look like the CSS code that's already there. Any errors created by this are inherently not my fault. If the CSS is badly written to begin with, it's not my fault. I can't fix something if I don't know what's wrong with it due to my limited knowledge on the subject. I've already stated that I haven't been fooling around with HTML, CSS, JS and PHP for very long. Off and on for less than 3 years. It is not the grandest thing in the world, okay?

Secondly, I think we can all agree that these errors are hardly CSS related, so I'll go one step further to say the only changes I've made to the PHP files of my template include shifting certain elements around and I am EXTREMELY careful about doing this. I make backups of my PHP files before I change anything. If what I change has no effect, I undo the changes. I do not hand write any additional code in the PHP files, I leave that **** ALONE. I do not **** with coding, that's for the people that care about it. I do not give 2 ounces of brain power to it other than to fix a couple menial visual errors. I'm so careful in fact that all I really do is cut and paste code. I'm careful where I cut it, and I'm careful where I paste it. If the end result turns out how I like, then I stick with it. If there are any errors created by this, then the answer is simple, I either revert my changes or I cannot fix them. The fact that whatever is changed forces IE to get confused means that it's less about what I changed and more about IE falling over itself.

And believe me when I say this, I have only altered like 2 or 3 PHP files on my site and I have made very FEW changes.

You could learn to code the right way so it will work in any browser, but I guess that would be too much trouble for you. If I even knew you had something like that, I would never visit your site, no matter what browser I might be using. Lazy coders shouldn't code at all. Go find something else to be lazy at.

Lazy has nothing to do with it. It's the lack of care and/or the lack of experience. Pick one. It is surely not laziness. The web is a toy to me, not a job.

I think Berserk87 said it best. I have a lot of browser specific code in my website. I'm assuming he's referring to the CSS code I put in there. I used CSS code such as "-moz-border-radius", "-moz-box-shadow", "rgba()" and who knows what else I used. I didn't bother to check the compatibilities with IE. I think the "-moz-" prefix is a dead giveaway that it absolutely will not work on IE. Oh, and you don't have to tell me, that is an experimental CSS code and is unfinished. I probably shouldn't be using it anyway. The reason I am using it is because border-radius and box-shadow are pretty petty and insignificant and if they don't display in IE or Opera, oh well. No big deal.

On a final note, you guys are all nuts. The fact that the web requires such painful scrutiny and so much foreknowledge in order to do the simplest sh*t (correctly) means that it's not a very good platform. It's time for the web to move forward in terms of accessibility, not features. But whatever, what do I know? Don't listen to me, I'm just the guy with 242 errors on my site, most of which weren't even caused by me.

Link to comment
Share on other sites

  • 0

You say you don't code but you're arguing against us, citing the ACID3 test for example. We treated you like someone who cares about standards because you acted like one.

Your CSS has parser errors, that means that they're not browser-specific extensions but code no browser should be able to parse. Just fix those, you can leave the -moz -webkit etc. alone.

Well done on fixing your HTML though :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.