
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
Use Javascript to displays your message on the appropriate date you indicate. For example, you can have it print messages on holidays, birthdays, or other dates that are important to you and your site's visitors!...View A Script Demo
Use Javascript to displays your message on the appropriate date you indicate. For example, you can have it print messages on holidays, birthdays, or other dates that are important to you and your site's visitors!...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">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var days = new Array();
var msgs = new Array();
days[0] = "December 20, 1999";
msgs[0] = "Thanks for stopping by on my birthday!";
days[1] = "December 21, 1999";
msgs[1] = "Not Christmas yet, it's only the 21st.";
days[2] = "December 22, 1999";
msgs[2] = "Another day closer, almost there!";
days[3] = "December 23, 1999";
msgs[3] = "Wow, tomorrow is Christmas Eve!";
days[4] = "December 24, 1999";
msgs[4] = "It's Christmas Eve, thanks for visiting!";
days[5] = "December 25, 1999";
msgs[5] = "Welcome to this page on Christmas Day!";
var months = new Array("",
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
);
var today = new Date(); // today
var mon = months[today.getMonth() + 1]; // month
var day = today.getDate(); // day
var year = y2k(today.getYear()); // year
function dateMsg() {
for (i = 0; i < days.length; i++) {
tempdate = new Date(days[i]);
tempmonth = months[tempdate.getMonth() + 1];
tempday = tempdate.getDate();
tempyear = y2k(tempdate.getYear());
if (year == tempyear && mon == tempmonth && day == tempday)
return("Today is " + days[i] + ". " + msgs[i]); // returns day message
}
return("Today is " + mon + " " + day + ", " + year + "."); // returns default
}
// Y2K Fix Function
function y2k(year) {
if (year < 2000)
year = year + 1900;
return year;
}
// End -->
</script>
</HEAD>
<BODY Background=../graphics/grayback.jpg >
<center><BR><BR><BR>
<script>
document.write(dateMsg());
</script>
</center>
</BODY>
</HTML>
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var days = new Array();
var msgs = new Array();
days[0] = "December 20, 1999";
msgs[0] = "Thanks for stopping by on my birthday!";
days[1] = "December 21, 1999";
msgs[1] = "Not Christmas yet, it's only the 21st.";
days[2] = "December 22, 1999";
msgs[2] = "Another day closer, almost there!";
days[3] = "December 23, 1999";
msgs[3] = "Wow, tomorrow is Christmas Eve!";
days[4] = "December 24, 1999";
msgs[4] = "It's Christmas Eve, thanks for visiting!";
days[5] = "December 25, 1999";
msgs[5] = "Welcome to this page on Christmas Day!";
var months = new Array("",
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
);
var today = new Date(); // today
var mon = months[today.getMonth() + 1]; // month
var day = today.getDate(); // day
var year = y2k(today.getYear()); // year
function dateMsg() {
for (i = 0; i < days.length; i++) {
tempdate = new Date(days[i]);
tempmonth = months[tempdate.getMonth() + 1];
tempday = tempdate.getDate();
tempyear = y2k(tempdate.getYear());
if (year == tempyear && mon == tempmonth && day == tempday)
return("Today is " + days[i] + ". " + msgs[i]); // returns day message
}
return("Today is " + mon + " " + day + ", " + year + "."); // returns default
}
// Y2K Fix Function
function y2k(year) {
if (year < 2000)
year = year + 1900;
return year;
}
// End -->
</script>
</HEAD>
<BODY Background=../graphics/grayback.jpg >
<center><BR><BR><BR>
<script>
document.write(dateMsg());
</script>
</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

