I’m no css guru so I think this is a simple problem…
I have the dolphin css menu that I got from 13 styles.com . I want to get the menu to highlight the active page by changing the image used in the menu.
The 13 styles page says:
How do I get the class to change based on the current page?
ice1000:
I’m no css guru so I think this is a simple problem…
I have the dolphin css menu that I got from 13 styles.com . I want to get the menu to highlight the active page by changing the image used in the menu.
The 13 styles page says:
How do I get the class to change based on the current page?
See this line in the code in the example?
<li><a href="http://www.13styles.com" title="css menus" class="current"><span>About Us</span></a></li>
You will have to manually insert the class=“current” for the correct page manually, or if you are using dynamic code with SSIs, PHP, or similar, you will need to add logic to your code.
Duckster:
See this line in the code in the example?
<li><a href="http://www.13styles.com" title="css menus" class="current"><span>About Us</span></a></li>
You will have to manually insert the class=“current” for the correct page manually, or if you are using dynamic code with SSIs, PHP, or similar, you will need to add logic to your code.
Do you know of a site that has samples of code that can dynamically change the class=“current”?
Are you talking SSIs, PHP, ASP, or what?
vbscript or javascript. client side script.