jQuery支持添加事件的日历特效代码分享(3种样式
编程学习 2021-07-04 21:48www.dzhlxh.cn编程入门
这篇文章主要介绍了jQuery支持添加事件的日历特效,推荐给大家,有需要的小伙伴可以参考下。
支持添加事件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支持添加事件的日历特效代码,希望大家可以喜欢。