Here's the script that made it:


<SCRIPT LANGUAGE="JavaScript">

//This script by BD

RightNow = new Date();
document.write("<FONT COLOR='green'>Welcome to my page! You stopped by on:</FONT> " + (RightNow.getMonth()+1)+ "/" + RightNow.getDate() + "/" + RightNow.getFullYear() )

</SCRIPT>


Notice that I added the FONT commands around the text using single quotes to surround the color green command. The date itself was just copied and pasted from the original script then the hyphens were changed to slashes.

Close this window to return to JavaScript Lesson #3