Hey, ich habe eine Frage zu dem Code..
sry für die Noob Frage^^

aber wie mache ich das, dass anstatt

"Keep us strongDonate"

da steht; sich diese Wörter immer abwechseln :

Keep us strong
Support us
Donate

wie auf dem Bild zu sehen klappt das nicht ganz^^



Code:
------------INDEX---------------------------------------------------


<a indepth="true" href="support_001.html" class="donate"></a>
<div class="donate"><script src="random.js" type="text/javascript">
</script><a indepth="true" href="support_001.html" class="donate">Donate</a>
</div>

------------random.js---------------------------------------------------

function randomFromTo(from, to){
	return Math.floor(Math.random() * (to - from + 1) + from);
}
var x;
x = randomFromTo(1,3);
if(x==1){document.write("Keep us strong");}
if(x==2){document.write("Support us");}
if(x==3){document.write("Donate");}

------------ENDE---------------------------------------------------