Results 1 to 3 of 3

Thread: photoalbum 2.0 - popup window problem

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

    Default photoalbum 2.0 - popup window problem

    couldn't find my original post... so here is a new thread

    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 saw that "_new" makes a new window, but not a distinct popup window sized at 500x600px, smaller than the site window.


    This is the photoalbum I'm using, and with a click on the thumbnail graphic a popup window showing the larger graphic should appear:
    http://www.dynamicdrive.com/dynamici...photoalbum.htm


    here is the site I'm working on online:
    http://www.tmatelson.com/MCCRAY/paint_near.html

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Your version of the script (photogallery.js) on your server is missing this line (red):

    Code:
    // -------------------------------------------------------------------
    // Photo Album Script v2.0- By Dynamic Drive, available at: http://www.dynamicdrive.com
    // Mar 11th, 07': Script updated to v2.0
    // -------------------------------------------------------------------
    
    function photogallery(garray, cols, rows, twidth, theight, paginatetext){
    	gcount=(typeof gcount=="undefined")? 1 : gcount+1 //global var to keep count of current instance of photo gallery
    	this.gcount=gcount
    	this.galleryarray=garray
    	this.cols=cols
    	this.rows=rows
    	var twidth=twidth || "500x" //default table width is 700px
    	var theight=theight || "500px"
    	var ptext=(typeof paginatetext=="object")? paginatetext : ["Browse Gallery:", ""] //Store 2 compontents of paginate DIV text inside array
    	this.pagecount=Math.ceil(this.galleryarray.length/(cols*rows)) //calculate number of "pages" needed to show the images
    	document.write('<tab . . .
    When I ran your page with that line included, the pop up worked as expected.

    Give it a shot.

    Added Later:

    I am seeing now that you took out that line to eliminate the 'Browse Gallery [1]" thing. You can just as easily get rid of that by editing the style here (addition red):

    Code:
    .photonavlinks{ /*CSS for pagination DIV*/
    font: bold 14px Arial;
    display:none;
    }
    Last edited by jscheuer1; 06-20-2007 at 06:00 PM. Reason: Add Info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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

    Default

    BTW, please post DD script related questions in the correct forum. Thread moved.

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
  •