Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    jms
    jms is offline
    New Coder
    Join Date
    Nov 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    scroll to the top

    I can't figure out how to get this problem solved....

    The page url is www.jmsconsult.com/peabody/showroomma.html

    In the large image I have an area map (A), in the smaller image (B) is where the enlarged image will show when you click on an area in the image map (A). This works fine --- Not that I like the design, but the customer only wants me to change the following.

    When a user clicks on an area in the image map (A) it will show the enlarged image in (B), I would like the item description to scroll to the top of the table in the small scrollable table. This way the user will not have to look through the table trying to find the description that correlates to the click imaged.

    I hope I am explaining this well enough.

    Any ideas or suggestions would be greatly appreciated.

    Thanks a bunch!

  • #2
    Regular Coder
    Join Date
    Mar 2003
    Posts
    176
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,
    I think this is really a dhtml problem rather than css / html. Might be better if you posted in the javascript or dom forum.

    Cheers.
    Last edited by HairyTeeth; 04-11-2003 at 03:44 AM.

  • #3
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    [edit:] non iframe heh, I should have looked first, I'm not sure about how to scroll in that .. possibly:
    Code:
    scrollFrame.scrollTo (0,10);
    Not sure though.. I'll just bump you into the javascript forum coz they'll know about scrolling something like that.. I not good enough .
    Omnis mico antequam dominus Spookster!

  • #4
    jms
    jms is offline
    New Coder
    Join Date
    Nov 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for the move to javascripting.

  • #5
    Regular Coder
    Join Date
    Oct 2002
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts
    document.getElementById('mydiv').scrollTo='0,0';

    - id from element You want to scroll, like <div id="mydiv"></div>
    - place You want to scroll to

    Jerome


  •  

    Posting Permissions

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