View Single Post
  #2  
Old 03-30-2009, 01:24 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Question about adding Javascript image magnification code.

You can add this script elsewhere you wish within skin1 dir (in a separate file named PopBox.js).
I think placing it in skin1/customer/ is good idea
Then insert in /customer/main/product.tpl right below the lines
Code:
{/capture} {include file="customer/dialog.tpl" }

Code:
<script src="customer/PopBox.js" type="text/javascript"></script> <script type="text/javascript"> popBoxWaitImage.src = "{$ImagesDir}/spinner40.gif"; popBoxRevertImage = "{$ImagesDir}/magminus.gif"; popBoxPopImage = "{$ImagesDir}/magplus.gif"; </script>

And copy these images in your skin1/images directory

So you complete first and second step
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote