Metachecker.net
|
TrafficChecker.net
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Future Date
This script will print out a date a certain number of days in the future. You can tell a customer their order will be filled by the date in the future, etc. This script is great!
Insert into <HEAD>
<SCRIPT language="JavaScript"> <!-- Original: Kevin Myers (kevinmyers@unforgettable.com) --> <!-- Web Site: http://www.geocities.com/SiliconValley/Bay/7554 --> <!-- Begin function AddDays() { DaysToAdd=document.getElementById("DaysToAdd").value; var now=new Date(); var newdate=new Date(); var newtimems=newdate.getTime()+(DaysToAdd*24*60*60*1000); newdate.setTime(newtimems); document.getElementById("display").value=newdate.toLocaleString(); } // End --> </SCRIPT>
Insert into <BODY>
<center> <form> <input type=text id="DaysToAdd" name="DaysToAdd" size=5 value=10> <input type=button value="days from today will be..." onclick="AddDays()"> <input type=text id="display" name="display" size=35 value=""> </form> </center>
Other Options