- 2010
to make it:
- 2010
The purpose of this is to style the current page's menu link.
Thanks mucho for your reply =) Some random link
becomes:
>> some random link
Which gives us perfect feeedback about what page are we on.
To do
How to
Dead simple:
target[x].innerHTML = ">> "+target[x].innerHTML;
for something like:
target[x].style.background = 'black';
or something similar.
If you're not styling the anchors, try the styling its parent instead (in my case it's a li element)target[x].className = 'newClass';
or its parent:
target[x].parentNode.className = 'NewClass';
and have the style defined in the css; that will keep the code as small as posible.It looks like you're new here. If you want to get involved, click one of these buttons!