Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Got issues with additional images AND swap mouseover

Got issues with additional images AND swap mouseover

Locked

Views: 873

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Dec 2008, 12:17 AM
#1
dreamlex avatar

dreamlex

New Zenner

Join Date:
Dec 2008
Posts:
57
Plugin Contributions:
0

Got issues with additional images AND swap mouseover

I am not sure if it is posted in right place. I have been through the posts regarding additional images. I successfully make additional images work but...

I got additional images added to folders with filenames as instructed by older posts. I have a few problems with additional images.

  1. The template shows ```
    " target="_blank">
On source view, it shows incorrectly like this: 
<div id="productMainImage" class="centeredContent back"> <script language="javascript" type="text/javascript"><!-- document.write('<a href="<img src="images/apparel/babydoll.jpg" alt="test" title=" test " width="90" height="120" name="imageSwap" />" target="_blank">'); //--></script> <noscript> <a href="domain/index.php?main_page=popup_image&pID=6" target="_blank"><img src="images/apparel/babydoll.jpg" alt="test" title=" test " width="90" height="120" /><br /><span class="imgLink">larger image</span></a></noscript> </div> ``` I switched to classic and tested whether the image appeared. It worked fine, but not my custom template. Can anyone please help with this? I have tried to replace the swap image files a few times.
  1. the front image has small box with "x" but when I try to do a mouseover on image, there isn't any rollover effect. Also on the individual product page, I try to do mouseover on the additional images and the pop images show up - that's not what I wanted. I wonder if it is possible to do a mouseover on additional images to make the individual product image swap with the additional images instead of having additional images pop up upon mouseover.

Thank you for your time and help.

25 Dec 2008, 12:56 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Got issues with additional images AND swap mouseover

You have installed an image-swapping mod? Is it AJAX Image Swapper? If so, try reading or posting in its support thread for focused attention.

The target="_blank" means to open in a new window, not that something is missing.

25 Dec 2008, 1:03 AM
#3
dreamlex avatar

dreamlex

New Zenner

Join Date:
Dec 2008
Posts:
57
Plugin Contributions:
0

Re: Got issues with additional images AND swap mouseover

gjh42:

You have installed an image-swapping mod? Is it AJAX Image Swapper? If so, try reading or posting in its support thread for focused attention.

The target="_blank" means to open in a new window, not that something is missing.

I know what target =blank means, but please read the code and you will notice that document.write(__) has img src inside a href - so it is incorrect.

no i don't use AJAX image swapper. I am using Swap Images via MouseOver or Click add-on.

25 Dec 2008, 1:38 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Got issues with additional images AND swap mouseover

OK, I see what you mean. It looks like the image tag got mixed up/overlapped with the <a> tag... I don't use javascript, so not sure exactly how that should be sorted - assuming there is something different than standard HTML.

document.write('<a href="'???????" target="_blank"><img src="images/apparel/babydoll.jpg" alt="test" title=" test " width="90" height="120" name="imageSwap" /></a>);
25 Dec 2008, 1:57 AM
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Got issues with additional images AND swap mouseover

Well, since I dont use this module, I dont know exactly how it works. But you cant say it's incorrect just because the img src is in the href, it's just a way to store the src of the additional img so we can swap the img later when you click or hover on the additional images.

25 Dec 2008, 1:00 PM
#6
dreamlex avatar

dreamlex

New Zenner

Join Date:
Dec 2008
Posts:
57
Plugin Contributions:
0

Re: Got issues with additional images AND swap mouseover

yellow1912:

Well, since I dont use this module, I dont know exactly how it works. But you cant say it's incorrect just because the img src is in the href, it's just a way to store the src of the additional img so we can swap the img later when you click or hover on the additional images.

you are probably right. but everywhere I look, I am not sure where to make it right.

Thank you for your reply.