Start of surfbar slowed down by halt second
[mailer.git] / templates / de / html / surfbar / surfbar_frame_top.tpl
index 0717db8ce358b5c2eb4990894c928cce88e6d6b7..5562d97ce303b7cfc20b8873fa0f0ab54727b9b5 100644 (file)
@@ -25,7 +25,7 @@ var countDown = null;
 
 function Init() {
        countDown = window.setInterval("StartCounter()", 1000);
-       parent.surfbar_url.location.href = "$content[url]";
+       window.setTimeout("InitCounter()", 500);
 }
 
 function Confirm() {
@@ -36,6 +36,11 @@ function ReloadThis() {
        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 +56,6 @@ function StartCounter() {
        }
 }
 
-counter.innerHTML = $content[reload];
 Init();
 
 //-->