confused I don't know why SandboxJavaScriptToggleImagesViaIncludePeterZumbruch is working,
confused but this doesn't
confused JavaScript itself is working, see SandboxJavaScriptSwitchImagesPeterZumbruch
confused Maybe someone else finds the reason. confused

Switch Images

Code:
<!-- %INCLUDE{"Homepages.JavaScriptSwitchImages"}% -->
%INCLUDE{"%ATTACHURL%/onclickSwitchImage.js")%
<img     src="http://hades-wiki.gsi.de/pub/SimAna/PairsNov02/N_ep_em_gen4_ABC.gif" 
     onclick="switchToggle(this,
                          'http://hades-wiki.gsi.de/pub/SimAna/PairsNov02/N_ep_em_gen4_ABC.gif', 
                          'http://hades-wiki.gsi.de/pub/SimAna/PairsNov02/background_ABC.gif', 
                          'http://hades-wiki.gsi.de/pub/SimAna/PairsNov02/gen4_ABC.gif');">
The syntax is
     <img src="A" onclick="switchToggle(this,'A','B','C');">
Up to 9 sources can be used.


Click on the picture below and enjoy!

--

-- PeterZumbruch - 02 Mar 2006
Topic attachments
I Attachment Action Size Date WhoSorted ascending Comment
onclickSwitchImage.jsjs onclickSwitchImage.js manage 2.3 K 02 Mar 2006 - 17:09 PeterZumbruch JavaScript for this functionality
Topic revision: r1 - 02 Mar 2006, PeterZumbruch
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Hades Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)