Archive for July, 2010

Javascript to display date and time

/*This script is used to display  the current date and time*/

[js]
<html>
<body>
<script type="text/javascript">
var date=new Date();
document.write(date);
</script>
</body>
</html>
[/js]

The output will be in the following format:Wed Jul 21 2010 15:14:05 GMT+0530 (India Standard Time)

Wednesday, July 21st, 2010 Programming No Comments

A simple CSS code

/* A Simple CSS code to display A  Message*/

[css]
<html>
<head>
<style type="text/css" >
body
{
background-color:blue;
}
h1
{
color:blue;
text-align:center;
}
p
{
font-family:"times new roman";
font-size=20px;
}
</style>
</head>
<body>
<h1> CSS WELCOME!!!</h1>
<p>Hi!!!Welcome To CSS.</p>
</body>
</html>
[/css]

The output will be like this

Hi!!!Welcome To CSS.

Wednesday, July 21st, 2010 Programming No Comments
Request a Free SEO Quote