Results 1 to 3 of 3

Thread: Image Thumbnail Viewer

  1. #1
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer

    I have just seen the "Image Thumbnail Viewer" and the corresponding thumbnailviewer.js File. One thing i noticed with the control is that
    "where ever u click on the Enlarged Image the window gets closed but it should close when the 'Close It' clicked which is at the bottom right. "

    any solution to the above query ASAP would be highly appreciated becoz i am using this in my application but unable to trace how to close it only when Close It is clicked.

    One more thing what is the Syntax used in the file "thumbnailviewer.js" is it a JSON syntax used over here.

  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

    That's actually a feature, to make it easier to close the box. But to get rid of it, find this line and get rid of the highlighted part:

    Code:
    document.write('<div id="thumbBox" onClick="thumbnailviewer.closeit()"><div id="thumbImage"></div>'+this.definefooter+'</div>')
    Put it in this line:

    Code:
    definefooter: '<div class="footerbar">CLOSE X</div>', //Define HTML for footer interface
    like so:

    Code:
    definefooter: '<div class="footerbar"><span onclick="thumbnailviewer.closeit();">CLOSE X</span></div>', //Define HTML for footer interface
    JASON? I think you are confusing standard javascript object property:value notation, like:

    Code:
    createthumbBox:function()
    with JASON, which I believe makes extensive use of it as well.

    Oh, and in the future, please post Dynamic Drive Script questions in the Dynamic Drive Scripts Help section here where I have moved this, and:

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    venkata ande (10-25-2008)

  4. #3
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    thats really great Jscheuer1 thank u so much for your reply n I apologize that I posted it in a wrong forum. since i am new comer here. In the future i will make sure to post in an appropriate thread with proper posting format.

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
  •