0
我正在嘗試在我的網站上放置一個「添加到日曆」鏈接,但它似乎並未在我的網站上正常運行。這裏是鏈接: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>
你的意思是做這個? \t \t \t \t <腳本類型= 「文本/ JavaScript的」 SRC = 「http://js.addthisevent.com/atemay.js」> –
是 - 以及後面的腳本塊 - 一般來說,好的做法是將所有腳本放在一起(偶爾,有些需要在
- 就在關閉標記之前 –這兩個鏈接具有相同的來源,但結果不同。你能告訴我什麼是錯的嗎?http://training.cvrc.virginia.edu/applications/ https://www.cvrc.virginia.edu/otherscripts/index.html –