Results 1 to 2 of 2

Thread: Thumbnail Viewer

  1. #1
    Join Date
    Mar 2007
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thumbnail Viewer

    I am using the thumbnail viewer here: http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    I am not familiar with javascript at all and I was wondering how I recode the viewer so the image does not pop up exactly in the center. Please help. Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In thumbnailviewer.css you can add a negative margin to move the display in that direction. For example, to move it 120 pixels to the left:

    Code:
    #thumbBox{ /*Outermost DIV for thumbnail viewer*/
    margin-left:-120px;
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    padding: 10px;
    padding-bottom: 0;
    background: #313131;
    visibility: hidden;
    z-index: 10;
    cursor: hand;
    cursor: pointer;
    }
    Whatever you add to that selector should also be done with the loading division:

    Code:
    #thumbLoading{ /*DIV for showing "loading" status while thumbbox is being generated*/
    margin-left:-120px;
    position: absolute;
    visibility: hidden;
    border: 1px solid black;
    background-color: #EFEFEF;
    padding: 5px;
    z-index: 5;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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