+
1
|
list
|
skin
|
login
|
editor
α-wwwiki
::
slides
user:none
(2337 bytes)
_h1 slides _p A tool for playing with a few slides. {div {@ id="slides" style=" white-space:pre-wrap; border:1px solid; height:600px; font:bold 3em 'times new'; text-align:center; background:#444; color:white; text-shadow:0 0 8px black; "} } {input {@ type="submit" value="init" onclick="°° SLIDES = (function () { var strings = [], counter; var update = function () { if (counter == 0) { getId('prev').disabled = true; getId('next').disabled = false; } else if (counter == strings.length-1) { getId('prev').disabled = false; getId('next').disabled = true; } else { getId('prev').disabled = false; getId('next').disabled = false; } getId('slides').innerHTML = strings[counter]; } var prev = function () { counter--; update(); } var next = function () { counter++; update(); } var init = function ( n ) { for (var i=0; i < n; i++) { strings[i] = getId(i).innerHTML; } counter=0; update(); } init( 6 ); return {prev:prev, next:next }; }()); °°"}} {input {@ id="prev" type="submit" value="prev" onclick="SLIDES.prev();"}} {input {@ id="next" type="submit" value="next" onclick="SLIDES.next();"}} {hr} {div {@ style="display:none"} {div {@ id="0"} {span {@ style="font-size:2em;color:red;"}α-wiki} } {div {@ id="1"} {span {@ style="font-size:2em; color:green;"}α-wiki} {span {@ style="color:red;"}is a little wiki} } {div {@ id="2"} {span {@ style="font-size:2em; color:blue;"}α-wiki} is a little wiki {span {@ style="color:red;"}for composing} } {div {@ id="3"} {span {@ style="font-size:2em; color:yellow;"}α-wiki} is a little wiki for composing {span {@ style="color:red;"}and coding} } {div {@ id="4"} {span {@ style="font-size:2em; color:cyan;"}α-wiki} is a little wiki for composing and coding {span {@ style="color:red;"}in the cloud.} } {div {@ id="5"} {span {@ style="font-size:2em; color:magenta;"}α-wiki} is a little wiki for composing and coding in the cloud. {span {@ style="color:red;"}Welcome !} {show {@ src="data/amelie_sepia.jpg" height="100" width="400" title="Amélie Poulain loves α-wiki"}} } }