/    Sign up×
Community /Pin to ProfileBookmark

Does anyone know how to do this?

I have a Go.gif image. The full image dimensions are 75x40px

[url]http://www.badongo.com/pic/7762055[/url]

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

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@chaz2290Nov 18.2009 — 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?
Copy linkTweet thisAlerts:
@KorNov 18.2009 — 
2. Use CSS for the initial state but jQuery for the hover state[/QUOTE]

What? :eek: [B]CSS[/B] is a [I]style sheet language[/I] while [B]JQuery[/B] is a [I]JavaScript library[/I] (framework). How could be state of an object CSS [I]initial[/I] and JQuery [I]on hover[/I]? Can you use the proper notions, please? Detail your aim.
×

Success!

Help @szuwei spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,
)...