Is this a javascript problem?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dominic Myers

    #1

    Is this a javascript problem?

    Hi there, I'm developing a site http://camshag.co.uk/art_architecture/ and
    I'm having a problem with the menu system at the top of the page (The News &
    Events one). There are two links that should allow the user to navigate the
    posts but only some of them look the way they are supposed to, the others
    end up having big gaps between the links. There is no problem with Mozilla,
    Opera has a different problem from the one with IE as it shortens the
    bar...? I'm racking my brains here and wondering if it's the onmouseover
    thing that is causing the problems and would welcome any advice.
    Cheers, Dom


  • kaeli

    #2
    Re: Is this a javascript problem?

    In article <315p9pF3779o7U 1@individual.ne t>, annoyingmouse@m sn.com
    enlightened us with...[color=blue]
    > Hi there, I'm developing a site http://camshag.co.uk/art_architecture/ and
    > I'm having a problem with the menu system at the top of the page (The News &
    > Events one). There are two links that should allow the user to navigate the
    > posts but only some of them look the way they are supposed to, the others
    > end up having big gaps between the links. There is no problem with Mozilla,
    > Opera has a different problem from the one with IE as it shortens the
    > bar...? I'm racking my brains here and wondering if it's the onmouseover
    > thing that is causing the problems and would welcome any advice.
    > Cheers, Dom
    >
    >
    >[/color]

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    That means you're in quirks mode.
    Try using a doctype with a url. Watch your design get wacky. Then fix it. ;)
    This is the doctype you should be using:
    --
    --
    ~kaeli~
    Why do people who know the least know it the loudest?



    Comment

    • kaeli

      #3
      Re: Is this a javascript problem?

      In article <315p9pF3779o7U 1@individual.ne t>, annoyingmouse@m sn.com
      enlightened us with...[color=blue]
      > Hi there, I'm developing a site http://camshag.co.uk/art_architecture/ and
      > I'm having a problem with the menu system at the top of the page (The News &
      > Events one). There are two links that should allow the user to navigate the
      > posts but only some of them look the way they are supposed to, the others
      > end up having big gaps between the links. There is no problem with Mozilla,
      > Opera has a different problem from the one with IE as it shortens the
      > bar...? I'm racking my brains here and wondering if it's the onmouseover
      > thing that is causing the problems and would welcome any advice.
      > Cheers, Dom
      >
      >
      >[/color]

      Oops. *hehehe*

      Okay, this is the full doctype:
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">

      A lot of times things get mucked up due to quirks mode, especially in IE.

      --
      --
      ~kaeli~
      Do not taunt Happy Fun Ball!



      Comment

      • Dominic Myers

        #4
        Re: Is this a javascript problem?

        "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
        news:MPG.1c17a3 f91604cb1398a2d 4@nntp.lucent.c om...[color=blue]
        > In article <315p9pF3779o7U 1@individual.ne t>, annoyingmouse@m sn.com
        > enlightened us with...[color=green]
        >> Hi there, I'm developing a site http://camshag.co.uk/art_architecture/
        >> and[/color][/color]
        <snip>[color=blue][color=green]
        >>[/color]
        >
        > Oops. *hehehe*
        >
        > Okay, this is the full doctype:
        > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        > "http://www.w3.org/TR/html4/loose.dtd">
        >
        > A lot of times things get mucked up due to quirks mode, especially in IE.
        >
        > --
        > --
        > ~kaeli~
        > Do not taunt Happy Fun Ball!
        > http://www.ipwebdesign.net/wildAtHeart
        > http://www.ipwebdesign.net/kaelisSpace
        >[/color]

        Cheers there kaeli, tried that and it hasn't made any difference. I'm
        getting the problems on pages ?id=2, 3, 5, 6, 7 and 9, but no problem on
        ?id=4, 8, 10, 11, or 12. Anyone any ideas?
        Cheers, Dom


        Comment

        • RobG

          #5
          Re: Is this a javascript problem?

          Dominic Myers wrote:
          [...][color=blue]
          > Cheers there kaeli, tried that and it hasn't made any difference. I'm
          > getting the problems on pages ?id=2, 3, 5, 6, 7 and 9, but no problem on
          > ?id=4, 8, 10, 11, or 12. Anyone any ideas?
          > Cheers, Dom[/color]

          Turning off JavaScript and viewing the page should help you work out
          whether your issues are JavaScript related or not. The page looks
          awful in Firefox, turning off JS makes no difference that I can see. I
          can't get to the security settings of IE to test whether it makes any
          difference in that case (sys admins are wonderful people, aren't
          they?).

          You should head over to comp.infosystem s.www.authoring.html to get some
          general advice on site design, deeply nested tables for purely layout
          purposes are something less than best practice. Cleaning up the markup
          may make it considerably easier to find your errors.

          One js error is:

          onmouseover="cl assName=\'over_ navigation\'"

          should be:

          onmouseover="cl assName='over_n avigation';"

          But that will not fix the display errors in Firefox. Try reducing the
          code to a minimum that shows the error and likely you will find your
          fix. If not, post the minimal code here and someone may fix it for
          you.

          --
          Rob

          Comment

          • Dominic Myers

            #6
            Re: Is this a javascript problem?


            "RobG" <rgqld@iinet.ne t.auau> wrote in message
            news:Ezsrd.933$ I52.41037@news. optus.net.au...[color=blue]
            > Dominic Myers wrote:
            > [...][color=green]
            >> Cheers there kaeli, tried that and it hasn't made any difference. I'm
            >> getting the problems on pages ?id=2, 3, 5, 6, 7 and 9, but no problem on
            >> ?id=4, 8, 10, 11, or 12. Anyone any ideas?
            >> Cheers, Dom[/color]
            >
            > Turning off JavaScript and viewing the page should help you work out
            > whether your issues are JavaScript related or not. The page looks
            > awful in Firefox, turning off JS makes no difference that I can see. I
            > can't get to the security settings of IE to test whether it makes any
            > difference in that case (sys admins are wonderful people, aren't
            > they?).
            >
            > You should head over to comp.infosystem s.www.authoring.html to get some
            > general advice on site design, deeply nested tables for purely layout
            > purposes are something less than best practice. Cleaning up the markup
            > may make it considerably easier to find your errors.
            >
            > One js error is:
            >
            > onmouseover="cl assName=\'over_ navigation\'"
            >
            > should be:
            >
            > onmouseover="cl assName='over_n avigation';"
            >
            > But that will not fix the display errors in Firefox. Try reducing the
            > code to a minimum that shows the error and likely you will find your
            > fix. If not, post the minimal code here and someone may fix it for
            > you.
            >
            > --
            > Rob[/color]

            Too true there, got rid of loads of the tables and the problem disappeared.
            Wasn't anything to do with the javascript at all. Thank you both for your
            help.
            Cheers, Dom


            Comment

            Working...