Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b17ce5e1

Von Sven Schöling vor fast 18 Jahren hinzugefügt

  • ID b17ce5e150238ae510751a9b1cec590c259b9c98
  • Vorgänger 3a280667
  • Nachfolger 62a8aa81

und für das javascript menue

Unterschiede anzeigen:

bin/mozilla/menunew.pl
100 100
  print qq|
101 101
<script type="text/javascript">
102 102
<!--
103
var clockid=new Array()
104
var clockidoutside=new Array()
105
var i_clock=-1
106
var thistime= new Date()
107
var hours= | . $Stunden . qq|;
108
var minutes= | . $Minuten . qq|;
109
var seconds= | . $Sekunden . qq|;
110
if (eval(hours) <10) {hours="0"+hours}
111
if (eval(minutes) < 10) {minutes="0"+minutes}
112
if (seconds < 10) {seconds="0"+seconds}
113
//var thistime = hours+":"+minutes+":"+seconds
114
var thistime = hours+":"+minutes
115

  
116
function writeclock() {
117
	i_clock++
118
	if (document.all \|\| document.getElementById \|\| document.layers) {
119
		clockid[i_clock]="clock"+i_clock
120
		document.write("<font family=arial size=2><span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span></font>")
121
	}
122
}
123

  
103
var h=$Stunden; var m=$Minuten; var s=$Sekunden;
124 104
function clockon() {
125
	thistime= new Date()
126
	hours=thistime.getHours()
127
	minutes=thistime.getMinutes()
128
	seconds=thistime.getSeconds()
129
	if (eval(hours) <10) {hours="0"+hours}
130
	if (eval(minutes) < 10) {minutes="0"+minutes}
131
	if (seconds < 10) {seconds="0"+seconds}
132
	//thistime = hours+":"+minutes+":"+seconds
133
	thistime = hours+":"+minutes
134

  
135
	if (document.all) {
136
		for (i=0;i<=clockid.length-1;i++) {
137
			var thisclock=eval(clockid[i])
138
			thisclock.innerHTML=thistime
139
		}
140
	}
141

  
142
	if (document.getElementById) {
143
		for (i=0;i<=clockid.length-1;i++) {
144
			document.getElementById(clockid[i]).innerHTML=thistime
145
		}
146
	}
147
	var timer=setTimeout("clockon()",60000)
105
  s=++s%60;if(s==0){m=++m%60;if(m==0)h=++h%24;}
106
  document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m)+":"+(s<10?'0'+s:s);
107
  var timer=setTimeout("clockon()", 1000);
148 108
}
149
//window.onload=clockon
109
window.onload=clockon
150 110
//-->
151 111
</script>
152 112
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
153
	<tr>
154
		<td  style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> &nbsp; [<a href="JavaScript:top.main_window.print()">drucken</a>]</td>
155
		<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
156
    . $login . $datum . qq| <script>writeclock()</script>&nbsp;
157
		</td>
158
	</tr>
113
  <tr>
114
    <td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> &nbsp; [<a href="JavaScript:top.main_window.print()">drucken</a>]</td>
115
    <td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>
116
      $login $datum <span id='clock_id' style='position:relative'></span>&nbsp;
117
    </td>
118
  </tr>
159 119
</table>
160 120
|;
161 121
}

Auch abrufbar als: Unified diff