PDA

View Full Version : Photo Album script v2.0 - no popup window



tmate
06-15-2007, 08:02 PM
1) Script Title: Photo Album script v2.0

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/photoalbum.htm

3) Describe problem:
In the photo albums i've created when i click on the thumbnail image i get a new window, but not a distinct popup window as is shown in the "example" at the bottom of the page and shown in the developer code. i realized the "_new" makes the window, but not a popup.

would appreciate some help with this.
thank you

ddadmin
06-16-2007, 02:46 AM
Make sure the syntax within your window.open() code to create the distinct window is correct. For example:


thepics.onselectphoto=function(img, link){
if (link!=null) //if this image is hyperlinked
window.open(link.href, "", "width=800, height=600, status=1, resizable=1")
return false //cancel default action when clicking on image, by returning false instead of true
}

The part in red is what styles the pop up window. If its syntax is incorrect, the browser will usually ignore all the styles altogether. Take a look at the bottom of this page (http://javascriptkit.com/jsref/window.shtml) for documentation on this.