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 

Double Fonts

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



Joined: 11 Jun 2007
Posts: 14

PostPosted: Tue Jun 12, 2007 4:30 am    Post subject: Double Fonts Reply with quote

Thanks for taking the time to read my question.

When I do the mouseover of a menu item I'd like the font to bold. If I specify this in the css, it seems that there are 2 sets of text and the top one gets bolded while the one underneath stays the same. Really odd effect.

How do I get around this?

Brad

.js
Quote:
BLANK_IMAGE = 'images/b.gif';

var STYLE = {
/*border:0, // item's border width, pixels; zero means "none"
shadow:0, // item's shadow size, pixels; zero means "none"*/
/*color:{
border:"#666666", // color of the item border, if any
shadow:"#DBD8D1", // color of the item shadow, if any
bgON:"white", // background color for the items
bgOVER:"#B6BDD2" // background color for the item which is under mouse right now
},*/
css:{
ON:"clsCMOn", // CSS class for items
OVER:"clsCMOver" // CSS class for item which is under mouse
}

};

var STYLE2 = {
/*border:0, // item's border width, pixels; zero means "none"
shadow:0, // item's shadow size, pixels; zero means "none"*/
/*color:{
border:"#666666", // color of the item border, if any
shadow:"#DBD8D1", // color of the item shadow, if any
bgON:"orange", // background color for the items
bgOVER:"#B6BDD2" // background color for the item which is under mouse right now
},*/
css:{
ON:"clsCMOn2", // CSS class for items
OVER:"clsCMOver2" // CSS class for item which is under mouse
}

};

var MENU_ITEMS = [
{pos:[140,114], itemoff:[0,99], leveloff:[20,0], size:[22,99], blankImage:"Images/b.gif"},
{code:"Home", "url":"Index.htm", style:STYLE,
sub:[]
},
{code:"About Us", "url":"AboutUs.htm", style:STYLE, size:[22,99],
sub:[
{leveloff:[20,0], size:[22,140]},
{code:"League Board Members", "url":"LeagueBoardMembers.htm",style:STYLE2}
]
},
{code:"Philosophy", "url":"Philosophy.htm", style:STYLE, size:[22,99],
sub:[
{leveloff:[20,0], size:[22,140]},
{code:"Code Of Conduct", "url":"CodeOfConduct.htm",style:STYLE2}
]
},
{code:"Teams", "url":"Teams.htm", style:STYLE,
sub:[
{leveloff:[20,0], size:[22,99]},
{code:"CDN Teams",style:STYLE2},
{code:"US Teams",style:STYLE2}
]
},
{code:"Standings", "url":"Standings.htm", style:STYLE,
sub:[]
},
{code:"Schedule", "url":"Schedule.htm", style:STYLE,
sub:[]
},
{code:"Contact Us", "url":"ContactUs.htm", style:STYLE,
sub:[]
},
{code:"Links", "url":"Links.htm", style:STYLE,
sub:[]
}
];


.css
Quote:
div {
font-family: Tahoma, Helvetica;
}

.clsCMOn, .clsCMOver {
font-size: 16px;
padding: 2px 4px;
}

.clsCMOn {
background-color: transparent;
color: #000000;


}

.clsCMOver {
background-color: transparent;
color: #000099;
}

.clsCMOn2, .clsCMOver2 {
font-size: 12px;
padding: 2px 4px;
}

.clsCMOn2 {
background-color: #CCCCCC;
color: #000000;

}

.clsCMOver2 {
background-color: transparent;
color: #000099;

}
[/quote]
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Jun 13, 2007 12:03 pm    Post subject: Reply with quote

Add the following option to your MENU_ITEMS:
Code:
var MENU_ITEMS = [
    {pos:..., hideNormalOnRollover:true, ...
Back to top
mbrad



Joined: 11 Jun 2007
Posts: 14

PostPosted: Wed Jun 13, 2007 1:07 pm    Post subject: Reply with quote

Awesome!!! thanks so much for the reply. I'll give it a shot when I get home this evening. I'm sure it will work.

Thanks again,

Brad
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