Westside2004
06-03-2005, 02:44 AM
Hi,
I have this navigation that I am trying to sort of self-contain and encapsulate into one file so I can include it in all pages. It has some basic roll over images. Example:
3 links (images) all blue by default except if the user is on the page then the link is active
Home (link is orange) *user is on this page so link is orange (over state)*
About Us (link is blue)
Services (link is blue)
So if the user clicks the "About Us" link, then it turns "orange" and the other links turn blue". I can do this with some server side technique, but I am trying to use javascript.
if the page is www.abc.com/aboutus then the "about us link (image)" should know it should be in its "over state" basically orange. This holds true for all the links.
Hope I am making sense.
-Westside
I have this navigation that I am trying to sort of self-contain and encapsulate into one file so I can include it in all pages. It has some basic roll over images. Example:
3 links (images) all blue by default except if the user is on the page then the link is active
Home (link is orange) *user is on this page so link is orange (over state)*
About Us (link is blue)
Services (link is blue)
So if the user clicks the "About Us" link, then it turns "orange" and the other links turn blue". I can do this with some server side technique, but I am trying to use javascript.
if the page is www.abc.com/aboutus then the "about us link (image)" should know it should be in its "over state" basically orange. This holds true for all the links.
Hope I am making sense.
-Westside