Page 1 of 1

image title

Posted: Wed May 19, 2010 6:03 am
by samir_gambler
I want to display image title as mouse is hovered over it, but when mouse is hovered it is only displaying name before space only

Code: Select all

<img src="http://localhost/photo/components/com_virtuemart/shop_image/product/resized/Big_Sky_4b6fe7473bf0d_90x90.jpg" height="74" width="90" class="browseProductImage" border="0" title=<?php echo($row->product_name); ?> alt=<?php echo($row->product_name); ?>/>
the value of $row->product_name is "Cap kitti". but when mouse is hovered over the image only "Cap" is shown.

Re: image title

Posted: Wed May 19, 2010 6:53 am
by roders
its supposed to be

Code: Select all

title="<?php echo($row->product_name); ?>"
same for

Code: Select all

alt="<?php echo($row->product_name); ?>"

Re: image title

Posted: Wed May 19, 2010 6:54 am
by klevis miho
Replace this with this:

Code: Select all

<img src="http://localhost/photo/components/com_virtuemart/shop_image/product/resized/Big_Sky_4b6fe7473bf0d_90x90.jpg" height="74" width="90" class="browseProductImage" border="0" title="<?php echo($row->product_name); ?>" alt="<?php echo($row->product_name); ?>"/>

Re: image title

Posted: Wed May 19, 2010 7:31 am
by samir_gambler
thanx it worked...... :D