CONTENT
- CHANGES
Szukaj
#top JavaScript¶
code / javascript
#top getmicrotime¶
/** * @name getmicrotime() * @desc getmicrotime() * @param void * @return float */ function getmicrotime() { return parseFloat( (new Date()).getTime()/1000 ); }
SELECT ALL
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>utils.htm</title>
<script type="text/javascript" src="../../libinc/jscode/utils.js"></script>
<link rel="stylesheet" type="text/css" href="../../libinc/cssstyle/defaults.css">
<script type="text/javascript">
<!--
window.onload=function() {
updateTime();
}
function updateTime() {
document.getElementById('datatimer').firstChild.nodeValue="getmicrotime()="+getmicrotime();
setTimeout("updateTime();", 1000);
}
//-->
</script>
<style type="text/css">
<!--
body {background:#08b;}
#datatimer {width:980px;margin:0px auto;}
-->
</style>
</head>
<body>
<div id="datatimer">
</div><!-- id="datatimer" -->
<div id="msg"></div>
</body>
</html>
||
Zmodyfikowany ostatnio: 2013/11/20 22:42:16 (11 lat temu),
textsize: 1,44 kB,
htmlsize: 3,12 kB
Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników