We are creating a new website.
We want to create the site with that iframe, which represent different parts of page, navigation, content, headers etc.
However some of our "context" is created in our navigation menu. This is that if you are a section about "About", you will tell about the button / link that this site has your place. I want to include a meta tag in each page that is similar to (or something similar)
Then I want to give an ID for all NAV menu items. The ID of the item matches the content of the 'page' meta tag, so I want to show the highlighted image to display on a regular basis.
Can you outline basic steps, maybe something Why do you do this instead of putting the code in a meta tag.
In the ready event handler of the page:
$ (document) .ready (function () {$ ("# ID_OF_MENU_FOR_THIS_PAGE"). AddClass ("CLASS_TO_HIGHLIGHT_CURRENT_MENU");});
This really works well and I'm using it regularly!
Comments
Post a Comment