rogerdodger
August 26th, 2002, 12:04 PM
Please Help: I want to use images instead of text for menu items on a navigation bar. Problem is when a visitor clicks on a menu image- 'news' for example, and then returns to the mainpage, the image(link) does not indicate that it has been clicked(visited). What I'd like to do is have a swapped image appear when a user returns to the main page to indicate that the original image was clicked. Any ideas on how I might accomplish this are greatly appreciated.
Thanks,
Roger Dodger
Manish Malik
September 1st, 2002, 04:52 PM
Do you want to do that for all menu items?...so that all the items the user visited in that particular session would appear differently? If yes, you can easily do that by using session-variables in your server-side language (ASP,etc.) In this way, you can even keep a track of which pages the user has visited in the currently open window.
If you want to do this _only_ for that specific menu item that corresponds to the page the user is returning from (e.g. if the user is retuning from example.com/samples.htm, then the "samples" menu item would appear differently), you can trick this one out using the HTTP referrer fields too (although this method is not fool-proof).