Skip to main content
Inspiring
August 6, 2008
Question

2 javascript triggers from one mouseover event

  • August 6, 2008
  • 1 reply
  • 288 views
what is the syntax for and is it possible to create 2 javascript triggers from one mouseover event for the same html element as follows:

<td><a href="javascript:;"
onmouseover="MM_showHideLayers('Layer3','','show');
onmouseover="cshowBigImage( 'imagescript.asp?path=<%= coloursAtt1("url_img") %>&width=20','<%= coloursAtt1("url_img") %>','<%= coloursAtt1("alt_img") %>' )"
</td>
This topic has been closed for replies.

1 reply

Inspiring
August 6, 2008
Just sperate them with a semi-colon:

<td><a href="javascript:;"
onmouseover="MM_showHideLayers('Layer3','','show');cshowBigImage('imagescript.asp?path=<%=
coloursAtt1("url_img") %>&width=20','<%= coloursAtt1("url_img") %>','<%=
coloursAtt1("alt_img") %>')">Link</a></td>

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com


"aonefun" <webforumsuser@macromedia.com> wrote in message
news:g7b3vg$8if$1@forums.macromedia.com...
> what is the syntax for and is it possible to create 2 javascript triggers
> from
> one mouseover event for the same html element as follows:
>
> <td><a href="javascript:;"
> onmouseover="MM_showHideLayers('Layer3','','show');
> onmouseover="cshowBigImage( 'imagescript.asp?path=<%=
> coloursAtt1("url_img")
> %>&width=20','<%= coloursAtt1("url_img") %>','<%=
> coloursAtt1("alt_img")
> %>' )"
> </td>
>