Google 뉴스 쇼 API를 사용하여 html 앱에 뉴스를 표시하려고합니다. 다음은 코드입니다google.elements.news 쇼 표시 시간이 작동하지 않습니다.
<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. 브라우저를 종료 N 다시 2. 다른 데스크톱의 예를 확인 시스템 3. 다시 시작하기 시작했다.
아직 작동하지 않습니다. 무슨 일이 벌어지는 지 완전히 모릅니다.
누구든지 도움을 줄 수 있습니까?
감사합니다.