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.
Bookmarks