Birthday script |
Birthday script |
shammo |
Dec 1 2016, 08:26 AM
Post
#1
|
Group: Members Posts: 1 Joined: 1-December 16 Member No.: 24,948 |
Help please
<script language="JavaScript"> var arrBday = [ ['Bob','11/23/1973'], ['Peter','9/22/1977'], ['John','9/22/1999'] ]; function displayBdayList(today){ var bday,strList=''; for (var i=0;i<arrBday.length;i++){ bday = new Date(arrBday[i][1]); if (!isNaN(bday) && bday.getMonth()==today.getMonth() && bday.getDate()==today.getDate()) strList+='- '+arrBday[i][0]+" ("+(today.getFullYear()-bday.getFullYear())+")<br>"; } if (strList=='') strList='- NONE' document.write("<h4>Today's Birtdays:</h4>"+strList) } displayBdayList(new Date()); </script> this is birth day script so,i want in this script if "Bob"birday then a web link is automatic open like Link''http://forums.htmlhelp.com'' please help |
CharlesEF |
Dec 4 2016, 06:18 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Since I don't know what the rest of the page looks like I choose to use the method I posted. Otherwise, I agree with everything you stated. If the OP returns with more information then we can refine the code.
|
Lo-Fi Version | Time is now: 24th April 2024 - 04:57 AM |