Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- function ISODateString(d){
- function pad(n){return n<10 ? '0'+n : n}
- return d.getUTCFullYear()+'-'
- + pad(d.getUTCMonth()+1)+'-'
- + pad(d.getUTCDate())+'T'
- + pad(d.getUTCHours())+':'
- + pad(d.getUTCMinutes())+':'
- + pad(d.getUTCSeconds())+'Z'}
- function loadCal(calType){
- var today = new Date();
- var formattedDate = ISODateString(today);
- var objFrame = document.getElementById("calendar_iframe");
- var calSource = "/calendar/" + calType.toString() +".aspx?date=" + formattedDate;
- objFrame.src=calSource;
- }
- </script>
- </head>
- <body onload="loadCal('Month')">
- <a href="#" onclick="loadCal('Day')">Day </a>
- <a href="#" onclick="loadCal('Week')">Week </a>
- <a href="#" onclick="loadCal('Month')">Month</a>
- <iframe name ="calendar_iframe" frameborder="0" width="100%" height="95%"></iframe>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement