Sie sind nicht angemeldet.

1

Dienstag, 14. Mai 2013, 09:43

How to change the parametrs of plugin?

Good day!
There are 3 hotspots (as examle):

Zitat

<hotspot name="1111"..... onclick="..." ....>
<hotspot name="2222"..... onclick="..." ....>
<hotspot name="3333"..... onclick="..." ....>
and the plugin of button:

Zitat

<plugin name="BUTTON"
...
onclick="openurl('SITE', _top)"
...
/>
How to make that the click on each hotspot, changed the address "SITE", at the plugin "BUTTON"? *sad*
With regards, Igor.

2

Dienstag, 14. Mai 2013, 11:26

Hi,

either set the whole onclick event:

Quellcode

1
2
3
<hotspot name="s1" ... onclick="set(plugin[BOTTOM].onclick, openurl('...site1...', _top) );" ... />
<hotspot name="s2" ... onclick="set(plugin[BOTTOM].onclick, openurl('...site2...', _top) );" ... />
<hotspot name="s3" ... onclick="set(plugin[BOTTOM].onclick, openurl('...site3...', _top) );" ... />


or define an attribute at the BOTTOM plugin and use and set that:

Quellcode

1
2
3
4
5
6
7
8
<hotspot name="s1" ... onclick="set(plugin[BOTTOM].site, '...site1...');" ... />
<hotspot name="s2" ... onclick="set(plugin[BOTTOM].site, '...site2...');" ... />
<hotspot name="s3" ... onclick="set(plugin[BOTTOM].site, '...site3...');" ... />

<plugin name="BOTTOM" ...
     	site="...default site..."
     	onclick="openurl(get(site), _top);"
     	/>


Best regards,
Klaus

3

Dienstag, 14. Mai 2013, 12:29

Many thanks, Klaus. *smile*
With regards, Igor.