JavaScript Scripts





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Free Java Script Codes
Javascript List All
Slide Show Slide Show
Ad Display Ad Display
Image Effect Image Effect
Animated Image Effects Animated Image Effects
Form Validation Form Validation
Color Picker Tool Color Picker Tool
Formatting Forms Formatting Forms
Select All Select All
Dynamic Form Select Dynamic Form select
Dynamic Color Dynamic Color
Calendar Script Calendar
Textbox Counter Textbox Counter
Alphanumeric Alphanumeric
Date Time Script Date & Time
Stop Watch Script Stop Watch script
Delete Repeated Values Delete Repeated Values
Pagination Pagination
Random Generator Random Generator
Animated Text Animated Text
Cursor Position Cursor Position
User Info Window / User Info
Security Security / Authenticate
Bookmark Bookmark
Mouse Effects Mouse Effects
Title Bar Title Bar
Status Bar Status Bar
Country List Country List
Free Games Free Games
Calculators Calculators
 




Find weekday you were born


About
This free javascript helps you to know or find out what day you were born. You can find the day of the week you were born just by selecting your birthday.


Features
a) This javascript is used to find the day of the week you were born.
b) You can change the Month as you wish(January or Jan..)
c) Set the year in dropdown as you wish.

Preview
select your birthday and click on the button

Select your Birthdate
©hscripts.com



Code
<!--        Script by hscripts.com          -->
<!--        copyright of HIOX INDIA         -->
<!-- more scripts @ http://www.hscripts.com -->
<script type="text/javascript">
// Set/Change the Year in the dropdown
// Eg: var month=new array("January","February",..);
var month = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); var startyear = "1950"; // Change the Starting year in your dropdown var endyear = "2010"; // Change the ending year in the dropdown function dayborn() { var month = document.bornday.birthmonth.options[document.bornday.birthmonth.selectedIndex].value; var day = document.bornday.birthday.options[document.bornday.birthday.selectedIndex].value; var year = document.bornday.birthyear.options[document.bornday.birthyear.selectedIndex].value; var birthday = new Date(year,month,day); var dayborn = birthday.getDay(); var weekday = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); alert("You were born on a " + weekday[dayborn]); } </script> <form name="bornday"> <div align="center"><center><table bgcolor="#ffffff" border="2" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="center"><font face="verdana, arial" size="-1">Enter your Birthdate </font></td> </tr> <tr> <td align="center"> <select name="birthmonth" size="1"> <script language="javascript"> for(var i=0;i<month.length;i++) document.write("<option value="+i+">"+month[i]+"</option>"); </script> </select></td> <td align="center"> <select name="birthday" size="1"> <script language="javascript"> for(var j=1;j<32;j++) document.write("<option value="+j+">"+j+"</option>"); </script> </select></td> <td align="center"> <select name="birthyear" size="1"> <script language="javascript"> for(var k=startyear;k<endyear;k++) document.write("<option value="+k+">"+k+"</option>"); </script> </select></td> </tr> <tr> <td colspan="3" align="center"><font face="verdana, arial" size="-1"> <a style="text-decoration:none" href="http://www.hscripts.com">©hscripts.com</a> </font></td> </tr> </table> </center></div><div align="center"><center><p><input value="Birthday" onclick="dayborn()" type="button"></p> </center></div> </form> <!-- Script by hscripts.com -->

Release Date - 07-04-2008
Get free version without ©copyright link for just 5 price

For customization of this script or any script development, contact us at support@hscripts.com


Usage
1.) Just copy and paste the code where you want to use it.
2.) Set/Change the Year format in the dropdown as you wish.
     Eg: var month=new array("January","February",..);
3.) Set/Change the Time Period in years in the dropdown as you wish.
     var startyear = "1901"; // Change the Starting year in your dropdown
     var endyear = "3010"; // Change the ending year in the dropdown



License
- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.
Other Links

web hosting