Na wstępie powiem, że w przypadku formularza dopisałem w
input disabled="disabled" i działa tak jak chciałem
Ale jako, że na samym początku chciałem umieścić zegar bez formularza, zastosowałem się do podanych przez "Gargamela" instrukcji.
Jest elegancko ale teraz zniknęła mi data.
Próbowałem sobie z tym poradzić i
jak na razie kod wygląda tak
<div id="clock">
<div id="date">
<script>
year = Stamp.getYear();
if (year < 2000) year = 1900 + year;
document
.write
(Stamp
.getDate() +"/"+(Stamp
.getMonth
() + 1) + "/"+ year
);</SCRIPT>
</div>
<script>
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >24) ? hours -24 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 24) ? " " : " "
//document.clock.face.value = timeValue;
document.getElementById('clock').innerHTML = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}
// End -->
</SCRIPT>
</div>
a tu fragment kodu z szablonu CSS
#clock {
position: absolute; right:36px; top:16px;
color:#C47DD1;
border: solid 2px #1D330A;
width:30px;
}
#date{
position: absolute; right:36px; top:22px;
color:#C47DD1;
border: solid 2px #1D330A;
width:30px;
}