Has nothing to do with the Thumbnail script. Remove the DD script completely, and you will still have the error. It is simply an incompatibility with IE and one or more of the jQuery scripts.
Incidentally, there is a minor problem with the Thumbnail script, and this has come up before. Your solution will work, as will removing:
from the external script tag:
Code:
<script type="text/javascript" src="/wp-content/themes/KenyaTravels-Theme/photogallery/scripts/thumbnailviewer2.js" defer="defer">
/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
Although a standard attribute, this is only implemented by IE. It allows the browser to initialize the script sooner. But with so many other scripts on the page, it just doesn't work. Simply removing it will allow IE to initialize on page load. Your solution is probably better in that it would be faster.
But, as I say, the error has nothing to do with the Thumbnail script.
I'm attaching an altered copy of jQuery 1.4.2 min that will avoid the error:
Attachment 3302
The problem is probably with one of the scripts that uses jQuery or with your implementation of one of those scripts. If so, it would be better to find it there and fix it there. But it could be a glitch with jQuery itself, or even something else. However, since I've only added a try/catch to 'fix' the error, as long as the page works as expected in IE, it should be fine. It will not affect any script code or browser that wasn't having a problem before.
Bookmarks