Click here to Skip to main content
15,312,747 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Name of the file/form that called / or included an html document. Pin
Douglas Kirk25-Jan-11 9:50
MemberDouglas Kirk25-Jan-11 9:50 
AnswerRe: Name of the file/form that called / or included an html document. Pin
Gerben Jongerius25-Jan-11 20:00
MemberGerben Jongerius25-Jan-11 20:00 
QuestionConsole-style home page? Pin
dszarkow25-Jan-11 2:32
Memberdszarkow25-Jan-11 2:32 
AnswerRe: Console-style home page? Pin
Richard MacCutchan25-Jan-11 3:06
mveRichard MacCutchan25-Jan-11 3:06 
GeneralRe: Console-style home page? Pin
dszarkow25-Jan-11 3:20
Memberdszarkow25-Jan-11 3:20 
GeneralRe: Console-style home page? Pin
Richard MacCutchan25-Jan-11 3:28
mveRichard MacCutchan25-Jan-11 3:28 
QuestionChanging the CSS properties of a menu bar Pin
Douglas Kirk24-Jan-11 21:35
MemberDouglas Kirk24-Jan-11 21:35 
AnswerRe: Changing the CSS properties of a menu bar Pin
Gerben Jongerius25-Jan-11 0:27
MemberGerben Jongerius25-Jan-11 0:27 
Your problem is the result of you passing the ID of the LI element to the setMenu function. So all text in this LI element will change color just like you thought, except for text inside anchor tags (A).

You will need to set the color for these tags manually. You could do this using the getElementsByTagName method to obtain all A tags inside your LI tag like:
 function setMenu( id ){
   var e = document.getElementById(id); 
   e.style.backgroundColor = 0x666666;
   e.style.color = 0xFFFFFF;
   var allATags = e.getElementsByTagName('A');
}


All you would have to do then is set the color for each element in the resulting array allATags.
GeneralRe: Changing the CSS properties of a menu bar Pin
Douglas Kirk25-Jan-11 0:52
MemberDouglas Kirk25-Jan-11 0:52 
GeneralRe: Changing the CSS properties of a menu bar Pin
Gerben Jongerius25-Jan-11 3:59
MemberGerben Jongerius25-Jan-11 3:59 
QuestionLooking for development resources and suggestions Pin
Gregory Gadow24-Jan-11 6:21
MemberGregory Gadow24-Jan-11 6:21 
AnswerRe: Looking for development resources and suggestions Pin
David Mujica24-Jan-11 7:48
MemberDavid Mujica24-Jan-11 7:48 
GeneralRe: Looking for development resources and suggestions Pin
fjdiewornncalwe24-Jan-11 8:57
professionalfjdiewornncalwe24-Jan-11 8:57 
GeneralRe: Looking for development resources and suggestions Pin
Gregory Gadow24-Jan-11 11:00
MemberGregory Gadow24-Jan-11 11:00 
GeneralRe: Looking for development resources and suggestions Pin
Not Active24-Jan-11 11:59
mentorNot Active24-Jan-11 11:59 
AnswerRe: Looking for development resources and suggestions Pin
Peter_in_278024-Jan-11 12:18
professionalPeter_in_278024-Jan-11 12:18 
QuestionStrange file download issue Pin
SomeGuyThatIsMe24-Jan-11 3:29
MemberSomeGuyThatIsMe24-Jan-11 3:29 
QuestionA little Urgent: Apx (Html ) Rendering problem in Browser :Chrome Pin
T1000_20-Jan-11 16:55
MemberT1000_20-Jan-11 16:55 
AnswerCross post Pin
Not Active20-Jan-11 17:08
mentorNot Active20-Jan-11 17:08 
QuestionHow to Remove Spurious Row Padding in Table Pin
Patrick Skelton14-Jan-11 23:56
MemberPatrick Skelton14-Jan-11 23:56 
AnswerRe: How to Remove Spurious Row Padding in Table Pin
TweakBird21-Jan-11 1:20
MemberTweakBird21-Jan-11 1:20 
QuestionRe: How to Remove Spurious Row Padding in Table Pin
Patrick Skelton24-Jan-11 7:13
MemberPatrick Skelton24-Jan-11 7:13 
AnswerRe: How to Remove Spurious Row Padding in Table Pin
TweakBird24-Jan-11 8:26
MemberTweakBird24-Jan-11 8:26 
AnswerRe: How to Remove Spurious Row Padding in Table Pin
Luc Pattyn24-Jan-11 9:05
sitebuilderLuc Pattyn24-Jan-11 9:05 
AnswerRe: How to Remove Spurious Row Padding in Table Pin
Graham Breach24-Jan-11 19:56
MemberGraham Breach24-Jan-11 19:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.