J
Joseph Ellis
Hello all.
I have a family website that I have been maintaining for the past year
and a half or so. It includes a photo album that has grown quite
large. So far I've displayed the photo album using frames, with
thumbnails on the left side of the screen and full-size images
displayed on the right.
But now I'm sick of frames and I'd like to use javascript to make the
whole shebang cleaner and tighter. I'd like to use a table, basically
with a cell containing a "column" of thumbnails on the left, then a
cell to display the full-size photos on the right, similar in
appearance and functionality to the frames version. So far I've
gotten to the point that I can click on any thumbnail and display the
corresponding image in the cell on the right by changing the src
attribute.
The problem is that the thumbnail cell is often longer than the screen
is tall, and so must be scrolled. This, of course scrolls the
full-sized image as well.
Here's the problematic page:
http://www.texasellis.com/albumjs.htm
How can I display the full size image so that it stays vertically
centered in the window, regardless of the window being scrolled up or
down by the user?
I'd prefer not to use a popup window. I'd like the image to just sort
of 'float' on the screen at the desired position. I imagine this
being similar to those obnoxious advertisements I've seen on other
websites that float up and down as you scroll the web page up and
down, always staying in view.
Thanks for any help. I'm willing to do the research and learning on
my own...I just don't know where to look. Any suggestions or nudges
would be greatly appreciated.
Joseph
P.S. I'm moderately familiar with Perl. I intend to eventually use
Perl to generate the thumbnail pages on the fly. I just need to work
out the javascript bit first.
I have a family website that I have been maintaining for the past year
and a half or so. It includes a photo album that has grown quite
large. So far I've displayed the photo album using frames, with
thumbnails on the left side of the screen and full-size images
displayed on the right.
But now I'm sick of frames and I'd like to use javascript to make the
whole shebang cleaner and tighter. I'd like to use a table, basically
with a cell containing a "column" of thumbnails on the left, then a
cell to display the full-size photos on the right, similar in
appearance and functionality to the frames version. So far I've
gotten to the point that I can click on any thumbnail and display the
corresponding image in the cell on the right by changing the src
attribute.
The problem is that the thumbnail cell is often longer than the screen
is tall, and so must be scrolled. This, of course scrolls the
full-sized image as well.
Here's the problematic page:
http://www.texasellis.com/albumjs.htm
How can I display the full size image so that it stays vertically
centered in the window, regardless of the window being scrolled up or
down by the user?
I'd prefer not to use a popup window. I'd like the image to just sort
of 'float' on the screen at the desired position. I imagine this
being similar to those obnoxious advertisements I've seen on other
websites that float up and down as you scroll the web page up and
down, always staying in view.
Thanks for any help. I'm willing to do the research and learning on
my own...I just don't know where to look. Any suggestions or nudges
would be greatly appreciated.
Joseph
P.S. I'm moderately familiar with Perl. I intend to eventually use
Perl to generate the thumbnail pages on the fly. I just need to work
out the javascript bit first.