1 <table border="0" cellspacing="0" cellpadding="0" width="100%" id="surfbar_table">
4 »<span id="surfbar_points">$content[xxx],$content[xxx] {?POINTS?}</span> in
5 <span id="surfbar_counter">$content[xxx]</span> <span
6 id="surfbar_counter_word">Sekunden</span>« »<span
7 id="surfbar_reload">X</span> von <span
8 id="surfbar_max">X</span> im Reload«<br />
10 »<a href="$content[url]" target="_blank">Aktuelle Seite in neuem
11 Fenster öffnen</a>« <span id="surfbar_navi">[<a
12 href="#" onclick="return StartStopCounter();" id="start">Anhalten</a>|<a
13 target="_parent" href="{%url=login.php%}">Loginbereich</a>|<a
14 target="_parent" href="{%url=modules.ph?module=login&what=logout%}">Ausloggen</a>|<a
15 href="javascript:window.close()">Schliessen</a>]</span><br />
17 »{?MAIN_TITLE?} ist für den Inhalt nicht verantwortlich!«
21 <script type="text/javascript">
23 // @TODO Try to rewrite this JavaScript to js.php?js=surfbar_frame_top (wouldn't be easy)
24 var currCounter = "$content[reload]";
25 var maxCounter = "$content[reload]";
26 var counter = document.getElementById("surfbar_counter");
27 var points = document.getElementById("surfbar_points");
28 var reload = document.getElementById("surfbar_reload");
29 var max = document.getElementById("surfbar_max");
32 function StartStopCounter () {
33 if (countDown == null) {
35 document.getElementById("start").innerHTML = "Anhalten";
36 countDown = window.setInterval("StartCounter()", 1000);
38 document.getElementById("start").innerHTML = "Weiter";
39 window.clearInterval(countDown);
46 countDown = window.setInterval("StartCounter()", 1000);
47 window.setTimeout("InitCounter()", 500);
51 parent.surfbar_url.location="{%url=surfbar.php?id=$content[id]&check=$content[check]&salt=$content[salt]%}";
54 function ReloadThis() {
55 parent.surfbar_stats.location.reload();
56 this.location.reload();
59 function InitCounter() {
60 parent.surfbar_url.location.href = '$content[url]';
61 counter.innerHTML = '$content[reload]';
62 points.innerHTML = '$content[reward]';
63 reload.innerHTML = '$content[curr_reload]';
64 max.innerHTML = '$content[max_urls]';
67 function StartCounter() {
68 if (currCounter < 1) {
73 counter.innerHTML = currCounter;
75 if (currCounter == 0) {
76 clearInterval(countDown);
78 window.setTimeout("ReloadThis()", 500);