»
EnglishFrenchVietnamese

Print - Blocking Calendar Sheet script - JavaScriptBank.com

Full version: jsB@nk » Time » Calendar » Blocking Calendar Sheet script
URL: https://www.javascriptbank.com/blocking-calendar-sheet-script.html

Blocking Calendar Sheet script © JavaScriptBank.comThis 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



JavaScript
<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&#7911; nh&#7853;t";else if(myday == 1)day = " Th&#7913; hai";else if(myday == 2)day = " Th&#7913; ba";else if(myday == 3)day = " Th&#7913; t&#432;";else if(myday == 4)day = " Th&#7913; n&#259;m";else if(myday == 5)day = " Th&#7913; sáu ";else if(myday == 6)day = " Th&#7913; b&#7843;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-->


HTML
<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-->