Click here to Skip to main content
15,886,578 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: result project Pin
Richard MacCutchan31-Jul-12 22:47
mveRichard MacCutchan31-Jul-12 22:47 
SuggestionRe: result project Pin
Kislay Raj7-Aug-12 6:16
Kislay Raj7-Aug-12 6:16 
GeneralKey Press Detection Pin
908236530-Jul-12 10:16
908236530-Jul-12 10:16 
AnswerRe: Key Press Detection Pin
Peter_in_278030-Jul-12 15:17
professionalPeter_in_278030-Jul-12 15:17 
GeneralRe: Key Press Detection Pin
908236531-Jul-12 3:33
908236531-Jul-12 3:33 
GeneralRe: Key Press Detection Pin
Pete O'Hanlon30-Jul-12 20:59
mvePete O'Hanlon30-Jul-12 20:59 
Questionhighlight the menu item according to the page Pin
Member 915215630-Jul-12 2:11
Member 915215630-Jul-12 2:11 
AnswerRe: highlight the menu item according to the page Pin
WoodenLegNamedSmith2-Aug-12 7:50
WoodenLegNamedSmith2-Aug-12 7:50 
You could do this several way such as sending a numeric ID to a javascript function that corresponds to a link in your list. When clicked, and/or the page has done a round trip read that numeric ID back into a function that highlights that link.

This is just a crude example of javascript that take an element's ID and turns its background bright Yellow.
JavaScript
function highlight(linkID)
{
  var link = document.getElementById(linkID);
  link.style.backgroundColor = "#FFFF00";
}


If you want to go about it in a STATIC way you could set up each page where the link itself has not only a CSS class definition but an ID as well, for example:

HTML
<ul class="sub-menu">
  <li id="CURRENT_PAGE"><a href="#">POP</a></li>
  <li><a href="#">Rock</a></li>
  <li><a href="#">Folk</a></li>
  <li><a href="#">Jazz</a></li>
  <li><a href="#">Country</a></li>
  <li><a href="#">Blues</a></li>
</ul>


Now define your CSS
CSS
.sub-menu { ..... }
#CURRENT_PAGE { background-color:#FFFF00; }


The choice is up to you, good luck!
I once knew a man with a wooden leg named Smith, I never asked what he named his other leg.

Questionsoap packet to be posted to WCF Pin
Anuradhaanu29-Jul-12 20:52
Anuradhaanu29-Jul-12 20:52 
Questionphp code Pin
udara198526-Jul-12 23:46
udara198526-Jul-12 23:46 
AnswerRe: php code Pin
Richard MacCutchan27-Jul-12 1:59
mveRichard MacCutchan27-Jul-12 1:59 
AnswerRe: php code Pin
Sandeep Mewara27-Jul-12 9:18
mveSandeep Mewara27-Jul-12 9:18 
GeneralRe: php code Pin
RichardGrimmer7-Sep-12 0:41
RichardGrimmer7-Sep-12 0:41 
QuestionVisual Studio Error Pin
MWRivera26-Jul-12 14:04
MWRivera26-Jul-12 14:04 
AnswerRe: Visual Studio Error Pin
Philippe Mori26-Jul-12 17:26
Philippe Mori26-Jul-12 17:26 
GeneralRe: Visual Studio Error Pin
MWRivera27-Jul-12 4:31
MWRivera27-Jul-12 4:31 
AnswerRe: Visual Studio Error Pin
WoodenLegNamedSmith2-Aug-12 7:58
WoodenLegNamedSmith2-Aug-12 7:58 
AnswerRe: Visual Studio Error Pin
Sakthivel Parasuraman2-Aug-12 23:57
Sakthivel Parasuraman2-Aug-12 23:57 
QuestionA simple contact form with validation Pin
Member 929983624-Jul-12 5:03
Member 929983624-Jul-12 5:03 
AnswerRe: A simple contact form with validation Pin
StianSandberg26-Jul-12 4:49
StianSandberg26-Jul-12 4:49 
QuestionFirst SOAP project coming up, need clarification Pin
MrAurora24-Jul-12 2:55
MrAurora24-Jul-12 2:55 
AnswerRe: First SOAP project coming up, need clarification Pin
jkirkerx24-Jul-12 8:22
professionaljkirkerx24-Jul-12 8:22 
GeneralRe: First SOAP project coming up, need clarification Pin
MrAurora25-Jul-12 0:22
MrAurora25-Jul-12 0:22 
GeneralRe: First SOAP project coming up, need clarification Pin
jkirkerx25-Jul-12 7:31
professionaljkirkerx25-Jul-12 7:31 
GeneralRe: First SOAP project coming up, need clarification Pin
MrAurora27-Jul-12 0:56
MrAurora27-Jul-12 0: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.