Author Topic: Image change on mouseover  (Read 12885 times)

hackingnatt

  • Beginner
  • *
  • Posts: 9
Re: Image change on mouseover
« Reply #15 on: October 25, 2011, 12:57:17 pm »
I hav some error.

it didn;t work in Mozilla 4 and above.

but i didn't test in Mozilla 3.

pls suggest me.

other issue - how can i use Additional image's thumb image.

thx

mbit

  • Jr. Member
  • **
  • Posts: 323
Re: Image change on mouseover
« Reply #16 on: November 04, 2011, 22:44:24 pm »
the additional images doesnt load :/

mbit

  • Jr. Member
  • **
  • Posts: 323
Re: Image change on mouseover
« Reply #17 on: November 05, 2011, 02:03:40 am »
<img src="<?php echo $product_thumb_image ?>"
onmouseover="this.src='components/com_virtuemart/shop_image/product/<?php echo $product_sku ?>.jpg'"
onmouseout="this.src='<?php echo $product_thumb_image ?>'">

THEN, upload the files as additional images. (additional images keep the same file name when they are uploaded as long as they are unique)

OR, just FTP the files over to the product folder.

You can also use <? php echo $product_id ?> and use productid.jpg
i am trying to make this work for the additional images - hover on additional thumbs show up on the main image palce. something like what amazon uses. but the
Code: [Select]
<?php echo $this->vmlistAdditionalImages$product_id$images ?> keeps me away from accomplish it.

i give an id to the main image
Code: [Select]

<img src= "<?php echo $mosConfig_live_site;?>/components/com_virtuemart/shop_image/product/<?php echo $product_full_image?>" class="fullvmimage" id="mainImage" >

and i am trying to connect this with the additional images
Code: [Select]
<a href="#" onmouseover="document.getElementById('mainImage').src='here must be placed the full additional image path'"onmouseout="document.getElementById('mainImage').src='<?php echo $mosConfig_live_site;?>/components/com_virtuemart/shop_image/product/<?php echo $product_full_image?>'">AAA<?php echo $this->vmlistAdditionalImages$product_id$images ?>
</a>
any ideas how to handle the vmlistAdditionalImages ?? i am stuck :/