Click here to Skip to main content
15,914,165 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow to hide the extension name of the cgi application? Pin
loveabow30-Jan-11 17:42
loveabow30-Jan-11 17:42 
AnswerRe: How to hide the extension name of the cgi application? Pin
cjoki31-Jan-11 5:05
cjoki31-Jan-11 5:05 
QuestionHow do you get rid of table gaps? [modified] Pin
RachelSo30-Jan-11 12:00
RachelSo30-Jan-11 12:00 
AnswerRe: How do you get rid of table gaps? Pin
Drew Stainton30-Jan-11 13:58
Drew Stainton30-Jan-11 13:58 
GeneralRe: How do you get rid of table gaps? [modified] Pin
RachelSo30-Jan-11 15:17
RachelSo30-Jan-11 15:17 
GeneralRe: How do you get rid of table gaps? Pin
Drew Stainton30-Jan-11 16:56
Drew Stainton30-Jan-11 16:56 
QuestionSerious Site Devlopment Questions Pin
r1reddog29-Jan-11 16:51
r1reddog29-Jan-11 16:51 
AnswerRe: Serious Site Devlopment Questions Pin
Not Active30-Jan-11 6:35
mentorNot Active30-Jan-11 6:35 
GeneralRe: Serious Site Devlopment Questions Pin
cjoki31-Jan-11 5:12
cjoki31-Jan-11 5:12 
GeneralRe: Serious Site Devlopment Questions Pin
Not Active31-Jan-11 10:36
mentorNot Active31-Jan-11 10:36 
AnswerRe: Serious Site Devlopment Questions Pin
Steve Maier2-Feb-11 4:49
professionalSteve Maier2-Feb-11 4:49 
Questionhtml pointing to php Pin
Douglas Kirk26-Jan-11 6:40
Douglas Kirk26-Jan-11 6:40 
AnswerRe: html pointing to php Pin
cjoki26-Jan-11 7:40
cjoki26-Jan-11 7:40 
QuestionConceptShare Pin
Civic0626-Jan-11 3:51
Civic0626-Jan-11 3:51 
QuestionName of the file/form that called / or included an html document. Pin
Douglas Kirk25-Jan-11 9:35
Douglas Kirk25-Jan-11 9:35 
AnswerRe: Name of the file/form that called / or included an html document. Pin
TheGreatAndPowerfulOz25-Jan-11 9:48
TheGreatAndPowerfulOz25-Jan-11 9:48 
GeneralRe: Name of the file/form that called / or included an html document. Pin
Douglas Kirk25-Jan-11 9:50
Douglas 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
Gerben Jongerius25-Jan-11 20:00 
QuestionConsole-style home page? Pin
dszarkow25-Jan-11 2:32
dszarkow25-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
dszarkow25-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
Douglas Kirk24-Jan-11 21:35 
AnswerRe: Changing the CSS properties of a menu bar Pin
Gerben Jongerius25-Jan-11 0:27
Gerben 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
Douglas Kirk25-Jan-11 0:52 

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.