In my nav bar, I'd like to have a mousedown effect on each button. I looked for a way with JavaScript (on google) but couldn't find any that did what I wanted. Could somebody please post some code?
(I would like the effect to be sort of like the Apple website)
Could somebody please post some code?
(I would like the effect to be sort of like the Apple website)
I want it to change when the mouse button is pressed down. (onmousedown)
a:hover
a:active
in CSS will sort that out - you only need Javascript when you want to implement some sort of animation (without using CSS3)