...

View Full Version : PHP/Java Image Rollovers?



milestrap
04-01-2004, 11:44 PM
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:

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

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

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

Thanks. :thumbsup:

raf
04-02-2004, 11:54 AM
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.

milestrap
04-02-2004, 06:43 PM
That works...

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

Thanks again!

raf
04-02-2004, 08: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum