Need help with a code

by Jawshh
8 replies
  • WEB DESIGN
  • |
Hello,

I have installed a wordpress on my music blog on a domain and customized a template for it. Somehow, the blog doesn't work with internet explorer :confused: . Its just messed up when viewing in internet explorer. So, I got a code which will make a popup for internet explorer users and tell them to use firefox.

Here's the code:
Code:
<div id="slidedown_ie" style="display:none; width:100%; height:80px; background:#ffffcc; text-align:center;">
      <div>
        <table bgcolor="#ffffcc" border="0" cellpadding="0" cellspacing="0" width="100%">
          <tbody><tr>
            <td><div align="center"><strong><font face="Arial, Helvetica, sans-serif">
        
            <br/>Please use FireFox to view this website. <a href="http://www.mozilla.com" target="_blank">Click here to download free</a></font></strong></div></td>
          </tr>
        </tbody></table>
      </div>
    </div>
I tried to put it in "header.php" and "index.php" but it doesn't work. Can someone tell me where to put it?

Thanks
#code
  • Profile picture of the author mywebwork
    Hi Jawshh

    This is the code for the pop-up box, but I don't see any code that actually call this into action. I assume you have some JavaScript that reads the HTTP User Agent and then calls this, you may want to provide that code to us as well as I'm sure that is where the problem is.

    Having said that I really don't think it's a good idea to force your users to use a specific browser - most of us stopped doing that 10 years ago! I know that Internet Explorer can be a pain (especially IE6) but nonetheless its a pain we need to endure as web developers.

    Keep in mind that most Internet Explorer users are not very web-savvy (otherwise they would be using a better browser!) and may be reluctant to download something different just to view your website. Your audience may also be using a public computer where they have no permission to install a better browser.

    My suggestion would be to bite the bullet and fix the code (CSS probably) that is preventing your site from displaying properly on Internet Explorer - and be sure to test on IE6, IE7 and IE8 while you are at it as they each have their idiosyncrasies!

    I assume your code is good on Chrome, Safari & Opera as well? You always need to test on the 5 major browsers, while you may suggest a preferred browser you can't control what your user will actually end up using.

    Good Luck

    Bill
    {{ DiscussionBoard.errors[1475337].message }}
    • Profile picture of the author Jawshh
      Originally Posted by mywebwork View Post

      Hi Jawshh

      I assume you have some JavaScript that reads the HTTP User Agent and then calls this, you may want to provide that code to us
      Hi bill ,

      I don't have a js or http that calls the popup :confused: . I found this code on some forum. But anyways, you are right, I was already thinking of that, I can't force people to use a browser. I guess that will just hurt traffic . I'll will look into the css and see what I can find.

      Thanks,
      Josh
      Signature

      Get a Website Loaded With Unique Content Every Month For Free. Check it out NOW!!!

      Advanced Internet Marketing Tactics

      {{ DiscussionBoard.errors[1475503].message }}
  • Profile picture of the author mywebwork
    Hi Josh

    If the CSS proves difficult why not post it up on the forum - there are a lot of excellent coders here who could probably help you out with it.

    Bill
    {{ DiscussionBoard.errors[1475650].message }}
  • Profile picture of the author Aronya
    I agree with Bill, at least to a point. Rather than tell your visitors to download another browser, I'd suggest telling them to upgrade their existing one (and link to the instructions on how to do so - you might even want to write up a separate page for people to follow).

    At this point, IE6 is so antiquated that unless your market is older people, IMHO you can ignore it. What percentage of visitors use that browser, and are those people going to be customers? If the percentage is small, and/or they don't buy, why spend time on them? Put your efforts into making the people who spend money happy.

    We often spend/waste a lot of time on our websites trying to make things just right. Instead, if the site is supposed to make you money, good is good enough. On the other hand, if you're going to be promoting web design... you've got some work to do.
    {{ DiscussionBoard.errors[1475693].message }}
  • Profile picture of the author sipltech
    I think you can fix the CSS of your blog compatible with all versions of IE as well as firefox, chrome and other browsers. If this can be done no point asking readers to switch to Firefox.

    As per my knowledge most PC users has IE by default, though it's a pain but as a coder one cannot discount traffic from IE users either.

    my 2c.
    Signature

    {{ DiscussionBoard.errors[1475911].message }}
  • Profile picture of the author mywebwork
    Actually Aronya, IE6 still accounts for almost 12% of all browser usage, almost as much as IE7 and IE8 - this is as of November 2009. Obviously it's dated technology, but it is still in use.

    Browser Statistics

    This is actually a conservative estimate, another one (as of October 2009) has IE6 tied as the worlds most used browser at 23%

    October 2009 browser stats: Firefox finally passes IE6

    I would take the last one with a grain of salt though, as it was a study endorsed by Microsoft.

    As for IE6 users, many of them are in corporate environments where the IT department has control over the desktop applications. This has no reflection on their age, and their buying power might actually be higher as they are gainfully employed. The IT department has simply standardized on software years ago and as long as the sites that are essential to their business processes are still usable there is no case to upgrade (which in a large corporation can be an investment of several thousands of dollars in IT expenses and training).

    I prefer to have pages that anyone with a web browser can view. With the addition of limited-feature mobile platforms and small-screen Netbooks this is becoming more challenging every day. But I have never considered it to be a waste of time.

    Bill
    {{ DiscussionBoard.errors[1475920].message }}
  • Profile picture of the author Aronya
    Hi Bill,
    I'm not arguing whether or not IE6 is in use, but that's irrelevant. If I'm running, for example, a website aimed at graphic designers, or web designers, or Mozilla aficionados, I'm betting that damn few of my visitors are using it. If that's the case, why would I spend time on it? When was the last time you surfed the Web with IE6 (because you preferred it)?

    The only stats that matter are the ones that relate to your particular website.
    {{ DiscussionBoard.errors[1477392].message }}
  • Profile picture of the author Jawshh
    ok I managed to fix. It was caused by the page elements. I did a search on google and found a way to fix it. Thanks all
    Signature

    Get a Website Loaded With Unique Content Every Month For Free. Check it out NOW!!!

    Advanced Internet Marketing Tactics

    {{ DiscussionBoard.errors[1493842].message }}

Trending Topics