X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=templates%2Fde%2Fhtml%2Fsurfbar%2Fsurfbar_frame_top.tpl;h=13377cde2efa2941ef67a86a25d13967784975b1;hp=e85e74463850d1bfd81f851419f4d34738038082;hb=23f39916099dad094d2d2b0fe54d335bddc986db;hpb=105acbe19037f756a0902e990836133bcd993d13 diff --git a/templates/de/html/surfbar/surfbar_frame_top.tpl b/templates/de/html/surfbar/surfbar_frame_top.tpl index e85e744638..13377cde2e 100644 --- a/templates/de/html/surfbar/surfbar_frame_top.tpl +++ b/templates/de/html/surfbar/surfbar_frame_top.tpl @@ -2,15 +2,17 @@ »$content[reward] {!POINTS!} in - X $content[xxx] Sekunden« »$content[curr_reload] von $content[max_urls] im Reload«
- »Aktuelle Seite in neuem - Fenster öffnen«
 [Ausloggen|Schliessen] + »Aktuelle Seite in neuem + Fenster öffnen« [Anhalten|Loginbereich|Ausloggen|Schliessen]
»{!MAIN_TITLE!} ist für den Inhalt nicht verantwortlich!« @@ -23,9 +25,22 @@ var maxCounter = "$content[reload]"; var counter = document.getElementById("surfbar_counter"); var countDown = null; +function StartStopCounter () { + if (countDown == null) { + // Start counter + document.getElementById("start").innerHTML = "Anhalten"; + countDown = window.setInterval("StartCounter()", 1000); + } else { + document.getElementById("start").innerHTML = "Weiter"; + window.clearInterval(countDown); + countDown = null; + } + return false; +} + function Init() { countDown = window.setInterval("StartCounter()", 1000); - parent.surfbar_url.location.href = "$content[url]"; + window.setTimeout("InitCounter()", 500); } function Confirm() { @@ -33,9 +48,15 @@ function Confirm() { } function ReloadThis() { + parent.surfbar_stats.location.reload(); this.location.reload(); } +function InitCounter() { + parent.surfbar_url.location.href = "$content[url]"; + counter.innerHTML = $content[reload]; +} + function StartCounter() { if (currCounter < 1) { return false; @@ -51,7 +72,6 @@ function StartCounter() { } } -counter.innerHTML = $content[reload]; Init(); //-->