6 Replies Latest reply: Jun 20, 2008 12:54 PM by RSS

    Vertical Page movement

    gwiebe Community Member
      Hello
      I was wondering how to keep a page from moving to the top when you click on a link to go to another page. I am trying to set up a pic gallery. When I click on a thumbnail it goes to another page that shows that image bigger, but I want the page to stay in the same vertical location rather than scooting the top of the new page. What or can I do to keep the page in the same spot?
      Thanks

      Gerry

      Page example


      Using dreamweaver CS3 Mac
        • 1. Re: Vertical Page movement
          Newsgroup_User Community Member
          You have applied behaviors to your Library item (Header.lbi). That's not
          only not allowed, but it also creates a mess on your page. Please remove
          the unneccessary, redundant, and illegal javascript *and* <body> tag from
          the Library item. In the future, only create your Library items AFTER all
          interactivity has been added, not before.

          In addition, and actually much worse, you have TWO instances of the !--
          #BeginLibraryItem "/Library/Header.lbi" --> markup, and only ONE
          correspnding instance of <!-- #EndLibraryItem --> markup. You must fix this
          or DW is going to act very strange.

          Now, to your problem. You are linking to new pages on each thumb. In other
          words, when you click on thumb2, it links you to page2, and when you click
          on thumb3, it links to page3. This is an awkward way to do that, since you
          have to create and maintain each of those pages. A much better way to do
          that would be to let the thumb click just swap an image in the center of the
          page, thereby allowing you to stay on a single page. However, since each of
          those images is ~128K, your page would be massively heavy. The solution is
          to not use the image swap, but to use the Set Text behavior. Each thumb
          click would then dynamically write the markup for a particular image into
          the same container in the center of the page (table cell), allowing you all
          the benefits of staying on a single page, but not encumbering the page with
          the aggregate weight of the central, enlarged images, since each image is
          only fetched when it is requested, not when the page initially loads. To
          see an example of this, go here -

          http://dreamweaverresources.com/tutorials/settextoflayer.htm

          and a tutorial

          http://www.dreamweaverresources.com/tutorials/settextoflayer.htm


          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "gweeb" <webforumsuser@macromedia.com> wrote in message
          news:g27mq9$1nq$1@forums.macromedia.com...
          > Hello
          > I was wondering how to keep a page from moving to the top when you click
          > on a
          > link to go to another page. I am trying to set up a pic gallery. When I
          > click
          > on a thumbnail it goes to another page that shows that image bigger, but I
          > want
          > the page to stay in the same vertical location rather than scooting the
          > top of
          > the new page. What or can I do to keep the page in the same spot?
          > Thanks
          >
          > Gerry
          >
          > http://www.prominenthomesont.com/pages/customhomes/alpha.html
          >
          >
          > Using dreamweaver CS3 Mac
          >

          • 2. Re: Vertical Page movement
            Newsgroup_User Community Member
            Those 2 links point to the same page.

            ???

            --

            Walt


            "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
            news:g28gu1$sn6$1@forums.macromedia.com...
            > You have applied behaviors to your Library item (Header.lbi). That's not
            > only not allowed, but it also creates a mess on your page. Please remove
            > the unneccessary, redundant, and illegal javascript *and* <body> tag from
            > the Library item. In the future, only create your Library items AFTER all
            > interactivity has been added, not before.
            >
            > In addition, and actually much worse, you have TWO instances of the !--
            > #BeginLibraryItem "/Library/Header.lbi" --> markup, and only ONE
            > correspnding instance of <!-- #EndLibraryItem --> markup. You must fix
            > this or DW is going to act very strange.
            >
            > Now, to your problem. You are linking to new pages on each thumb. In
            > other words, when you click on thumb2, it links you to page2, and when you
            > click on thumb3, it links to page3. This is an awkward way to do that,
            > since you have to create and maintain each of those pages. A much better
            > way to do that would be to let the thumb click just swap an image in the
            > center of the page, thereby allowing you to stay on a single page.
            > However, since each of those images is ~128K, your page would be massively
            > heavy. The solution is to not use the image swap, but to use the Set Text
            > behavior. Each thumb click would then dynamically write the markup for a
            > particular image into the same container in the center of the page (table
            > cell), allowing you all the benefits of staying on a single page, but not
            > encumbering the page with the aggregate weight of the central, enlarged
            > images, since each image is only fetched when it is requested, not when
            > the page initially loads. To see an example of this, go here -
            >
            > http://dreamweaverresources.com/tutorials/settextoflayer.htm
            >
            > and a tutorial
            >
            > http://www.dreamweaverresources.com/tutorials/settextoflayer.htm
            >
            >
            > --
            > Murray --- ICQ 71997575
            > Adobe Community Expert
            > (If you *MUST* email me, don't LAUGH when you do so!)
            > ==================
            > http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
            > http://www.dwfaq.com - DW FAQs, Tutorials & Resources
            > ==================
            >
            >
            > "gweeb" <webforumsuser@macromedia.com> wrote in message
            > news:g27mq9$1nq$1@forums.macromedia.com...
            >> Hello
            >> I was wondering how to keep a page from moving to the top when you click
            >> on a
            >> link to go to another page. I am trying to set up a pic gallery. When I
            >> click
            >> on a thumbnail it goes to another page that shows that image bigger, but
            >> I want
            >> the page to stay in the same vertical location rather than scooting the
            >> top of
            >> the new page. What or can I do to keep the page in the same spot?
            >> Thanks
            >>
            >> Gerry
            >>
            >> http://www.prominenthomesont.com/pages/customhomes/alpha.html
            >>
            >>
            >> Using dreamweaver CS3 Mac
            >>
            >


            • 3. Re: Vertical Page movement
              Newsgroup_User Community Member
              LOL - so they do!

              Heh - I was just checking to see if you were paying attention. Your gold
              star is in the mail....

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              ==================


              "Walt F. Schaefer" <walt@waltswebworx.com> wrote in message
              news:g28svj$c0i$1@forums.macromedia.com...
              > Those 2 links point to the same page.
              >
              > ???
              >
              > --
              >
              > Walt
              >
              >
              > "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
              > news:g28gu1$sn6$1@forums.macromedia.com...
              >> You have applied behaviors to your Library item (Header.lbi). That's not
              >> only not allowed, but it also creates a mess on your page. Please remove
              >> the unneccessary, redundant, and illegal javascript *and* <body> tag from
              >> the Library item. In the future, only create your Library items AFTER
              >> all interactivity has been added, not before.
              >>
              >> In addition, and actually much worse, you have TWO instances of the !--
              >> #BeginLibraryItem "/Library/Header.lbi" --> markup, and only ONE
              >> correspnding instance of <!-- #EndLibraryItem --> markup. You must fix
              >> this or DW is going to act very strange.
              >>
              >> Now, to your problem. You are linking to new pages on each thumb. In
              >> other words, when you click on thumb2, it links you to page2, and when
              >> you click on thumb3, it links to page3. This is an awkward way to do
              >> that, since you have to create and maintain each of those pages. A much
              >> better way to do that would be to let the thumb click just swap an image
              >> in the center of the page, thereby allowing you to stay on a single page.
              >> However, since each of those images is ~128K, your page would be
              >> massively heavy. The solution is to not use the image swap, but to use
              >> the Set Text behavior. Each thumb click would then dynamically write the
              >> markup for a particular image into the same container in the center of
              >> the page (table cell), allowing you all the benefits of staying on a
              >> single page, but not encumbering the page with the aggregate weight of
              >> the central, enlarged images, since each image is only fetched when it is
              >> requested, not when the page initially loads. To see an example of this,
              >> go here -
              >>
              >> http://dreamweaverresources.com/tutorials/settextoflayer.htm
              >>
              >> and a tutorial
              >>
              >> http://www.dreamweaverresources.com/tutorials/settextoflayer.htm
              >>
              >>
              >> --
              >> Murray --- ICQ 71997575
              >> Adobe Community Expert
              >> (If you *MUST* email me, don't LAUGH when you do so!)
              >> ==================
              >> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              >> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              >> ==================
              >>
              >>
              >> "gweeb" <webforumsuser@macromedia.com> wrote in message
              >> news:g27mq9$1nq$1@forums.macromedia.com...
              >>> Hello
              >>> I was wondering how to keep a page from moving to the top when you click
              >>> on a
              >>> link to go to another page. I am trying to set up a pic gallery. When
              >>> I click
              >>> on a thumbnail it goes to another page that shows that image bigger, but
              >>> I want
              >>> the page to stay in the same vertical location rather than scooting the
              >>> top of
              >>> the new page. What or can I do to keep the page in the same spot?
              >>> Thanks
              >>>
              >>> Gerry
              >>>
              >>> http://www.prominenthomesont.com/pages/customhomes/alpha.html
              >>>
              >>>
              >>> Using dreamweaver CS3 Mac
              >>>
              >>
              >
              >

              • 4. Re: Vertical Page movement
                gwiebe Community Member
                Thanks Ace for your help. I appreciate it

                I am not sure what you mean by this part
                "You have applied behaviors to your Library item (Header.lbi). That's not
                only not allowed, but it also creates a mess on your page. Please remove
                the unneccessary, redundant, and illegal javascript *and* <body> tag from
                the Library item. In the future, only create your Library items AFTER all
                interactivity has been added, not before."

                Does this mean I cannot have java script in a library item? Or is it my lack of knowlege with proper coding?

                Cheers
                G.

                • 5. Re: Vertical Page movement
                  Newsgroup_User Community Member
                  > Does this mean I cannot have java script in a library item?

                  You can have javascript anywhere, but it *does* mean that once you make a
                  Library item, you CANNOT apply a behavior to it. Why? Think about it:

                  1. A Library item can only be inserted into the page between <body> and
                  <body>
                  2. Thus, a Library item cannot, itself, contain <body> tags, otherwise the
                  insertion of it into a page would result in duplicate body tags
                  3. Many behaviors need to also insert some javascript call into the body
                  tag
                  4. If you apply a behavior to a Library item, which cannot have a body tag,
                  where is that javascript call to be placed?

                  That's what I mean.

                  > Or is it my lack of knowlege with proper coding?

                  Yes, that too, but everybody gotta be somewhere!

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  ==================


                  "gweeb" <webforumsuser@macromedia.com> wrote in message
                  news:g29j95$6u8$1@forums.macromedia.com...
                  > Thanks Ace for your help. I appreciate it
                  >
                  > I am not sure what you mean by this part
                  > "You have applied behaviors to your Library item (Header.lbi). That's not
                  > only not allowed, but it also creates a mess on your page. Please remove
                  > the unneccessary, redundant, and illegal javascript *and* <body> tag from
                  > the Library item. In the future, only create your Library items AFTER all
                  > interactivity has been added, not before."
                  >
                  > Does this mean I cannot have java script in a library item? Or is it my
                  > lack
                  > of knowlege with proper coding?
                  >
                  > Cheers
                  > G.
                  >
                  >
                  >

                  • 6. Re: Vertical Page movement
                    realy it created a mess on my page thank you very much