Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

1 total

On This Page:

  1. 1 mimimee 123

mimimee 123

// description of your code here

index.php
<html>
	<head>
		<script type="text/javascript" src="modul - clock.php"></script>
		<script type="text/javascript">
			window.onload=function(){		//functia asta porneste script-ul la incarcarea paginii.
			setInterval("displaytime()", 1000)
		}
	</script>
</head>

<body>
<?php $time = "".date("d-m-Y")."<br>".date("H:i:s").""; /*NECESAR pentru a inlocui delay-ul pana ce se incarca script-ul*/?>
<span id="clock" style="position:relative;"><?=$time;?></span>
</body>
</html>

1 total

On This Page:

  1. 1 mimimee 123