/    Sign up×
Community /Pin to ProfileBookmark

Does anyone know if this is even possible

I have a rate bar that consists of 10 images, 1-10

[code=html]<td><input TYPE=”image” src=”images/rate/1.gif” class=“ratebutton” NAME=”rating” VALUE=”1″></td>[/code]

However i want the image to change when the mouse hovers over an image

I want 1.gif to change to 1s.gif and so on…

Can this be done taking into account the above format the way the images are being used (used to submit ratings)?

Thanks in advance

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoApr 26.2007 — Yes, it an be done. Just have the onmouseover method of the input call a functoin that changes its src based on its current src. or you can use CSS.
×

Success!

Help @oo7ml 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...