
More JavaScript Messages
Adding Commas | JavaScript Alert | Rotate Banner Ads | Sort Data By Field | Tip of The Day | Continuously Change | Message On Date | Editable Select Menu | Connected To Mouse | Text Fader | Highlighted Search | Text Box Messages | Text Glowing Border | Hover Text Colors | Image Link Description | Information Box | Short Description | Jitter Text | Orbiting 3-D Message | Message In A Box | A Trail Of Cursors | Drags A Message | Neon Style Method | Dialup Phone Number | Print Page Button | Automatic Print Page | Simpliest Fast Alert | Quote Of The Day | Rainbow Color Text | Random Name | Random Set Range | A Random Joke | Rotates Message Menu | Random Nerd Quotes | Quotes Generator | Murphys Laws | Random Puns | Random Quips | Random Sentence | JavaScript Error Report | Marquee Message | Characters From String | Teletype Scroller | Text Highlighter | Rotates Messages | Text Ripple | Time Message | Flash Style Intro | Advice From Zen
Description
The substring() function allows you to pull out any combination of characters from a string. In this example, an unformated date string such as 19990422 (which represents April 22, 1999) can be split up into 1999, 04, and 22. Each of these are separate variables that you can deal with independently in your scripts!...View A Script Demo
The substring() function allows you to pull out any combination of characters from a string. In this example, an unformated date string such as 19990422 (which represents April 22, 1999) can be split up into 1999, 04, and 22. Each of these are separate variables that you can deal with independently in your scripts!...View A Script Demo
Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY Background=../graphics/grayback.jpg>
<center><BR>
The substring() function allows you to pull out any combination of characters from a string. In this example, an unformated date string such as 19990422 (which represents April 22, 1999) can be split up into 1999, 04, and 22. Each of these are separate variables that you can deal with independently in your scripts! Neat!
<br><br>
<b>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var date = "19990422"; // yyyymmdd variable
year = date.substring(0,4);
month = date.substring(4,6);
day = date.substring(6,8);
datestring = month + "/" + day + "/" + year;
document.writeln(date + " converts to " + datestring);
// End -->
</script>
</b>
</center>
</BODY>
</HTML>
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY Background=../graphics/grayback.jpg>
<center><BR>
The substring() function allows you to pull out any combination of characters from a string. In this example, an unformated date string such as 19990422 (which represents April 22, 1999) can be split up into 1999, 04, and 22. Each of these are separate variables that you can deal with independently in your scripts! Neat!
<br><br>
<b>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var date = "19990422"; // yyyymmdd variable
year = date.substring(0,4);
month = date.substring(4,6);
day = date.substring(6,8);
datestring = month + "/" + day + "/" + year;
document.writeln(date + " converts to " + datestring);
// End -->
</script>
</b>
</center>
</BODY>
</HTML>
If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail

