home *** CD-ROM | disk | FTP | other *** search
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title></title>
- <!--<meta http-equiv="refresh" content="10">-->
- <style>
- body, html {
- height: 100%;
- margin: 0;
- }
-
- .bg {
- /* The image used */
- background-image: url("bg/mb.jpg");
-
- /* Full height */
- height: 100%;
-
- /* Center and scale the image nicely */
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- }
- </style>
- <style>
- div.fixed {
- position: fixed;
- top: 0 ; // bottom: 0; //
- left: 0;
- width: 350px;
- text-align: center;
- font-size: 20px;
- line-height: 60%;
- background-color: coral;
- border: 5px solid #FF0000;
- }
- div.fixed2 {
- position: fixed;
- top: 160 ; // bottom: 0; //
- left: 0;
- width: 600px;
- text-align: left;
- font-size: 20px;
- line-height: 60%;
- background-color: coral;
- border: 5px solid #FF0000;
- }
- </style>
- </head>
- <body class="bg" onload="startTime()">
-
- <div class="fixed" id="txt"></div>
- <br><br><br><br><br>
- <div class="fixed2" id="txt2"></div>
- <br><br><br><br><br>
- <div class="fixed2" id="txt3"></div>
- <!--<div style="background-color: tomato; color: white; padding: 10px;" id="txt2"></div>-->
- <div id="txt5" style="position:absolute; left:650px; top:66px; width:600px; border:none;"><img src="bg/002.jpg" width="600" alt="" ></div>
- <script>
- function startTime() {
- var today = new Date();
- var y = today.getFullYear() ;
- var a = today.getMonth() + 1 ;
- var d = today.getDate();
- var h = today.getHours();
- var m = today.getMinutes();
- var s = today.getSeconds();
- // add a zero in front of numbers<10
- a = checkTime(a);
- d = checkTime(d);
- m = checkTime(m);
- s = checkTime(s);
- checkTime3(s);
- document.getElementById("txt").innerHTML = "<h1>" + y + "." + a + "." + d + "_" + h + ":" + m + ":" + s + "</h1>";
- var t = setTimeout(function(){ startTime() }, 1000);
- }
-
-
- function checkTime(i) {
- if (i < 10) {
- i = "0" + i;
- }
- return i;
- }
-
-
- function checkTime3(i) {
- var t1 = ( i / 2 );
- var t2 = Math.floor(i / 2);
- var h;
- var k = '' ;
- for (h = 0; h < t1; h++)
- {
- var k = k + "." ;
- }
- var t3 = "Read data " + k ;
- var t4 = "Write data " + k ;
- var p = ( Math.floor(i / 8) + 1 ) * 2 ;
- if( p < 10 ){ p = "0" + p ;}
- document.getElementById("txt2").innerHTML = "<h1>" + t3 + "</h1>";
- document.getElementById("txt3").innerHTML = "<h1>" + t4 + "</h1>";
- document.getElementById("txt5").innerHTML = "<h1>Copy image ... </h1><img src=bg/0" + p + ".jpg width=600>"
- }
-
- </script>
- -->
-
- </body>
- </html>
-