<script type="text/javascript">
<!--
-var Timer = "$content[time]";
+var timer = "$content[time]";
-function Init() {
- var Counter = window.setInterval("StartCounter()", 1000);
+function init() {
+ var Counter = window.setInterval("startCounter()", 1000);
}
-function StartCounter() {
- if (Timer < 1) {
+function startCounter() {
+ if (timer < 1) {
return false;
}
- Timer--;
- document.confirm.counter.value = Timer;
- if (Timer == 0) {
- document.location.href="{?URL?}/mailid_top.php?userid=$content[userid]&$content[type]=$content[data]&mode=confirm&code=$content[rand]";
+ timer--;
+ document.confirm.counter.value = timer;
+ if (timer == 0) {
clearInterval(Counter);
+ document.location.href = '{%url,js=mailid_top.php?userid=$content[userid]&$content[type]=$content[data]&do=confirm&code=$content[rand]%}';
}
}
//-->
</script>
-<table border="0" cellspacing="0" cellpadding="0" class="member_mailidtop">
+<table border="0" cellspacing="0" cellpadding="0" class="mailid_table">
<tr>
<td width="220" align="center">
- <table border="0" cellspacing="0" cellpadding="0" width="200" class="member_confirm dashed">
+ <table border="0" cellspacing="0" cellpadding="0" class="form_submit dashed">
<tr>
<td align="center">
- <form accept-charset="utf-8" name="confirm" style="margin-top: 0px; margin-bottom: 0px">
- {--MEMBER_TIME_COUNTER_1--} <input type="text" name="counter"
- size="$content[tim2]" readonly class="member_normal"
- value="$content[time]"> {--_SECONDS--}
- {--MEMBER_TIME_COUNTER_2--}</form>
+ <form accept-charset="UTF-8" name="confirm" style="margin-top: 0px;margin-bottom:0px">
+ {--MEMBER_TIME_COUNTER_1--}
+ <input type="text" class="form_field" name="counter" size="$content[tim2]" readonly="readonly" value="$content[time]" />
+ {--MEMBER_TIME_COUNTER_2--}
+ </form>
</td>
</tr>
</table>
</td>
<td align="center">
- <table border="0" cellspacing="0" cellpadding="0" class="member_banner dashed">
- <tr>
- <td align="center">$content[banner]</td>
- </tr>
- </table>
+ <div class="banner dashed">
+ $content[banner]
+ </div>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
-document.confirm.counter.value = Timer;
-Init();
+document.confirm.counter.value = timer;
+init();
//-->
</script>