flaky rollover script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Daedelus

    #1

    flaky rollover script

    Hey folks,

    Can someone take a look at this page and tell me what's up:



    You'll notice that the "links" button, which has a rollover script
    attached, doesn't work. I've stared at it for far too long and can't
    spot the problem. It's out-of-the-box Dreamweaver code, as I was not
    getting paid enough to do any custom work here, but I've never had any
    serious trouble with Dreamweaver's code before. In any case, the other
    rollovers work. I can't figure out what is different about this one.

    Thanks ahead...

    stedae
  • John

    #2
    Re: flaky rollover script

    Steven Daedelus <sdaedelus@ira. gov> wrote in news:sdaedelus-
    66835B.20082502 032004@netnews. comcast.net:
    [color=blue]
    > http://caraher.org/[/color]

    in Mozilla JavaScript Console, I get "Error: preLoadImages is not defined"

    Comment

    • Steven Daedelus

      #3
      Re: flaky rollover script

      In article <Xns94A180FABA0 39johnmshomenet @203.26.24.228> ,
      John <john@mshome.ne t> wrote:
      [color=blue]
      > Steven Daedelus <sdaedelus@ira. gov> wrote in news:sdaedelus-
      > 66835B.20082502 032004@netnews. comcast.net:
      >[color=green]
      > > http://caraher.org/[/color]
      >
      > in Mozilla JavaScript Console, I get "Error: preLoadImages is not defined"[/color]

      Yeah, I noticed that too. That shouldn't make any difference to the
      rollovers, though, especially since only one of them doesn't work
      properly.

      stedae

      Comment

      • Robert

        #4
        Re: flaky rollover script

        In article <sdaedelus-CE732A.21531502 032004@netnews. comcast.net>,
        Steven Daedelus <sdaedelus@ira. gov> wrote:
        [color=blue]
        > In article <Xns94A180FABA0 39johnmshomenet @203.26.24.228> ,
        > John <john@mshome.ne t> wrote:
        >[color=green]
        > > Steven Daedelus <sdaedelus@ira. gov> wrote in news:sdaedelus-
        > > 66835B.20082502 032004@netnews. comcast.net:
        > >[color=darkred]
        > > > http://caraher.org/[/color]
        > >
        > > in Mozilla JavaScript Console, I get "Error: preLoadImages is not defined"[/color]
        >
        > Yeah, I noticed that too. That shouldn't make any difference to the
        > rollovers, though, especially since only one of them doesn't work
        > properly.
        >
        > stedae[/color]

        Well, if the function isn't defined the onload instance stops and your
        rollovers don't get loaded. I don't know why one works.

        The home page has:
        onload="preload Images();MM_pre loadImages ...

        but a lower page such as http://caraher.org/links.html has:

        onload="MM_prel oadImages ...

        Try deleting preloadImages() ;

        I haven't tried this.

        Robert

        Comment

        • Steven Daedelus

          #5
          Re: flaky rollover script

          In article <rccharles-7D61C6.23414402 032004@news1.we st.earthlink.ne t>,
          Robert <rccharles@my-deja.com> wrote:
          [color=blue]
          > In article <sdaedelus-CE732A.21531502 032004@netnews. comcast.net>,
          > Steven Daedelus <sdaedelus@ira. gov> wrote:
          >[color=green]
          > > In article <Xns94A180FABA0 39johnmshomenet @203.26.24.228> ,
          > > John <john@mshome.ne t> wrote:
          > >[color=darkred]
          > > > Steven Daedelus <sdaedelus@ira. gov> wrote in news:sdaedelus-
          > > > 66835B.20082502 032004@netnews. comcast.net:
          > > >
          > > > > http://caraher.org/
          > > >
          > > > in Mozilla JavaScript Console, I get "Error: preLoadImages is not defined"[/color]
          > >
          > > Yeah, I noticed that too. That shouldn't make any difference to the
          > > rollovers, though, especially since only one of them doesn't work
          > > properly.
          > >
          > > stedae[/color]
          >
          > Well, if the function isn't defined the onload instance stops and your
          > rollovers don't get loaded. I don't know why one works.
          >
          > The home page has:
          > onload="preload Images();MM_pre loadImages ...
          >
          > but a lower page such as http://caraher.org/links.html has:
          >
          > onload="MM_prel oadImages ...
          >
          > Try deleting preloadImages() ;
          >
          > I haven't tried this.
          >
          > Robert[/color]

          But my point is that failure to preload the images doesn't make any
          difference to the rollover script. The preload script simply causes the
          images to be cached. If it fails, the rollover still works, but the
          images have to be loaded when the rollover is called.

          In any case, I fixed this and it didn't make a difference.

          Comment

          • John

            #6
            Re: flaky rollover script

            Steven Daedelus <sdaedelus@ira. gov> wrote in
            news:sdaedelus-CE732A.21531502 032004@netnews. comcast.net:
            [color=blue]
            > In article <Xns94A180FABA0 39johnmshomenet @203.26.24.228> ,
            > John <john@mshome.ne t> wrote:
            >[color=green]
            >> Steven Daedelus <sdaedelus@ira. gov> wrote in news:sdaedelus-
            >> 66835B.20082502 032004@netnews. comcast.net:
            >>[color=darkred]
            >> > http://caraher.org/[/color]
            >>
            >> in Mozilla JavaScript Console, I get "Error: preLoadImages is not
            >> defined"[/color]
            >
            > Yeah, I noticed that too. That shouldn't make any difference to the
            > rollovers, though, especially since only one of them doesn't work
            > properly.
            >
            > stedae
            >[/color]

            I'm pretty sure the rest of the onLoad won't run, therefore the preloads
            won't occur. Don't know how that would effect the rollover code, haven't
            really looked at the code in detail ... would removing the
            "preLoadImages( )" call in the body onload be too difficult?

            Comment

            • John

              #7
              Re: flaky rollover script

              Steven Daedelus <sdaedelus@ira. gov> wrote in
              news:sdaedelus-EBCA92.00223603 032004@netnews. comcast.net:
              [color=blue]
              > In article <rccharles-7D61C6.23414402 032004@news1.we st.earthlink.ne t>,
              > Robert <rccharles@my-deja.com> wrote:
              >[color=green]
              >> In article <sdaedelus-CE732A.21531502 032004@netnews. comcast.net>,
              >> Steven Daedelus <sdaedelus@ira. gov> wrote:
              >>[color=darkred]
              >> > In article <Xns94A180FABA0 39johnmshomenet @203.26.24.228> ,
              >> > John <john@mshome.ne t> wrote:
              >> >
              >> > > Steven Daedelus <sdaedelus@ira. gov> wrote in news:sdaedelus-
              >> > > 66835B.20082502 032004@netnews. comcast.net:
              >> > >
              >> > > > http://caraher.org/
              >> > >
              >> > > in Mozilla JavaScript Console, I get "Error: preLoadImages is not
              >> > > defined"
              >> >
              >> > Yeah, I noticed that too. That shouldn't make any difference to the
              >> > rollovers, though, especially since only one of them doesn't work
              >> > properly.
              >> >
              >> > stedae[/color]
              >>
              >> Well, if the function isn't defined the onload instance stops and
              >> your rollovers don't get loaded. I don't know why one works.
              >>
              >> The home page has:
              >> onload="preload Images();MM_pre loadImages ...
              >>
              >> but a lower page such as http://caraher.org/links.html has:
              >>
              >> onload="MM_prel oadImages ...
              >>
              >> Try deleting preloadImages() ;
              >>
              >> I haven't tried this.
              >>
              >> Robert[/color]
              >
              > But my point is that failure to preload the images doesn't make any
              > difference to the rollover script. The preload script simply causes
              > the images to be cached. If it fails, the rollover still works, but
              > the images have to be loaded when the rollover is called.
              >
              > In any case, I fixed this and it didn't make a difference.
              >[/color]

              Sorry, I didn't read your reply properly ;-)

              Comment

              • Michael Winter

                #8
                Re: flaky rollover script

                On Wed, 03 Mar 2004 01:13:49 GMT, Steven Daedelus <sdaedelus@ira. gov>
                wrote:

                [snip]
                [color=blue]
                > You'll notice that the "links" button, which has a rollover script
                > attached, doesn't work. I've stared at it for far too long and can't
                > spot the problem. It's out-of-the-box Dreamweaver code, as I was not
                > getting paid enough to do any custom work here, but I've never had any
                > serious trouble with Dreamweaver's code before. In any case, the other
                > rollovers work. I can't figure out what is different about this one.[/color]

                The only problem I have is with the call to the non-existant
                preloadImages() function onload. All six rollovers work fine.

                Opera 7.23/Win

                Mike

                --
                Michael Winter
                M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

                Comment

                • Steven Daedelus

                  #9
                  Re: flaky rollover script

                  In article <opr399xf065vkl cq@news-text.blueyonder .co.uk>,
                  Michael Winter <M.Winter@bluey onder.co.invali d> wrote:
                  [color=blue]
                  > On Wed, 03 Mar 2004 01:13:49 GMT, Steven Daedelus <sdaedelus@ira. gov>
                  > wrote:
                  >
                  > [snip]
                  >[color=green]
                  > > You'll notice that the "links" button, which has a rollover script
                  > > attached, doesn't work. I've stared at it for far too long and can't
                  > > spot the problem. It's out-of-the-box Dreamweaver code, as I was not
                  > > getting paid enough to do any custom work here, but I've never had any
                  > > serious trouble with Dreamweaver's code before. In any case, the other
                  > > rollovers work. I can't figure out what is different about this one.[/color]
                  >
                  > The only problem I have is with the call to the non-existant
                  > preloadImages() function onload. All six rollovers work fine.
                  >
                  > Opera 7.23/Win
                  >
                  > Mike[/color]

                  Really? That's odd. I've tried it on three machines and half a dozen
                  browsers and it's still messed up. How weird is that?

                  Comment

                  • Steven Daedelus

                    #10
                    Re: flaky rollover script

                    In article <Xns94A1B32DA23 98johnmshomenet @203.26.24.228> ,
                    John <john@mshome.ne t> wrote:
                    [color=blue]
                    > Steven Daedelus <sdaedelus@ira. gov> wrote in
                    > news:sdaedelus-EBCA92.00223603 032004@netnews. comcast.net:
                    >[color=green]
                    > > In article <rccharles-7D61C6.23414402 032004@news1.we st.earthlink.ne t>,
                    > > Robert <rccharles@my-deja.com> wrote:
                    > >[color=darkred]
                    > >> In article <sdaedelus-CE732A.21531502 032004@netnews. comcast.net>,
                    > >> Steven Daedelus <sdaedelus@ira. gov> wrote:
                    > >>
                    > >> > In article <Xns94A180FABA0 39johnmshomenet @203.26.24.228> ,
                    > >> > John <john@mshome.ne t> wrote:
                    > >> >
                    > >> > > Steven Daedelus <sdaedelus@ira. gov> wrote in news:sdaedelus-
                    > >> > > 66835B.20082502 032004@netnews. comcast.net:
                    > >> > >
                    > >> > > > http://caraher.org/
                    > >> > >
                    > >> > > in Mozilla JavaScript Console, I get "Error: preLoadImages is not
                    > >> > > defined"
                    > >> >
                    > >> > Yeah, I noticed that too. That shouldn't make any difference to the
                    > >> > rollovers, though, especially since only one of them doesn't work
                    > >> > properly.
                    > >> >
                    > >> > stedae
                    > >>
                    > >> Well, if the function isn't defined the onload instance stops and
                    > >> your rollovers don't get loaded. I don't know why one works.
                    > >>
                    > >> The home page has:
                    > >> onload="preload Images();MM_pre loadImages ...
                    > >>
                    > >> but a lower page such as http://caraher.org/links.html has:
                    > >>
                    > >> onload="MM_prel oadImages ...
                    > >>
                    > >> Try deleting preloadImages() ;
                    > >>
                    > >> I haven't tried this.
                    > >>
                    > >> Robert[/color]
                    > >
                    > > But my point is that failure to preload the images doesn't make any
                    > > difference to the rollover script. The preload script simply causes
                    > > the images to be cached. If it fails, the rollover still works, but
                    > > the images have to be loaded when the rollover is called.
                    > >
                    > > In any case, I fixed this and it didn't make a difference.
                    > >[/color]
                    >
                    > Sorry, I didn't read your reply properly ;-)[/color]

                    Quite alright. I probably should have removed the red herrings before I
                    posted the original question ;)

                    stedae

                    Comment

                    Working...