Kod:
<html> <head> <title></title> </head> <body> <script type="text/javascript"> var Gimmick1 = new GimmickErdbeben("T1", "Gimmick1") var Gimmick2 = new GimmickSpirale("T2", "Gimmick2") var Gimmick3 = new GimmickErdbeben("T3", "Gimmick3") var Gimmick4 = new GimmickSpirale("T4", "Gimmick4") function GimmickDummyStart() { return } function GimmickErdbeben() { this.start = GimmickDummyStart } function GimmickSpirale() { this.start = GimmickDummyStart } function GimmickErdbebenStart() { if (this.running) return this.running = true this.counter = 0 if (********[this.id]) { this.pos = parseInt(********[this.id].top) setTimeout(this.name + ".end()", this.duration_effect) } else { this.pos = parseInt(window[this.id].style.posTop) setTimeout(this.name + ".end()", this.duration_effect) } } function GimmickErdbebenEnde(akt_pos) { var welle = this.hoehe * Math.sin(Math.PI * this.increment * this.counter) * ((this.max_counter - this.counter) / this.max_counter) if (********[this.id]) ********[this.id].top = this.pos + welle else window[this.id].style.posTop = this.pos + welle this.counter++ if (this.counter == this.max_counter) { if (********[this.i