Roni: Randoomfunktion für Links???

Beitrag lesen

hallo leute,

kann mir jemand helfen meinen traum zu erfüllen?

du must scho einiges selbst machen

zb: onMouseDown="javascript:zufall()"

function zufall()
{
//erzeugt eine Zufalsszahl ->Math.random();
http://de.selfhtml.org/javascript/objekte/math.htm#random
//in einem Array hast du irgendwie deine verschiedenen links
//die zufallszahl entspricht einem der links
http://de.selfhtml.org/javascript/objekte/array.htm

und mit z.B. window.location.href = "Ziel aus array";
http://de.selfhtml.org/javascript/objekte/location.htm#href

erfüllt sich dein Traum (vielleicht).

}

Gruss Roni