You are not logged in.

1

Sunday, October 3rd 2010, 9:09pm

Multiple actions

Probably a stupid question but can't find an example but I'm assuming that you can launch multiple actions with an onclick command i.e. onclick="action(showhelp,img_nav), (openimage,img_map);"

If this is not correct is there a solution because this way doesn't seem to work. - or would you just have multiple onclick commands?

Thanks

Robert

Stoney

Trainee

Posts: 119

Location: Portland, Oregon

  • Send private message

2

Monday, October 4th 2010, 12:58am

You separate multiple commands using a semicolon inside of quotes

You separate multiplle expressions using a semicolon. Actions are called like functions.

Source code

1
2
3
4
5
6
7
8
9
<action name="foobar"
...
</action>

<hotspot name="empollon_001"
...
onclick="foobar();set(hotspot[fulano].visible,true);set(plugin[descapotable].abierto,true)"
...
</hotspot>

Similar threads