Instant action response with php?

2 replies
Hi

I would like to create some instant responses using PHP.
eg. if i hover over an image, it changes, and changes back if not hovered over.
or if i wanted to create a drop down menu that opens as you click without having to reload the whole page.

Can this be done with php?

Or do i have to learn javascript now?
#action #instant #php #response
  • Profile picture of the author mills
    You need client side scripting for these kind of behaviours (as opposed to server side - php).

    A lot can be achieved with just css though, e.g. dropdown menus, so you may not have to delve into javascript just yet. Whether or not that's a blessing depends on how much you already know about css :-)

    Google 'css drop down menu' for lots of examples you can borrow from.
    {{ DiscussionBoard.errors[1816870].message }}
  • Profile picture of the author lharding
    Hi,

    Check out this article. It's great example of keeping things simple and being search engine friendly.

    Making CSS Rollover Buttons
    Signature
    Lee Harding
    The Architect
    {{ DiscussionBoard.errors[1817083].message }}

Trending Topics