View Full Version : Thumbnail Viewer

03-20-2007, 07:35 PM
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!

03-21-2007, 04:38 AM
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:

#thumbBox{ /*Outermost DIV for thumbnail viewer*/
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:

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