Click to See Complete Forum and Search --> : calling multiple functions from on event


jeff555
12-10-2002, 02:17 PM
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

Sceiron
12-10-2002, 02:23 PM
onmouseover="javascript: functionOne(); functionTwo();"

Charles
12-10-2002, 02:33 PM
That should be

<a href="http://www.w3.org" onmouseover="functionOne(); functionTwo()">W3C</a>
or
<a href="http://www.w3.org" >W3C</a>
<script type="text/javascript">
<!--
document.links[document.links.length-1].onmouseover = function () {functionOne(); functionTwo()};
// -->
</script>

The Javascript: is an error that is ignore by most but not necessarily all browsers.

Sceiron
12-10-2002, 03:54 PM
Originally posted by Charles
The Javascript: is an error that is ignore by most but not necessarily all browsers.[/font]

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.