Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
dass bei Mousesberührung zitteret
function startTremble (mc, strength) {
mc.initx = mc._x;
mc.inity = mc._y;
mc.strength = strength;
mc.onEnterFrame = function () {
var x = Math.random()*this.strength- Math.random()*(this.strength*2);
var y = Math.random()*this.strength- Math.random()*(this.strength*2);
this._x = this.initx+x;
this._y = this.inity+y;
}
}
function stopTremble (mc) {
delete mc.onEnterFrame;
delete mc.initx, mc.inity, mc.strength;
}
function startTremble (mc, strength) {
mc.initx = mc._x;
mc.inity = mc._y;
mc.strength = strength;
mc.onEnterFrame = function () {
var x = Math.random()*this.strength- Math.random()*(this.strength*2);
var y = Math.random()*this.strength- Math.random()*(this.strength*2);
this._x = this.initx+x;
this._y = this.inity+y;
}
}
function stopTremble (mc) {
delete mc.onEnterFrame;
delete mc.initx, mc.inity, mc.strength;
}
_root.viereck_mc.onRollOver = function() {
startTremble (_root.viereck_mc, 5);
}
_root.viereck_mc.onRollOut = function() {
function stopTremble (_root.viereck_mc);
}
viereck_mc.onRollOver = function() {
_root.startTremble (this, 5);
}
viereck_mc.onRollOut = function() {
_root.stopTremble (this);
}