Full version: jsB@nk » Time » Calendar » Blocking Calendar Sheet script
URL: https://www.javascriptbank.com/blocking-calendar-sheet-script.html
This JavaScript creates a blocking calendar sheet on your webpages. Very nice.
Full version: jsB@nk » Time » Calendar » Blocking Calendar Sheet script
URL: https://www.javascriptbank.com/blocking-calendar-sheet-script.html
<SCRIPT language=JavaScript><!-- Begin// www.vinachem.com.vnvar day="";var month="";var ampm="";var ampmhour="";var myweekday="";var year="";mydate = new Date();myday = mydate.getDay();mymonth = mydate.getMonth();myweekday= mydate.getDate();weekday= myweekday;myyear= mydate.getYear();year = myyear;myhours = mydate.getHours();ampmhour = (myhours > 12) ? myhours - 12 : myhours;ampm = (myhours >= 12) ? ' PM' : ' AM';mytime = mydate.getMinutes();myminutes = ((mytime < 10) ? ':0' : ':') + mytime;if(myday == 0)day = " Chủ nhật";else if(myday == 1)day = " Thứ hai";else if(myday == 2)day = " Thứ ba";else if(myday == 3)day = " Thứ tư";else if(myday == 4)day = " Thứ năm";else if(myday == 5)day = " Thứ sáu ";else if(myday == 6)day = " Thứ bảy";if(mymonth == 0) {month = "1";}else if(mymonth ==1)month = "2";else if(mymonth ==2)month = "3";else if(mymonth ==3)month = "4";else if(mymonth ==4)month = "5";else if(mymonth ==5)month = "6";else if(mymonth ==6)month = "7";else if(mymonth ==7)month = "8";else if(mymonth ==8)month = "9";else if(mymonth ==9)month = "10";else if(mymonth ==10)month = "11";else if(mymonth ==11)month = "12";// End --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<SCRIPT language=JavaScript>if (myday!=0){document.write("<table border=1 cellpadding='0' cellspacing='1' style=border-collapse: collapse bordercolor=#909090 width= 76 height=28 id=AutoNumber1><tr><td width='74' align=center valign=top background='menu/Time_BGR.jpg'><b><font color='Black' size='1' face='Tahoma'>Tháng " + month +"<br>" + year);document.write("</font></b></td></tr><tr><td width='76' background='menu/Map.jpg' height='30' align='center'><p style='margin-top: 0; margin-bottom: 0'><b><font size='2' color='Black' face='Tahoma'>"+ day+"</p>");document.write("</font></b><p style='margin-top: 0; margin-bottom: 0'><b><font size='3' face='Book Antiqua' color='Black'>" + myweekday+"</p>");document.write("</font></b></td></tr><tr><td width='100%' align='center' background='menu/Time_BGR.jpg'><b><font color='Black' size='1' face='Tahoma'><span style='letter-spacing:1'>"+ ampmhour + myminutes +" " +ampm+"</span></font></b></td> </tr></table>");}else{document.write("<table border=1 cellspacing=1 style=border-collapse: collapse bordercolor=#FF4F57 width= 76 height=28 id=AutoNumber1><tr><td width='74' align=center valign=top background='menu/Time_BGR.jpg'><b><font color='#FF4F57' size='1' face='Tahoma'>Tháng " + month +"<br>" + year);document.write("</font></b></td></tr><tr><td width='76' background='menu/Map.jpg' height='30' align='center'><p style='margin-top: 0; margin-bottom: 0'><b><font size='2' color='#FF4F57' face='Tahoma'>"+ day+"</p>");document.write("</font></b><p style='margin-top: 0; margin-bottom: 0'><b><font size='4' face='Book Antiqua' color='#FF4F57'>" + myweekday+"</p>");document.write("</font></b></td></tr><tr><td width='100%' align='center' background='menu/Time_BGR.jpg'><b><font color='#FF4F57' size='1' face='Tahoma'><span style='letter-spacing:1'>"+ ampmhour + myminutes +" " +ampm+"</span></font></b></td> </tr></table>");}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->