我正在嘗試使用google newsShow api在html應用程序中顯示新聞。 這裏是代碼google.elements.newsShow顯示時間不工作
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google AJAX Search API Sample</title>
<script src="http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0" type="text/javascript"></script>
<script type="text/javascript">
google.load("elements", "1", {packages : ["newsshow"]});
function onLoad() {
// Set the display time to 2 seconds, and transition time to 100 ms
var options = {
"queryList" : [
{
"title" : "indian News",
"topic" : "n",
"ned" : "in"
}
],
"displayTime" : 1000,
"transitionTime" : 50
}
var content = document.getElementById('content');
var newsShow = new google.elements.NewsShow(content, options);
}
google.setOnLoadCallback(onLoad);
</script>
</head>
<body style="font-family: Arial;border: 0 none;">
<div id="content"></div>
</body>
</html>
此代碼工作正常,直到昨天。 但今天早上顯示時間根本不起作用。
我提到這個鏈接提供的例子, https://code.google.com/apis/ajax/playground/#timer_options
這裏太它不工作,我記得很清楚如何在新聞會得到根據過渡時間更新。
我已經嘗試了所有這些事情, 1.關閉瀏覽器ñ又開始 2.重新啓動系統 3.檢查其他桌面的例子。
然而nothings工作。完全不知道發生了什麼。
任何人都可以幫忙,
感謝您的時間!