Click to See Complete Forum and Search --> : JavaScript Question


Redeema
June 16th, 2001, 11:49 AM
hi,
I know that this post does not fit here, but I don't know who else to ask :(
My problem is, I want my visited links to have another pic like the one who haven't been visited yet, you understand? just like the change of the color via style sheet but with pics. I don't want to use cookies so if have two ideas how
to get it worked but cannot reach this. First this would be very easy: Perhaps there is a function or attribut or whatever which says if a link was visited. The second, is it possible to get the color of the text of link? then compare it with the visited links color? is this possible?

Please help

Redeema@gmx.net

poochi
June 17th, 2001, 08:39 PM
> ? just like the change of the color via style sheet but with pics.

You have to use <IMG> tag. Link tag ( <A> ) does not support image in it. Give an
id to your image tag. Whenever it's clicked, use java script to change the
"src" property. The problem is, nexttiem when you load this page, you will not get
the "visited" image.