Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How to combine onMouseOver effekt with PHP


Recommended Posts

Hey everybody


Im trying to make a mouseover effekt but i got a little problem when addig php to it.


Here how it goes.


<a href="www.oscommerce.com" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('NAME','','OVER.JPG',1)"><img src="NORMAL.JPG" name="NAME" width="174" height="26" border="0"></a></td>


So, how can i put


<?php echo tep_image(DIR_WS_IMAGES . 'top_menu_1_over.jpg'); ?>

instead of OVER.JPG

Link to comment
Share on other sites

You don't want to do so. At most, you might want to replace 'OVER.JPG' with '<?php echo DIR_WS_IMAGES; ?>/top_menu_1_over.jpg'


tep_image produces the <img src="...> element, which you don't want in that call.




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...