e85e74463850d1bfd81f851419f4d34738038082
[mailer.git] / templates / de / html / surfbar / surfbar_frame_top.tpl
1 <table border="0" cellspacing="0" cellpadding="0" width="100%" class="surfbar_table">
2 <tr>
3         <td class="surfbar_td">
4                 &raquo;<span class="surfbar_points">$content[reward] {!POINTS!}</span> in
5                 <span id="surfbar_counter">X</span>&nbsp;<span
6                  id="counter_word">Sekunden</span>&laquo;&nbsp;&raquo;<span
7                  class="surfbar_reload">$content[curr_reload]</span> von <span
8                  class="surfbar_max">$content[max_urls]</span> im Reload&laquo;<br />
9
10                  &raquo;<a href="$content[url]" target="_blank">Aktuelle Seite in neuem
11                  Fenster &ouml;ffnen</a>&laquo;<br />&nbsp;[<a
12                   href="{!URL!}/modules.php?module=index&amp;what=logout">Ausloggen</a>|<a
13                   href="javascript:close()">Schliessen</a>]
14
15                 &raquo;{!MAIN_TITLE!} ist f&uuml;r den Inhalt nicht verantwortlich!&laquo;
16         </td>
17 </tr>
18 </table>
19 <script language="JavaScript" type="text/javascript">
20 <!--
21 var currCounter = "$content[reload]";
22 var maxCounter = "$content[reload]";
23 var counter = document.getElementById("surfbar_counter");
24 var countDown = null;
25
26 function Init() {
27         countDown = window.setInterval("StartCounter()", 1000);
28         parent.surfbar_url.location.href = "$content[url]";
29 }
30
31 function Confirm() {
32         parent.surfbar_url.location="{!URL!}/surfbar.php?id=$content[id]&check=$content[check]&salt=$content[salt]";
33 }
34
35 function ReloadThis() {
36         this.location.reload();
37 }
38
39 function StartCounter() {
40         if (currCounter < 1) {
41                 return false;
42         }
43
44         currCounter--;
45         counter.innerHTML = currCounter;
46
47         if (currCounter == 0) {
48                 clearInterval(countDown);
49                 Confirm();
50                 window.setTimeout("ReloadThis()", 500);
51         }
52 }
53
54 counter.innerHTML = $content[reload];
55 Init();
56
57 //-->
58 </script>