|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Multiple functions for event
I am trying to call 2 functions with one event, onMouseOver, but am having trouble doing so. I thought a workaround might be to make a function that calls these 2 functions and then call that function from that event.
function menuFunction() { MM_reloadPage() changeImages(); MM_showHideLayers(); } is this syntax correct? Is there any way to call 2 functions from one event? This is what that code looks like right now. onMouseOver="MM_showHideLayers('Laymenu2Rest','','hide','Laymen 2House','','hide','trigVinyl','','show','trigCd',' ','show','trigRest','','show','layMen2prog','','hi de')"; "changeImages('btnCd', 'images/menu4_04-over.gif'); return true;" I can get one to work but not both. |
|
#2
|
||||
|
||||
|
Remove the two double quotes you have separating your function calls. Leave the semi-colon.
|
|
#3
|
||||
|
||||
|
alternatively, you could make a whole new function that calls the two you need...
Its a little cleaner, however it does take an extra step in execution |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Multiple functions for event |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|