View Full Version : PHP/Java Image Rollovers?

04-02-2004, 12:44 AM
Please be nice I'm a newbie to PHP.. and Hello all!

My questions is:
I want to make an Button Rollover.
How do I insert this into that:

<img src="button_continue.gif" hsrc="button_continue_hover.gif" dsrc="button_continue_down.gif" />

<?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?>

Or can I.. I have the Javascript end down..Maybe CSS?

Thanks. :thumbsup:

04-02-2004, 12:54 PM
Welcome here!

I actually don't have a clue what your problem realy is.
Just hardcode that part of the page. Load it into your browser. Copy the relevant part of the sourcode (javascriptfuntion and imagetags) and then include them in your php script like

echo 'htmlsource';

where htmlsource is the sourcecode you copy-pasted.

04-02-2004, 07:43 PM
That works...

I should have read " How to ask questions the smart way first"!

Thanks again!

04-02-2004, 09:17 PM
You're welcome!

It's something i did when i started out, and i still sporadically do when i need to compose more complex javascript or html-structure.