hi all, ich hab mit java leider nix am hut.
ich möchte nur ab einer bestimmten zeit zb. 23:59 das er zur eine anderen seite springt.
www.schiessmichtod.de zb.
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript">
<!-- Verstecken fuer aeltere Browser --
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >24) ? hours -24 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock () {
stopclock();
showtime();
}
// --End Hiding Here -->
</SCRIPT>
<TITLE>Digitaluhr</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" onLoad="startclock()">
<FORM name="clock" onSubmit="0">
<INPUT type="text" name="face" size=5 value="">
</FORM>
</BODY>
</HTML>
ich möchte nur ab einer bestimmten zeit zb. 23:59 das er zur eine anderen seite springt.
www.schiessmichtod.de zb.
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript">
<!-- Verstecken fuer aeltere Browser --
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >24) ? hours -24 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock () {
stopclock();
showtime();
}
// --End Hiding Here -->
</SCRIPT>
<TITLE>Digitaluhr</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" onLoad="startclock()">
<FORM name="clock" onSubmit="0">
<INPUT type="text" name="face" size=5 value="">
</FORM>
</BODY>
</HTML>
Kommentar