Log in

View Full Version : Image Thumbnail Viewer



venkata ande
10-24-2008, 07:27 AM
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.

jscheuer1
10-24-2008, 10:19 AM
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:


document.write('<div id="thumbBox" onClick="thumbnailviewer.closeit()"><div id="thumbImage"></div>'+this.definefooter+'</div>')


Put it in this line:


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


like so:


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:


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 (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

venkata ande
10-25-2008, 06:18 AM
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.