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{"Personalpages.JavaScriptSwitchImagesPeterZumbruch"}% -->
%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 Who Comment
onclickSwitchImage.jsjs onclickSwitchImage.js manage 2.3 K 2006-03-02 - 17:09 PeterZumbruch JavaScript for this functionality
Topic revision: r2 - 2006-08-24, 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 GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)