Jump to content

New with PHP, need help changing active web buttons...


moncho007

Recommended Posts

Hello everyone!

 

This is my first post, so I'm not very sure if this is the right forum section to post my problem... Anyway here's the situation.

 

I'm just starting to learn PHP and so far I've got a working forum and site. I've made buttons with the GIMP for my site (you know - contacts, home, etc.. :)) and I want to do when the user moves the mouse over some of the button (not clicking on it) to highlight the same button (in my case I'd like to change the button image with another one). I'd like to do the same, but this time when the user clicks on the button. I've searched the web and all I found was about JScript. I'm not very sure if you understood me :). Hope someone will answer my post and help me solve this.

 

Thanks in advance!

Link to comment
Share on other sites

You don't want to do this with javascript. It can be done with javascript, but will require that the user have javascript turned on. It can be done with less code and more reliably using CSS.

 

This tutorial is a good place to start. They have an on-click image change built into it (as well as a rollover).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.