Comment accéder à la bare de status du navigateur, en affichent son horaire actuel
Source / Exemple :
<html>
<Script LANGUAGE="JavaScript">
<!--
var timerID = null;
var TimerRunning = false;
function stop(){
if(TimerRunning)
clearTimeout(timerID);
TimerRunning = false;
}
function display() {
var thedate = new Date();
var hours = thedate.getHours();
var Min = thedate.getMinutes();
var Sec = thedate.getSeconds();
var TimeV = " il est exactement chez vous : " + hours
TimeV += ((Min < 10) ? ":0" : ":") + Min
TimeV += ((Sec < 10) ? ":0" : ":") + Sec
TimeV += (hours >= 12) ? " P.M." : " A.M."
window.status = TimeV;
timerID = setTimeout("display()",1000);
TimerRunning = true;
}
function start() {
stop();
display();
}
start();
// end hide -->
</Script>
<head>
<title> Titre de votre site </title>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=UTF-8">
</head>
<frameset rows="32,*,0" border=0>
<frame name="HEADER" src="header.html"
frameborder=0 marginheight=0 marginwidth=0 noresize scrolling="no">
<frame name="MAIN" src="Corps.htm"
frameborder=0 marginheight=0 marginwidth=0 noresize scrolling="auto">
<frame name="FOOTER" src="footer.html"
frameborder=0 marginheight=0 marginwidth=0 noresize scrolling="no">
</frameset>
</html>
Conclusion :
On là met sur la page index du site
Vous n'êtes pas encore membre ?
inscrivez-vous, c'est gratuit et ça prend moins d'une minute !
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.