Metachecker.net
|
TrafficChecker.net
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Date Menu
Do you need your visitors to select a day from this month? Here's an excellent way to do so - they get a pulldown menu containing the entire month and the current day is already selected! Cool!
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Original: Reaz Hoque <!-- Begin function customize(form) { var address = document.form1.url.value; var op_tool = (document.form1.tool.checked== true) ? 1 : 0; var op_loc_box = (document.form1.loc_box.checked == true) ? 1 : 0; var op_dir = (document.form1.dir.checked == true) ? 1 : 0; var op_stat = (document.form1.stat.checked == true) ? 1 : 0; var op_menu = (document.form1.menu.checked == true) ? 1 : 0; var op_scroll = (document.form1.scroll.checked == true) ? 1 : 0; var op_resize = (document.form1.resize.checked == true) ? 1 : 0; var op_wid = document.form1.wid.value; var op_heigh = document.form1.heigh.value; var option = "toolbar="+ op_tool +",location="+ op_loc_box +",directories=" + op_dir +",status="+ op_stat +",menubar="+ op_menu +",scrollbars=" + op_scroll +",resizable=" + op_resize +",width=" + op_wid +",height="+ op_heigh; var win3 = window.open("", "what_I_want", option); var win4 = window.open(address, "what_I_want"); } function clear(form) { document.form1.wid.value=""; document.form1.heigh.value=""; } // End --> </SCRIPT>
Insert into <BODY>
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin today = new Date(); thismonth = today.getMonth()+1; thisyear = today.getYear(); thisday = today.getDate(); montharray=new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); maxdays=montharray[thismonth-1]; if (thismonth==2) { if ((thisyear/4)!=parseInt(thisyear/4)) maxdays=28; else maxdays=29; } thismonth = "" + thismonth if (thismonth.length == 1) { thismonth = "0" + thismonth; } document.write("<form>"); document.write("<select name=dates size=1>"); for (var theday = 1; theday <= maxdays; theday++) { var theday = "" + theday; if (theday.length == 1) { theday = "0" + theday; } document.write("<option"); if (theday == thisday) document.write(" selected"); document.write(">"); document.write(thismonth + "-" + theday + "-" + thisyear); } document.write("</select></form>"); // End --> </SCRIPT>
Other Options