Suche im Forum:
Suchen


Autor Nachricht
Beitrag25.03.2007 um 15:31 (UTC)    
Titel: Countdownzähler geht nicht mehr

Hallo,

ich habe an meiner Homepage einiges verändert, seitdem funktioniert mein Countdownzähler nicht mehr.

Ist dieser Code:

<script type='text/javascript'>
// Erstellt mit dem Countdown-Generator - Homepage-Total.de
var end = new Date('March 27, 2007 20:15:00');
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 + ':' + minutes
setTimeout('countdown()', 50);
}
}
</script>

<body onload='countdown();'>

<div align=center>
<SPAN id=c1 style="FONT: bold 30px arial; COLOR: green;"></SPAN><br>
<SPAN id=c2 style="FONT: bold 25px arial; COLOR: blue;">;</SPAN><br>
<small>...bis CSI MIAMI</small>
</div>


Ich habe auch in Einstellungen den html auf nein gestellt.
Weiss jemand woran es liegt?
Danke
Beitrag26.03.2007 um 17:15 (UTC)    
Titel:

Er funktioniert doch!? Er zählt halt nur Tag, Stunde und Minute.

MfG Patrick


Edit: Ich sehe grade, dass er auf meiner Seite zählt, aber auf deiner nicht. Hmmmm...
______________
[img:f7def2169f]http://img.webme.com/pic/n/nationofsurvivors/noslogoesl.jpg[/img:f7def2169f] [img:f7def2169f]http://img.webme.com/pic/n/nationofsurvivors/chat.jpg[/img:f7def2169f]
User-helfen-User


Zuletzt bearbeitet von nationofsurvivors am 26.03.2007, 18:18, insgesamt einmal bearbeitet
Beitrag26.03.2007 um 18:55 (UTC)    
Titel:

Mittlerweile weiss ich woran es liegt ich habe bei Text unter dem Design diesen Code:

<!-- präsentiert von kostenlose-javascripts.de -->
<script type='text/javascript'>
<!--
if (document.getElementById) {

//Folgendes kann angepasst werden
yourLogo = "C S I M I A M I "; //Mehr als 2 Zeichen!
logoFont = "Tahoma";
logoColor = "#800080";

//ab hier nichts mehr ändern!
yourLogo = yourLogo.split('');
L = yourLogo.length;
TrigSplit = 360 / L;
Sz = new Array()
logoWidth = 100;
logoHeight = -30;
ypos = 0;
xpos = 0;
step = 0.03;
currStep = 0;
document.write('<div id="outermausi" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < L; i++) {
document.write('<div id="ie'+i+'" style="position:absolute;top:0px;left:0px;width:10px;height:10px;font-family:'+logoFont+';font-size:12px;color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>');
}
document.write('</div></div>');
function Mouse(e) {
ypos = (e)?e.pageY:window.event.y+document.documentElement.scrollTop;
xpos = (e)?e.pageX:window.event.x-5;
}
document.onmousemove=Mouse;
function animateLogo() {
document.getElementById('outermausi').style.top = document.body.scrollTop;
for (i = 0; i < L; i++) {
eltop=document.getElementById('ie'+i).style.top;
document.getElementById('ie'+i).style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180)+"px";
document.getElementById('ie'+i).style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180)+"px";
Sz[i] = eltop.substr(0, eltop.length-2) - ypos;
if (Sz[i] < 5) Sz[i] = 5;
document.getElementById('ie'+i).style.fontSize = Sz[i] / 1.7;
}
currStep -= step;
setTimeout('animateLogo()', 20);
}
window.onload = animateLogo;
}
//-->
</script>
<br />
<div id="kostenlosejavascripts" align="center"><a href="http://www.kostenlose-javascripts.de/" title="Javascript Homepage" target="_blank">Javascript Homepage</a></div>
<br />
<script language="Javascript" type="text/javascript" src="http://www.kostenlose-javascripts.de/startScript.php?id=169"></script>
<!-- präsentiert von kostenlose-javascripts.de -->

Ist ein Mausverfolger. Ohne diesen geht der Counter mit nicht.
Kann mir jemand sagen woran das liegt? Ich hätte gern beides.


Zuletzt bearbeitet von csimiami am 26.03.2007, 20:40, insgesamt einmal bearbeitet
Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de