Click to See Complete Forum and Search --> : Does anyone know how to do this?


szuwei
11-17-2009, 12:07 PM
I have a Go.gif image. The full image dimensions are 75x40px

http://www.badongo.com/pic/7762055

The HTML for this button is

<a id="lnkGo" href="#">Go</a>

How can I:

1. Implement a CSS-only of the button with a hover state (the dark blue is the hover state)
2. Use CSS for the initial state but jQuery for the hover state

chaz2290
11-17-2009, 07:24 PM
Can I ask why so I can maybe give you a different way to do this as I can't see the advantage of using JS and CSS here?

Kor
11-18-2009, 09:40 AM
2. Use CSS for the initial state but jQuery for the hover state
What? :eek: CSS is a style sheet language while JQuery is a JavaScript library (framework). How could be state of an object CSS initial and JQuery on hover? Can you use the proper notions, please? Detail your aim.