hi, ich hab des problem, dass mir joomla beim html code einfügen immer die scripts wieder rausgeschmissn werden.
mein script:
Code:<!-- var now = new Date(); var year = now.getYear(); if (year < 1900) { year += 1900; } var end = new Date("May 10, " + 2009 + " 00:00:00 GMT"); document.write(' <span id="c1"></span>'); document.write(' <span id="c2">;</span>'); document.write(''); function toSt2(n) { s = ""; if (n < 10) s += "0"; return (s + n).toString(); } function toSt3(n) { s = ""; if (n < 10) s += "00"; else if (n < 100) s += "0"; return (s + n).toString(); } function countdown() { d = new Date(); count = Math.floor(end.getTime() - d.getTime()); if(count > 0) { miliseconds = toSt3(count%1000); count = Math.floor(count/1000); seconds = toSt2(count%60); count = Math.floor(count/60); minutes = toSt2(count%60); count = Math.floor(count/60); hours = toSt2(count%24); count = Math.floor(count/24); days = count; document.getElementById('c1').innerHTML = days + ' Tage '; document.getElementById('c2').innerHTML = hours + ' Stunden ' + minutes + ' Minuten ' + seconds + ' Sekunden '; setTimeout("countdown()", 50); } } window.onload=countdown; --> </script></em>


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen