Instant action response with php?

by 2 replies
3
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?
#programming #action #instant #php #response
  • 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.
  • Hi,

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

    Making CSS Rollover Buttons

Next Topics on Trending Feed