Here are some macro photos.
Monthly Archive: September 2009
Sep 23
Javascript Date (current day)
So you want to display the date using javascript.
add the following code where you wish the date to be displayed.
<script type=”text/javascript”>
<!–
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(day + “/” + month + “/” + year)
//–>
</script>
save your page and run, the result is shown below.
OUTPUT:
var currentTime …
Social Connect
Login with one of the following.Enter your WordPress.com blog URL
http://.wordpress.com
Proceed