Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head lang="en">
- <meta charset="UTF-8">
- <title>lab4zadaca2</title>
- <script src="jquery.js"></script>
- <script src="jquery-ui.js"></script>
- <link rel="stylesheet" href="jquery-ui.css">
- <style>
- img{
- height: 17px;
- width: 22px;
- }
- </style>
- <script>
- $(document).ready(function(){
- $("#datepicker").datepicker({
- showOn: "button",
- buttonImage: "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTEdoGcYw_o0GiEhRIY7-HNNq-ZhNjclD_rIXTWzQa3bulxnjYtv4WAG0_MNQ",
- buttonImageOnly: true,
- changeMonth: true,
- changeYear: true,
- beforeShowDay: function(date) {
- var days = new Date(date.getYear(), date.getMonth() + 1, 0).getDate();
- if (days % 2 == 0)
- return [date.getDate() % 2 != 0];
- else return [date.getDate() % 2 == 0];
- }
- });
- });
- </script>
- </head>
- <body>
- <div>Date: <input type="text" id="datepicker"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement