Template:PlayButtons: Difference between revisions
From Proteopedia
Jump to navigationJump to search
New page: <jmol> <jmolButton> <script>if (_animating); anim pause; set echo off; endif; frame rewind; set echo frNr 100% 100%; set echo frNr right; font echo 16 sans; t_frNr = "" + _currentModelNumb... |
buttons to move across frames |
||
| Line 2: | Line 2: | ||
<jmolButton> | <jmolButton> | ||
<script>if (_animating); anim pause; set echo off; endif; | <script>if (_animating); anim pause; set echo off; endif; | ||
anim mode once; | |||
frame rewind; | frame rewind; | ||
set echo frNr 100% 100%; | set echo frNr 100% 100%; | ||
| Line 9: | Line 10: | ||
echo @t_frNr; | echo @t_frNr; | ||
</script> | </script> | ||
<text> | <text>⏮</text> | ||
</jmolButton> | </jmolButton> | ||
<jmolButton> | <jmolButton> | ||
<script>if (_animating); anim pause; set echo off; endif; | <script>if (_animating); anim pause; set echo off; endif; | ||
anim mode once; | |||
frame previous; | frame previous; | ||
set echo frNr 100% 100%; | set echo frNr 100% 100%; | ||
| Line 24: | Line 26: | ||
<jmolButton> | <jmolButton> | ||
<script>if (_animating); anim pause; set echo off; endif; | <script>if (_animating); anim pause; set echo off; endif; | ||
anim mode once; | |||
frame next; | frame next; | ||
set echo frNr 100% 100%; | set echo frNr 100% 100%; | ||
| Line 35: | Line 38: | ||
<jmolButton> | <jmolButton> | ||
<script>if (_animating); anim pause; set echo off; endif; | <script>if (_animating); anim pause; set echo off; endif; | ||
frame | anim mode once; | ||
frame last; | |||
set echo frNr 100% 100%; | set echo frNr 100% 100%; | ||
set echo frNr right; | set echo frNr right; | ||
| Line 42: | Line 46: | ||
echo @t_frNr; | echo @t_frNr; | ||
</script> | </script> | ||
<text> | <text>⏭</text> | ||
</jmolButton> | </jmolButton> | ||
</jmol> | </jmol> | ||
Latest revision as of 19:39, 22 January 2022