Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b65a230d

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

  • ID b65a230d60e86d2c18a3ab7222379905aea5ecd7
  • Vorgänger 3cbc223a
  • Nachfolger 7e9a98a0

Tabs aus *.pl Dateien entfernt.

Unterschiede anzeigen:

bin/mozilla/kopf.pl
65 65
var thistime = hours+":"+minutes
66 66

  
67 67
function writeclock() {
68
	i_clock++
69
	if (document.all \|\| document.getElementById \|\| document.layers) {
70
		clockid[i_clock]="clock"+i_clock
71
		document.write("<font family=arial size=2><span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span></font>")
72
	}
68
  i_clock++
69
  if (document.all \|\| document.getElementById \|\| document.layers) {
70
    clockid[i_clock]="clock"+i_clock
71
    document.write("<font family=arial size=2><span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span></font>")
72
  }
73 73
}
74 74

  
75 75
function clockon() {
76
	thistime= new Date()
77
	hours=thistime.getHours()
78
	minutes=thistime.getMinutes()
79
	seconds=thistime.getSeconds()
80
	if (eval(hours) <10) {hours="0"+hours}
81
	if (eval(minutes) < 10) {minutes="0"+minutes}
82
	if (seconds < 10) {seconds="0"+seconds}
83
	//thistime = hours+":"+minutes+":"+seconds
84
	thistime = hours+":"+minutes
76
  thistime= new Date()
77
  hours=thistime.getHours()
78
  minutes=thistime.getMinutes()
79
  seconds=thistime.getSeconds()
80
  if (eval(hours) <10) {hours="0"+hours}
81
  if (eval(minutes) < 10) {minutes="0"+minutes}
82
  if (seconds < 10) {seconds="0"+seconds}
83
  //thistime = hours+":"+minutes+":"+seconds
84
  thistime = hours+":"+minutes
85 85

  
86
	if (document.all) {
87
		for (i=0;i<=clockid.length-1;i++) {
88
			var thisclock=eval(clockid[i])
89
			thisclock.innerHTML=thistime
90
		}
91
	}
86
  if (document.all) {
87
    for (i=0;i<=clockid.length-1;i++) {
88
      var thisclock=eval(clockid[i])
89
      thisclock.innerHTML=thistime
90
    }
91
  }
92 92

  
93
	if (document.getElementById) {
94
		for (i=0;i<=clockid.length-1;i++) {
95
			document.getElementById(clockid[i]).innerHTML=thistime
96
		}
97
	}
98
	var timer=setTimeout("clockon()",60000)
93
  if (document.getElementById) {
94
    for (i=0;i<=clockid.length-1;i++) {
95
      document.getElementById(clockid[i]).innerHTML=thistime
96
    }
97
  }
98
  var timer=setTimeout("clockon()",60000)
99 99
}
100 100
window.onload=clockon
101 101
//-->
......
107 107
<body bgcolor="#ffffff" text="#ffffff" link="#ffffff" vlink="#ffffff" alink="#ffffff" topmargin="0" leftmargin="0"  marginwidth="0" marginheight="0" style="background-image: url('image/fade.png'); background-repeat:repeat-x;">
108 108

  
109 109
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
110
	<tr>
111
		<td  style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> &nbsp; [<a href="JavaScript:top.main_window.print()">| . $locale->text('drucken') . qq|</a>]</td>
112
		<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
110
  <tr>
111
    <td  style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> &nbsp; [<a href="JavaScript:top.main_window.print()">| . $locale->text('drucken') . qq|</a>]</td>
112
    <td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
113 113
  . $login . $datum . qq| <script>writeclock()</script>&nbsp;
114
		</td>
115
	</tr>
114
    </td>
115
  </tr>
116 116
</table>
117 117
</body>
118 118
</html>

Auch abrufbar als: Unified diff