Viewing file: messagebox.php (1.02 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%"> <tr> <td width="243" height="43" bgcolor="#6699CC"><h3>Welcome: Mr.<?php echo strtoupper($user) ?></h3></td> <td width="219" bgcolor="#6699CC"><h3><a href="logout.php">Logout</a></h3></td> <td width="256" bgcolor="#6699CC"><h3><?php echo "Today is " . date("d/m/y") . "<br>";?></h3></td> <td width="363" bgcolor="#6699CC"><?php Function d1() { $time1 = Time(); $date1 = date("h:i:s A",$time1); echo $date1; } ?>
<script> var now = new Date(<?php echo time() * 1000 ?>); function startInterval(){ setInterval('updateTime();', 1000); } startInterval();//start it right away function updateTime(){ var nowMS = now.getTime(); nowMS += 1000; now.setTime(nowMS); var clock = document.getElementById('qwe'); if(clock){ clock.innerHTML = now.toTimeString();//adjust to suit } } </script>
<div id="qwe"> <h3>test</h3> </div> </td> </tr> </table>
|