If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2005
    Member #
    hiya, folks

    there is a <div> element on a page i'm designing that is supposed to scroll.

    it's the panel on the very right. when the user clicks a thumbnail, the whole page is reloaded with that image. the problem is that the scroll bar resets each time. the user must then scroll back down to where he was to see the next photo.

    i know i could avoid this with frames, but i wish there was some way without frames. ideally, the right panel would resume where the user last clicked on a picture. does anyone have any suggestions? thanks...

    -- pablo

    p.s. here's the css info for the <div> element

    overflow: auto;
    height: 460px;
    width: 135px;
    position: relative;
    top: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #335266;
    padding: 10px;
    left: 10px;
    text-align: center;


  3. #2
    Senior Member glyakk's Avatar
    Join Date
    Nov 2003
    Member #
    6 times
    There are couple of creative ways you could get around this.. one that comes to mind is if you created a function to create a new element (via loading data into a div that is usually hidden and making it visiable though css) that would 'float over your page via CSS positioning when an image is selected. Then include a 'close window' function to get rid of the image when you want to see another. This prevents the page from refreshing so you dont loose your place. Another method could involve some sort of XMLHTTPRequest though javascript that would also create this object.

  4. #3
    Junior Member
    Join Date
    Dec 2005
    Member #
    glyakk, i conceptualized about making the pictures visible with css (layers?) but i don't know enough to code that.

    the client needs this by tomorrow morning so i'm going with the iframes. thanks for your help.

    -- pablo

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 01:32 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: