I am having difficulty making a mousedown/mouseup event for one symbol. I'm trying to make a button, and I have one image of the button with a shadow, which represents when it is inactive, and another image of the button without the shadow to show that it is active. The two images are layered with the shadowed image on top. What I'm trying to do is insert some code that says when mousedown, hide the shadowed image, and when mouseup, show the shadowed image. However, nothing happens when I mouseup; the shadowed image never reappears. How do I fix this?
Layered images, hiding and showing...
Why not just use CSS to modify it how you want?
[URL="http://codepen.io/anon/pen/fioKy"]http://codepen.io/anon/pen/fioKy[/URL]
*UPDATE* I figured it out after something just clicked in my head. Thanks though :)
Sorry, you need to Log In to post a reply to this thread.