Hopsel: "Wechsel" von Wörtern

Beitrag lesen

Hi scorpy!

var i = 1;  
var text = "";  
function FiveSec() {  
i++;  
if(i == 1) text = "Text1";  
if(i == 2) text = "Text2";  
if(i == 3) {  
 text = "Text3";  
 i = 0;  
}  
document.getElementById("ID").innerHTML = text;  
window.setTimeout("FiveSec()",5000);  
}

Dann brauchst du noch:
<body onLoad="window.setTimeout("FiveSec()",5000);">

und
<span id="ID">Text1</span>

Macht 20 Euro. :)

MfG Hopsel

--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)