5 Replies Latest reply on Sep 24, 2008 6:25 AM by kittorox

    can you target a table?

    kittorox
      hi

      can you create a hyperlink then target it to a table cell?
      thanks, kitty
        • 1. Re: can you target a table?
          Level 7
          kittorox wrote:
          > can you create a hyperlink then target it to a table cell?

          Give the table cell a unique ID like this:

          <td id="findMe">Cell content here</td>

          Create the link like this:

          <a href="#findMe">Go to the table cell</a>

          --
          David Powers, Adobe Community Expert
          Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
          Author, "PHP Solutions" (friends of ED)
          http://foundationphp.com/
          • 2. Re: can you target a table?
            kittorox Level 1
            Thanks David
            It does it, but it wont solve my problem! was asking the wrong question...

            i have a picture of a dress, then under it 3 thumbnail images (front, back and detail). i want the user to be able to click on a thumnail and it swaps the large dress image to a different view.

            is this possible without using frames? i'm currently using 'NEXT' and 'PREVIOUS' links which are a bit crap

            thanks, any ideas?
            company: www. courtesan - boutique.co.uk
            • 3. Re: can you target a table?
              Level 7
              An image swap would work for that.

              In DW we call this a disjointed (or disjoint) rollover - here's a tut for
              you........

              http://www.dwfaq.com/tutorials/basics/disjointed.asp



              --
              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
              ==================


              "kittorox" <webforumsuser@macromedia.com> wrote in message
              news:gbdbe2$esh$1@forums.macromedia.com...
              > Thanks David
              > It does it, but it wont solve my problem! was asking the wrong question...
              >
              > i have a picture of a dress, then under it 3 thumbnail images (front, back
              > and
              > detail). i want the user to be able to click on a thumnail and it swaps
              > the
              > large dress image to a different view.
              >
              > is this possible without using frames? i'm currently using 'NEXT' and
              > 'PREVIOUS' links which are a bit crap
              >
              > thanks, any ideas?
              > company: www. courtesan - boutique.co.uk
              >

              • 4. Re: can you target a table?
                Level 7
                kittorox wrote:
                > i have a picture of a dress, then under it 3 thumbnail images (front, back and
                > detail). i want the user to be able to click on a thumnail and it swaps the
                > large dress image to a different view.
                >
                > is this possible without using frames? i'm currently using 'NEXT' and
                > 'PREVIOUS' links which are a bit crap

                Yes, you can do it with a simple JavaScript function. Put this in the
                head of the page:

                <script type="text/javascript">
                function swapImage(elem)
                {
                if (!document.getElementById) return false;
                var bigPic = elem.getAttribute('href');
                document.getElementById('mainpic').setAttribute('src', bigPic);
                }
                </script>

                Give the main image an ID called "mainpic".

                Put this in the <a> tag surrounding each thumbnail:

                <a href="images/otherview.jpg" onclick="swapImage(this);return false;">

                The href should point to the large image that you want to load in place
                of the main image. If JavaScript is enabled, it will swap the image. If
                JavaScript is disabled, it will load the main image in the browser in
                place of the current page. Since the vast majority of people will have
                JavaScript enabled, they'll just see the image replaced.

                --
                David Powers, Adobe Community Expert
                Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
                Author, "PHP Solutions" (friends of ED)
                http://foundationphp.com/
                • 5. Re: can you target a table?
                  kittorox Level 1
                  good god, ive been trying to do this for 1 year!! thanks so much