This is a discussion on "[SOLVED] possible to manipulate onmouseout behavior?" within the JavaScript Forum section. This forum, and the thread "[SOLVED] possible to manipulate onmouseout behavior? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] possible to manipulate onmouseout behavior?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] possible to manipulate onmouseout behavior?
Hi everyone!
I've got a page where visitors cast votes written mostly in php with html (tables, and a little css). There are two choices the visitor can vote for, and as a little effect, i thought it would be nice if when the visitor moused over their choice, the td background would change from a light blue, to a light green. furthermore, when the visitor clicked on their choice i wanted the td background to change from a light green (cause they placed the mouse over their selection) to an even lighter green. i can get all of that to happen with this code inside of the td tag:
is there any way that when the user clicks down on their choice, the background of the td stays that lighter green? ive got a very limited knowledge of javascript, and ive been having some trouble trying to explain the effect im looking for to google's search engine. many thanks in advance!! |
|
|
|
||||
|
Re: possible to manipulate onmouseout behavior?
If they are selecting their choice, you can do a check as to whether the button is selected..
eg.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: possible to manipulate onmouseout behavior?
thanks a lott!!!!
when i figured out how to work this into my code it worked like magic. many, MANY, thanks in helping me out. this forumz great! |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unordered list - strange behavior | pesho318i | Web Page Design | 9 | Dec 6th, 2007 14:19 |
| Strange form submit behavior in IE | Donny Bahama | PHP Forum | 3 | Apr 27th, 2007 19:36 |
| onMouseOut happening also between cells | clintxp | JavaScript Forum | 3 | Mar 28th, 2007 14:30 |
| Poor behavior for simple script in IE7 | masonbarge | JavaScript Forum | 4 | Feb 5th, 2007 16:19 |
| Weird Opacity behavior in PS 7 | autumn_whispers2me | Graphics and 3D | 0 | May 3rd, 2005 22:24 |