SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Location
    Berkeley, CA
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Weird Browser Problems...HELP!

    I've been updating and optimizing this site for a client.

    In IE the CSS reads fine, but in Netscape 7 it's totally butchered. Netscape doesn't even READ the css on some pages, but it does fine on others. Then in other areas it reads some css but not all.

    I did not design this site and I'm a newb at css myself so I'm totally confused as how to best handle this.

    This page works fine in Netscape 7...
    www.pastabiz.com/food_manufacturing.html

    These pages don't...
    www.pastabiz.com
    www.pastabiz.com/food_service_equipment.html


    Please help, even if it's just to recommend a resource for advice.

    Thanks!!!
    Last edited by artfulworks; Feb 6, 2004 at 12:45.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,466
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Netscape 7 it's totally butchered.
    I don't have netscape 7 but 6.2. looks more or less ok. Firebird0.6.1 /mozilla 1.5 look ok as well.

    There are some minor differences but nothing major.

    Paul

  3. #3
    SitePoint Addict jodmcc's Avatar
    Join Date
    Dec 2003
    Location
    Houston, Texas
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't know what the page is supposed to look like but it seems to view ok in Netscape 7.1 Macintosh.

    John

  4. #4
    100% Windoze-free earther's Avatar
    Join Date
    Feb 2003
    Location
    Linuxland
    Posts
    2,788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Couldn't do much investigating because of a persistent script error popup. BTW, that hot pink really kills my appetite.

  5. #5
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Location
    Berkeley, CA
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation i know! i know!

    Quote Originally Posted by earther
    Couldn't do much investigating because of a persistent script error popup. BTW, that hot pink really kills my appetite.
    lol

    I'm not a fan of the pink either. I can at least make the disclaimer that I didn't design the site. I also think the top navbar images are horrendous, but the client digs them so what ya gonna do?

    I also have the script error...again, I don't have a lot of skills in that area. Any suggestions for debugging?


    Cleaning up other peoples messes is always fun.

  6. #6
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tell those pasta-kneading nitwits PINK is an awful color for a site like that. The 'ribbing' is nice too, as it makes the copy look like it's vibrating. I'm with earther on that one.

    Script error: you're calling something named 'MM_nbGroup' which looks to be an undefined MickeyMouse function. OK, MacroMedia. Not familiar with it, but it looks interesting.
    ::: certified wild guess :::

  7. #7
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Location
    Berkeley, CA
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by adios
    Script error: you're calling something named 'MM_nbGroup' which looks to be an undefined MickeyMouse function. OK, MacroMedia. Not familiar with it, but it looks interesting.
    Well I'll have to pass on calling them nitwits, cause my client is actually pretty darn cool. He pays me well for what I'm doing. I'm hoping over time I can expose him to some of the finer things in design.

    As far as the MM function I really have no idea.

    The originial designer included two different nav bars, the top one which I'll be rebuilding because the graphics are just too horrible, and the bottom left one which involves showcase pics popping up in a box when you scroll over the product link.

    Any way to do all this in CSS and have it be more stable?

  8. #8
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's that function:
    Code:
    function MM_nbGroup(event, grpName) { //v3.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
        } }
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
          nbArr[nbArr.length] = img;
        }
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        if ((nbArr = document[grpName]) != null)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = args[i+1];
          nbArr[nbArr.length] = img;
      } }
    }
    ::: certified wild guess :::

  9. #9
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Location
    Berkeley, CA
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by adios
    Here's that function
    I knew which code you meant...and I know that it's the MM answer to rollover menus; I'm just not sure why it's causing script errors. I can do basic html and I'm working on my skill level with that and css.

    So can anyone tell me why it's causing errors? Is this part of the trouble I'm having with Netscape 7? I had read others having css problems in the new netscape so I assumed that was it.

    Also...any recommendations for doing a similiar nav bar in CSS or a better script?


    Thanks!

  10. #10
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm just not sure why it's causing script errors.
    Just told you:
    ...you're calling something named 'MM_nbGroup' which looks to be an undefined.....function.
    'Undefined' means you haven't provided it anywhere, either in an external (.js) file, or with the other MM_Functions in the main file. If it's not in memory, it can't be called. I dug it up for you in case you didn't have a copy.
    ::: certified wild guess :::

  11. #11
    100% Windoze-free earther's Avatar
    Join Date
    Feb 2003
    Location
    Linuxland
    Posts
    2,788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was also getting the script error in IE 6.

    As to your client's tastes . . . I suggest submitting the site for a review and then send the link to your client.

  12. #12
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,466
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    I'm just not sure why it's causing script errors. I can do basic html and I'm working on my skill level with that and css.
    As adios said all that code is missing from the page below.

    http://www.pastabiz.com/food_manufacturing.html

    It's in your other pages if you look close enough .

    Add it to the page above and you will also need this code that is missing also.
    Code:
    function MM_displayStatusMsg(msgStr) { //v1.0
      status=msgStr;
      document.MM_returnValue = true;
    }
    BTW I just noticed you changed the links in your first post. Does that mean we were all looking at the page that worked in Netscape as opposed to the one that didn't?

    Paul

  13. #13
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It appears that this file:
    http://www.pastabiz.com/images/global/pasta.css

    Is being served with a MIME-type of text/plain. When running Standards-Compliant mode, Netscape 6+/Mozilla will ignore style sheets with the wrong mime type (they should be text/css). When running in quirks mode, these browsers will handle the CSS just fine.

    Now, some of your pages are triggering Standards Mode, and some are triggering quirks mode.

    You'll need to fix your HTTP server config to send the CSS file(s) with a MIME-type of text/css.

  14. #14
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Location
    Berkeley, CA
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just wanted to say thanks for all your input!

    It's much appreciated. I haven't had a chance to edit anything yet to see if it works correctly, so I'll post if there any issues come up.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •