[英]Add to Calender link not working
我正在嘗試在我的網站上放置“添加到日歷”鏈接,但它似乎僅在我的網站上不起作用。 這是鏈接: https : //www.cvrc.virginia.edu/content/test您可以查看是否顯示為鏈接,並且當您單擊它時沒有添加選項。 這是我使用的代碼。 如果您在計算機上將其作為.html文件打開,則可以正常工作。 有任何想法嗎?
<!DOCTYPE html>
<html>
<head>
<title>AddThisEvent</title>
<meta name="Description" content="" />
<meta name="Keywords" content="" />
<meta name="Author" content="Michael Nilsson, AddThisEvent" />
<meta charset="utf-8" />
<!-- AddThisEvent -->
<script type="text/javascript" src="http://js.addthisevent.com/atemay.js"></script>
<!-- AddThisEvent Settings -->
<script type="text/javascript">
addthisevent.settings({
license : "aao8iuet5zp9iqw5sm9z",
mouse : false,
css : true,
outlook : {show:true, text:"Outlook Calendar"},
google : {show:true, text:"Google Calendar"},
yahoo : {show:true, text:"Yahoo Calendar"},
hotmail : {show:true, text:"Hotmail Calendar"},
ical : {show:true, text:"iCal Calendar"},
facebook : {show:true, text:"Facebook Event"},
callback : ""
});
</script>
</head>
<body>
<!-- Snippet -->
<a href="http://example.com/link-to-your-event" title="Add to Calendar" class="addthisevent">
Add to Calendar
<span class="_start">10-05-2012 11:38:46</span>
<span class="_end">11-05-2012 11:38:46</span>
<span class="_zonecode">40</span>
<span class="_summary">Summary of the event</span>
<span class="_description">Description of the event</span>
<span class="_location">Location of the event</span>
<span class="_organizer">Organizer</span>
<span class="_organizer_email">Organizer e-mail</span>
<span class="_all_day_event">false</span>
<span class="_date_format">DD/MM/YYYY</span>
</a>
</body>
</html>
在您的頁面上,該鏈接實際上鏈接到“ example.com”-
我認為您的插件腳本應該可以完全處理該問題-
所以,你應該在以后把腳本<a>
-因為如果腳本是指事情,不要在DOM存在,但-那是行不通的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.