Results 1 to 2 of 2

Thread: Photo Album script v2.0 - no popup window

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

    Default Photo Album script v2.0 - no popup window

    1) Script Title: Photo Album script v2.0

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Make sure the syntax within your window.open() code to create the distinct window is correct. For example:

    Code:
    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 for documentation on this.

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
  •