PDA

View Full Version : Image Thumbnail Viewer II - problem with installation



markers
01-28-2013, 04:53 PM
1) Script Title:
Image Thumbnail Viewer II

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem:

Hello everyone


I'm trying to install the above mentioned script. Just implemented all the things as per instruction but script failed to run (open new window instead of open image on the same page). It's a link to my page:

buyordie.ru/product_info.php?products_id=516

At the bottom of the page you can find the relevant rows with the script. Could you please advise me what is wrong?

Thank you in advance!

Ruslan

jscheuer1
01-28-2013, 06:30 PM
The problem is that there's another version of jQuery later on the page that's interfering with the thumbnail script. Get rid of this or comment it out (it's currently used by .simpleSpy()):


<script src="js/jquery-1.js" type="text/javascript"></script>

But that will break .simpleSpy(), So after the thumbnail script add the highlighted as shown:


<script type="text/javascript" src="/js/jquery.min.js"></script>

<script type="text/javascript" src="/js/thumbnailviewer2.js">

/***********************************************
* 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>
<script type="text/javascript">
var $ = jQuery;
</script>
<div id="loadarea"></div>

And .simpleSpy() will be able to use the earlier copy of jQuery.

The browser cache may need to be cleared and/or the page refreshed to see changes.