JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Possible to have different text colour on mouseover?

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
AntonyG
Guest





PostPosted: Tue Jul 22, 2003 11:37 am    Post subject: Possible to have different text colour on mouseover? Reply with quote

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

PostPosted: Thu Jul 24, 2003 9:41 pm    Post subject: Reply with quote

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





PostPosted: Fri Jul 25, 2003 10:04 am    Post subject: Reply with quote

Hi Gala,

I got it working using the 'ocode' function.

Many thanks! Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1