This JavaScript-function (by Simon Lang) enables you to switch between 2 different sizes of a picture , toggled by a click:
Code:
The syntax is
&
Instead of using an external adress outside the Wiki Simon suggests to use the %INCLUDE{...}% feature by putting the JavaScript Code into an own page an reference this via %INCLUDE{...}%
Following this idea JavaScriptToggleImages JavaScriptToggleImagesPeterZumbruch contains now the code fragment which is now included via %INCLUDE{...}% . Using this method you will find in this new topic SandboxJavaScriptToggleImagesViaIncludePeterZumbruch.
Click on the picture below and enjoy!
-
-- PeterZumbruch - 02 Mar 2006
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() | onclickZoomImage.js | manage | 0.4 K | 01 Mar 2006 - 18:03 | PeterZumbruch | JavaScript source for zoomToogle |