future date




JavaScript Source Code 3000: Clocks: Future Date


































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!

















JavaScript Source Code 3000: Clocks: Future Date:
Simply click inside the window below, use your cursor to highlight the
script, and copy (type Control-c or Apple-c) the script into a new file in
your text editor (such as Note Pad or Simple Text) and save (Control-s or
Apple-s). The script is yours!!!




    





<!-- TWO STEPS TO INSTALL FUTURE DATE:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<SCRIPT language="JavaScript">
<!-- Original: Kevin Myers (kevinmyers@unforgettable.com) -->
<!-- Web Site: http://www.geocities.com/SiliconValley/Bay/7554 -->

<!-- Begin
function AddDays(form) {
DaysToAdd=document.form.DaysToAdd.value;

var now=new Date();
var newdate=new Date();
var newtimems=newdate.getTime()+(DaysToAdd*24*60*60*1000);
newdate.setTime(newtimems);
document.form.display.value=newdate.toLocaleString();
}
// End -->
</SCRIPT>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<center>
<form name=form>
<input type=text name=DaysToAdd size=5 value=10>
<input type=button value="days from today will be..." onclick="AddDays(this.form)">
<input type=text name="display" size=35 value="">
</form>
</center>



<!-- Script Size: 1.02 KB -->










Wyszukiwarka

Podobne podstrony:
The World Wide Web Past, Present and Future
Ranko Magami (Shark) Attract and Date 1 PL
FutureEurope
java sql Date
date time short
coffee date dress multisize instructions
date
date time long
date 1
date
future
Blade sections for wind turbine and tidal current turbine applications—current status and future cha
Greg Bear A Seamless Future
materialy,gramatyka,future perfect czas przyszly dokonany
21 Future Perfect
03 Sam hat ein Date
Future

więcej podobnych podstron