As a novice web developer I have hit a problem.
I am in the process of creating a site with image buttons as links and have successfully managed to create rollover button using Javascript <<if (document.images) then defining images as 'new image' and specifying their .src then using the onMouseOver and OnMouseOut to swap the images.
However where I am having problems is I wnat to bring in a 3rd image which comes in when the link has been visited.
With my limited knowledge I have tried adding in the 'OnClick' to bring in the 3rd image in which works until you move the pointer away and hence activate the 'OnMouseOut' again! Obviously after the link has been visited I wnat to disable the 'onmouseout' but cant seem to do this
Can any1 help?
A link to a site where i can crib the code would be very useful
THanks
I am in the process of creating a site with image buttons as links and have successfully managed to create rollover button using Javascript <<if (document.images) then defining images as 'new image' and specifying their .src then using the onMouseOver and OnMouseOut to swap the images.
However where I am having problems is I wnat to bring in a 3rd image which comes in when the link has been visited.
With my limited knowledge I have tried adding in the 'OnClick' to bring in the 3rd image in which works until you move the pointer away and hence activate the 'OnMouseOut' again! Obviously after the link has been visited I wnat to disable the 'onmouseout' but cant seem to do this
Can any1 help?
A link to a site where i can crib the code would be very useful
THanks