Warning: Can't find topic Homepages.JavaScriptToggleImages

Toggle Image Size

  • By including the topic JavaScriptToggleImages via %INCLUDE{...}% this JavaScript-function (by Simon Lang) enables you to switch between 2 different sizes of a picture, toggled by a click:

Code:
%INCLUDE{"Homepages.JavaScriptToggleImages"}%

<img src="http://hades-wiki.gsi.de/pub/SimAna/PairsNov02/N_ep_em_gen4_ABC.gif"
width='500px' height="200px" onclick="zoomToggle('200px','200px','500px','500px',this);">
The syntax is
     <img src="A" onclick="zoomToggle('iWideSmall','iHighSmall','iWideLarge','iHighSmall',this);">

Click on the picture below and enjoy!

-

-- PeterZumbruch - 02 Mar 2006
Edit | Attach | Print version |  PDF | History: r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r1 - 2006-03-02, 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)