Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Happy Birthday Script
Old 04-22-2007, 01:48 PM Happy Birthday Script
Novice Talker

Posts: 9
Name: Kerry Denness
Trades: 0
Hi,

I might be looking for the impossible, but here goes.

I would like to find a script for wishing happy birthday to my dogs, on the day of there birthday. I know you think im mad, maybe I am.

I would like to put this on my front page, as each dogs birthday arises, just a little note say happy birthday to their name.

Is it possible. I wonder.

Keris
keris is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-08-2007, 05:08 AM Re: Happy Birthday Script
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
lol. I'd probably use PHP for this to make the page content searchable by the SE's, but this should get you started:

Code:
<script type="text/javascript">
var today = new Date();

var dog1 = Date.parse("January 12, "+today.getFullYear());
if (today.getTime() == dog1) {
  document.write("Happy Birthday Dog 1!");
}

var dog2 = Date.parse("February 12, "+today.getFullYear());
if (today.getTime() == dog2) {
  document.write("Happy Birthday Dog 2!");
}

</script>
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to Happy Birthday Script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09391 seconds with 12 queries