Sample 7 - Calling up JavaScript functions

This example shows how to call up JavaScript functions outside of the animation.
Control and appearance of the Stack are effected entirely via the XML file 3dstack.xml (Help File).




Settings in 3dstack.xml:
- <JSFunction><![CDATA[MyFunction('Mask')]]></JSFunction>

Please note: If you set the token :afterclick: in front of the function name, the JavaScript function will be called up after(!) all effects (see helpfile) have been carried out.
Example: <JSFunction><![CDATA[:afterclick:MyFunction('Mask')]]></JSFunction>


Settings in ClickMe.htlm:
<script type="text/javascript">
  function MyFunction(p1){
    alert("You have clicked on image: " + p1);
  }
</script>