【发布时间】:2013-05-08 14:35:05
【问题描述】:
我想在网页中添加一个谷歌日历小工具。
此页面显示小工具 http://www.google.com/ig/directory?synd=open&url=http://www.google.com/ig/modules/calendar3.xml
链接页面包含粘贴到网页中的代码 http://www.gmodules.com/ig/creator?synd=open&url=http%3A%2F%2Fwww.google.com%2Fig%2Fmodules%2Fcalendar3.xml&lang=en
我尝试创建一个简单的页面:
<!DOCTYPE html>
<html>
<head>
<title>Calendar</title>
</head>
<body>
*<script src="//www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/calendar3.xml&up_calendarFeeds=&up_calendarColors=&up_showDatepicker=1&up_showEmptyDays=0&up_showExpiredEvents=1&synd=open&w=320&h=447&title=Google_Calendar&lang=en&country=ALL&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>*
</body>
</html>
但结果页面不显示日历,仅显示“**”。我将此页面存储在本地文件中(而不是服务器上)并在浏览器中打开。
任何建议,包括获得相同功能的另一种方法?
【问题讨论】:
标签: javascript google-calendar-api google-gadget