I want to produce my navigation in Flash it would be used for a XHTML/ CSS based site, the buttons would highlight and fade on mouseOver but I want the current active page to remain highlighted.
Can anyone point me in the right direction?
I want to produce my navigation in Flash it would be used for a XHTML/ CSS based site, the buttons would highlight and fade on mouseOver but I want the current active page to remain highlighted.
Can anyone point me in the right direction?
I want the current active page to remain highlighted
??? I don’t understand what you mean -are you referring to a Frame?
No, sorry.
The nav will have an entry (button) for each page. If the user is currently on the “About Us” page I want “About Us” to stay highlighted in the menu.
So that the user can instantly ID the current page by looking at the nav. I would also like to install some script so if the user selects the page they are already on, nothing happens (it does not reload the page)
This site has a fine example of what i mean.
it looks as though that site uses frames to change content of the main area of the site, unless you want to do things that way, I would imagine you would have to have ur flash file talk to javascript on each page that loads… maybe have a variable that is set in javascript that is different for every page, and then when the flash file loads on each page, it knows which btn to highlight because of the variable that is set.
Breakdown:
you have one swf file, the swf file reads a variable on the page it is embeded in, and goes to a certain state as a result of what the pages javascript returns.
you’ll have to accept the pseudo code I have posed here, as im not quite sure of the exact code you would need to accomplish this. However, im sure some of the AS rock stars on here could take this concept and make it work
hope that its clear enough! Later
Good article I came across here:
http://www.communitymx.com/content/article.cfm?page=2&cid=0922A
Might just be what you’re looking for.
Thank you, that will do it.
:: Copyright KIRUPA 2024 //--