PDA

View Full Version : Help with modalbox / lightbox type window javascript edits



po3
Sep 14th, 2007, 04:39 PM
I'm using javascript popup (modalbox (http://wildbit.com/demos/modalbox/)) and have been able to make some alterations to the code to change the look of things such as eliminating the header of the box and getting centered on the page, etc. However, I have two issues I'd like to solve but I really don't know how to fix them because I don't know enough about javascript.

The first issue has to do with centering the popup in the browser window. It seems to look at the entire page (including the depth of the vertical scroll) and then center from there rather than center in the viewable window. It seems like IE 7 on the pc is the only browser that tries to center the modalbox in the actual viewable window. Make sense?

The second issue has to do with the resizing of the modal window. Every time you click to the next image the window does a little dance where it gets smaller vertically and then grows back. All my images will be the same size so I don't want the box to continue to resize every time. Once the modalbox it open it can remain the same size.

Here is a link to the page with the modal box popup (http://projecto3.com/clients/po3v3/TEST/work/test.html). Just click the large image or the "view more images" link.

Thanks!

po3
Sep 17th, 2007, 02:01 PM
any thoughts on this?