支援新增事件jQuery日曆是一款可以即時新增刪除時間的jquery日曆外掛程式碼,有興趣的朋友快來學習學習吧
運行效果圖:----------------------------------查看效果 下載原始碼-------- ---------------
小提示:瀏覽器中如果無法正常運作,可以嘗試切換瀏覽模式。
為大家分享的jQuery支援新增事件的日曆特效程式碼如下
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>支持添加事件jQuery日历</title> <link rel="stylesheet" href="style/documentation.css" type="text/css" /> <link rel="stylesheet" href="style/jalendar.css" type="text/css" /> <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script><!--jQuery--> <script type="text/javascript" src="js/jalendar.js"></script> <script type="text/javascript"> $(function () { $('#myId').jalendar({ customDay: '2017/12/01', // Format: Year/Month/Day color: '#ed145a', // Unlimited Colors lang: 'EN' // Format: English — 'EN', Türkçe — 'TR' }); $('#myId2').jalendar({ customDay: '2016/02/29', color: '#023447', lang: 'ES' }); $('#myId3').jalendar(); }); </script> </head> <body> <article> <div id="myId" class="jalendar"> <div class="added-event" data-date="14/12/2017" data-time="Tüm Gün" data-title="WWDC 13 on San Francisco, LA"></div> <div class="added-event" data-date="16/12/2017" data-time="20:45" data-title="Tarkan İstanbul Concert on Harbiye Açık Hava Tiyatrosu"></div> <div class="added-event" data-date="17/12/2017" data-time="21:00" data-title="CodeCanyon İstanbul Meeting on Starbucks, Kadıköy"></div> <div class="added-event" data-date="17/12/2017" data-time="22:00" data-title="Front-End Design and Javascript Conferance on Haliç Kongre Merkezi"></div> <div class="added-event" data-date="17/12/2017" data-time="22:00" data-title="Lorem ipsum dolor sit amet"></div> </div> <div id="myId2" class="jalendar"></div> <div id="myId3" class="jalendar mid"> <div class="added-event" data-date="9/8/2013" data-time="Tüm Gün" data-title="WWDC 13 on San Francisco, LA"></div> <div class="added-event" data-date="16/8/2013" data-time="20:45" data-title="Tarkan İstanbul Concert on Harbiye Açık Hava Tiyatrosu"></div> <div class="added-event" data-date="17/8/2013" data-time="21:00" data-title="CodeCanyon İstanbul Meeting on Starbucks, Kadıköy"></div> <div class="added-event" data-date="17/8/2013" data-time="22:00" data-title="Front-End Design and Javascript Conferance on Haliç Kongre Merkezi"></div> <div class="added-event" data-date="17/12/2017" data-time="22:00" data-title="Lorem ipsum dolor sit amet"></div> </div> </article> <div style="text-align:center;clear:both"> </div> </body> </html>
以上就是為大家分享的jQuery支援新增事件的日曆特效程式碼,希望大家可以喜歡。