WebBuilder101 - Making the web happen!
Need Web Dev software? Here is the place to
Flash Point
Put the current date in your web site


Note that one part of the script goes in the HEAD of the document and the other goes in the BODY of the document.

<Html>
<Head>
<title>Putting the date in a web site</title>

<script language=javascript>

<!-- Hide script from old browsers
var dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")

var monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")

var now = new Date
// end hiding script from old browsers -->
</script>


<Body bgcolor=white>

<script language=javascript>
<!--hide script from old browsers

document.write ("Today is " + dayName [now.getDay ()] + ", " + monName [now.getMonth()] + " " + now.getDate() + ".")

//end hiding script from old browsers -->
</script>

</body>
</html>

Click here to see it in action.

.

 

More Resources
Scrolling Text
Taking and pasting input to your web page
Customize Messages
Create Rollovers
Change Background colors
Alert the user

Suggested Reading

Beginning Active Server Pages 3.0
JavaScript Bible
Red Hat Linux
Dreamweaver 3.0
HTML Bible



Download WB101 Wallpaper
• Web Builder 101 Wallpaper Get it!.
• Find out how to create your own Wallpaper Teach me!.
Sign up for our Newsletters
• Web Building Sign me Up!.
• Net Alert! Sign me Up!.
Need Help?
• Contact Support Click here.
• E-mail the Webmaster Click Here.
• Search Tips Click Here.

Webbuilder101.com © 1998 - 2003 Copyright and Terms of Use
Send mail to: webmaster@webbuilder101.com

» About » Support

» FAQ » What's New » MyLog

Web Builder 101 Web Builder 101 - Making the Web Happen Web Builder 101 - Making the Web Happen
.