![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 286 Pomógł: 12 Dołączył: 23.11.2006 Skąd: WL Ostrzeżenie: (0%) ![]() ![]() |
Mam taki kod który zaczyna sie od 8 godzin 19 minut i konczy na zerze ale jak zrobić aby po odświrzeniu się nie resetował?!?!?!?
<?php </script><script language="javascript">var time = "0";var Marker = "false";timera = new Array();timerb = new Array();countdown();function setDivText( c1, text) { document.getElementById(c1).innerHTML=text;}function addTimer(seconds, divName, url) { // 3 Sekunden dazu timera[timera.length] = seconds; timerb[timerb.length] = divName; var url = url;}function countdown() {//alert(location); for (i=0; i<timera.length;i++) { if (timera[i] > 0) { if (--timera[i] > 0) { lSeconds = timera[i]%60; // bisserl komplizierte Formatierung lMinutes = Math.floor(timera[i] / 60); lHours = Math.floor(lMinutes / 60); lMinutes%=60; lHours= ((lHours<10)?"0":"") + (lHours); lMinutes= ((lMinutes<10)?"0":"") + (lMinutes); lSeconds =((lSeconds<10)?"0":"") + (lSeconds); if(lMinutes>=59 && lSeconds>=0){setDivText(timerb[i], "<span><b>( " + lHours + ":" + lMinutes + ":" + lSeconds +" )</b></span>");} else{setDivText(timerb[i], "<span><b>( " + lHours + ":" + lMinutes + ":" + lSeconds +" )</b></span>");} } else { //setDivText(timerb[i], "<span class='rot'>bereit</span>"); timera[i] += time; // als 'wieder frei' markieren window.location.href = location; } } else { //setDivText(timerb[i], "<span class='rot'>bereit</span>"); timera[i] += time; // als 'wieder frei' markieren window.location.href = location; } } setTimeout("countdown()", 1000);}function confirm_delete_cat(text,loc) { if (confirm(text)) { /* sehende Seite */ location.href = loc; }}function neuesFenster(URL,Name,Stats) { window.open(URL,Name,Stats)}function CheckboxenAktivieren(field) { if(Marker=="false") { if(field.length){ for(i=0; i<field.length; i++) { field[i].checked = true; } } else{ field.checked = true; } Marker = "true"; return "Alle De-Markieren"; } else { if(field.length){ for(i=0; i<field.length; i++) { field[i].checked = false; } } else{ field.checked = false; } Marker = "false"; return "Alle Markieren"; }}</script><script language="JavaScript">function gamepay_item(url) { var new_win = window.open(url,'Gamepay',& #39;resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=yes,width=820 ,height=800,top=0,left=0'); new_win.focus(); }</script> <p><span id="4000"><script type="text/javascript">addTimer(28684,4000);</script></span></td></tr></table> ?> Ten post edytował szmerak 1.02.2007, 14:17:22 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 253 Pomógł: 1 Dołączył: 12.04.2006 Ostrzeżenie: (0%) ![]() ![]() |
~szmerak po pierwsze użyj BBCode bo nikt Ci inaczej nie pomoże ponieważ kod jest straszliwie
nieczytelny i dość dziwnie wycięty z jakiejś strony. A dodatkowo nawet jeśli ktoś kto che Ci pomóc i skopiuje kod do edytora to już w 3 linij kodu skomentuje mu ponad płowe skryptu a ostatnie to nie jest php tylko JavaScript więc nie wiem po co znaczniki <?php na początku i na końcu ?>. Pozdrawiam! ![]() Ten post edytował Mike122 1.02.2007, 16:15:39 -------------------- |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 18:04 |