JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
AntonyG Guest
|
Posted: Tue Jul 22, 2003 11:37 am Post subject: Possible to have different text colour on mouseover? |
|
|
Hi,
I have a coolmenupro menu which is working nicely but would like to have the currently selected option appear with different coloured text.
At present, the drop-down displays silver background with black text, and on mouseover, I'd like it to display magenta background with white text. I have the magenta colour working fine, but can't figure out a way to get the text colour to change.
Thanks in advance for any assistance,
Antony |
|
| Back to top |
|
 |
Gala Support Team
Joined: 21 Jul 2003 Posts: 12
|
Posted: Thu Jul 24, 2003 9:41 pm Post subject: |
|
|
Hello!
To set color for the text on mouseover, in the .css file for class
that discribes style of text you should write:
| Code: | | .someclass a:hover{color: white;} |
Also, you can use "ocode" field in the menuitems.js file:
| Code: | | {'code':'My text', 'ocode':'<span style="color: magenta">My text</span>', ... |
Good luck! |
|
| Back to top |
|
 |
AntonyG Guest
|
Posted: Fri Jul 25, 2003 10:04 am Post subject: |
|
|
Hi Gala,
I got it working using the 'ocode' function.
Many thanks!  |
|
| Back to top |
|
 |
|
|