/    Sign up×
Community /Pin to ProfileBookmark

calling multiple functions from on event

How do I call two seperate functions from an onMouseOver event? I want one function to be a rollover and another to be a blendTrans for a another pic to create a combined effect. Any help?

Thanks!
Jeff

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@SceironDec 10.2002 — onmouseover="javascript: functionOne(); functionTwo();"
Copy linkTweet thisAlerts:
@CharlesDec 10.2002 — [font=georgia]That should be

[font=monospace]

<a href="http://www.w3.org" [b]onmouseover="functionOne(); functionTwo()"[/b]>W3C</a>[/font]

[i]or[/i]

[font=monospace]<a href="http://www.w3.org" >W3C</a>

<script type="text/javascript">

<!--

document.links[document.links.length-1].onmouseover = function () {functionOne(); functionTwo()};

// -->

</script>

[/font]

The [font=monospace]Javascript:[/font] is an error that is ignore by most but not necessarily all browsers.[/font]
Copy linkTweet thisAlerts:
@SceironDec 10.2002 — [i]Originally posted by Charles [/i]

The [font=monospace]Javascript:[/font] is an error that is ignore by most but not necessarily all browsers.[/font][/QUOTE]


Right, I have a nasty habit of including it in event handlers for some reason. It is valid within the HREF attribute of an A tag, however.
×

Success!

Help @jeff555 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,
)...