I know that when you use a text hyperlink - and it already has been visited, then the color of the text is different. How can I do that with an image hyperlink? I want to change the image, if the hyperlink that it is connected to has already been visited? Help!
I believe that's the onClick event handler you are looking for if you intend on performing an action after the mouse has been clicked on a specified object (graphic, text..).
There are a number of ways to do it in javascript. It all depends on exactly what you want to accomplish. "Absorb what is useful, discard what is not. Add what is uniquely your own." - Bruce Lee - The Tao of Jeet Kune Do
I don't think usmc0311eau is looking for a pop-up button script or an onClick handler, they want to change the image after a link is visited none of these methods would do that. I don't know how to do it either so sorry for complaining then not giving an answer.
The only thing I could think of is inspecting the history to see if the page the user is on is in there but I don't know enough about the history object to say how to do that.
history.back or set a value of how many you want to go back (-2, -3), just off the top of my head. Can't remember the exact syntax..
But if you are talking about custominzing per visitor, regardless of when the return visit takes place, we are talking about cookies. Otherwise, use sessions to control that. Or is that just an ASP thing? Heh.
"Absorb what is useful, discard what is not. Add what is uniquely your own." - Bruce Lee - The Tao of Jeet Kune Do
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.