/    Sign up×
Community /Pin to ProfileBookmark

OnMouseOver within FORM

Hi Guys! ?

I would appreciate any help on this, as I am puzzled.

I am trying to get two buttons in one of my form to change on a mouseover, the form won’t let me use the normal onmouseover & onmouseout. Is there any way around it, or should I use a different syntax?

Button1:

[CODE]<input type=”image” value=”1″ name=”useful” src=”/images/yes.gif” border=”0″ width=”34″ height=”16″ align=”absmiddle”>[/CODE]

Button2:

[CODE]<input type=”image” value=”1″ name=”notuseful” src=”/images/no.gif” border=”0″ width=”34″ height=”16″ align=”absmiddle”>[/CODE]

In a normal HTML file it works perfectly like this:

[CODE]<a href=”/useful.php” onmouseover=”chkVer(‘yes’,’yesover’)” onmouseout=”chkVer(‘yes’,’yesout’)” width=”34″ height=”16″><img name=”yes” border=”0″ src=”images/yes.gif” /></a>–>[/CODE]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 29.2006 — &lt;input type="image" src="/images/yes.gif" onmouseover="this.src='/images/no.gif';" onmouseout="this.src='/images/yes.gif';" alt=""&gt;
Copy linkTweet thisAlerts:
@madskauthorJan 29.2006 — Awesome, thanks a lot! It worked like a charm!

? ? ? I appreciate it!
×

Success!

Help @madsk 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.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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