Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP/Java Image Rollovers?

    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.

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #3
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    That works...

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

    Thanks again!

  • #4
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •