Am 03.11.2010 um 17:38 schrieb Erik Margraf: > Dear Contexters! > In the last few days I could read a few posts about > "animations" in a resulting PDF document. Some > statements mentioned java script as possible means > to create an animation. > Is it possible to do the following (which is rather > simple using html and javascript)? > > -- Have a bunch of thumbnail pictures > -- When you click on a thumbnail you see a > larger version of the same picture > -- With the next mouseclick the picture > vanishes (you see the gallery of thumbnails again) > > if yes, how? > Any hints are welcome.
Not perfect (it’s not possible to close the big pictures) but it should give you a first impression: \setupinteraction[state=start] \defineproperty [1] [layer] [state=stop,global=yes] \defineproperty [2] [layer] [state=stop,global=yes] \defineproperty [3] [layer] [state=stop,global=yes] \defineproperty [4] [layer] [state=stop,global=yes] \starttexdefinition properties \startoverlay {\startproperty[1]\overlayfigure{cow}\stopproperty} {\startproperty[2]\overlayfigure{mill}\stopproperty} {\startproperty[3]\overlayfigure{hacker}\stopproperty} {\startproperty[4]\overlayfigure{cow}\stopproperty} \stopoverlay \stoptexdefinition \defineoverlay[properties][\properties] \startTEXpage[background={foreground,properties}] \bTABLE[width=4cm,height=4cm,offset=none] \bTR \bTD \goto{\overlayfigure{cow}}[VideLayer{1}] \eTD \bTD \goto{\overlayfigure{mill}}[VideLayer{2}] \eTD \eTR \bTR \bTD \goto{\overlayfigure{hacker}}[VideLayer{3}] \eTD \bTD \goto{\overlayfigure{cow}}[VideLayer{4}] \eTD \eTR \eTABLE \stopTEXpage Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________