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*

  • Hi,

    either set the whole onclick event:

    Code
    <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:

    Code
    <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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!