dhtml question
- Started
- Last post
- 3 Responses
- re_4m
im using an image for a button on my menu. im using onmouseover and onmouseout with this image (to change colors). when the user clicks on image, the image will be crossed out and the iframe's content will change. but when the user moves his mouse away, the image returns to its orginal state instead of being crossed out. how can i keep the image crossed out until the user clicks on another image? should i make a function in js?
- infect0
it'll take you less time to just make a javascript to do it. i don't think the functionality you need can be found in dhtml alone.
- joyride0
ummmm. dhtml is javascript!
- gabriel_pc0
include in the function for swapping the image a check to see if it's been clicked. just give the anchor object a property like "beenvisited" or something, then set that to true when the user clicks it. email me if you need a better explanation.