Script Categories













Date & Time >>> 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.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- 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>
<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>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

http://www.cashadvance-loans.net/california/cash-advance-tustin-ca/


©