Hi Mike. Yeah I found that last night but it wants a key and for the key it wants a website. We're not going to be using this on a website!
Just wondering if I can use the code below but remove the script line that has the key?
Code:
<script type="text/javascript" src="http://www.google.com/jsapi?key=YOUR_KEY_HERE"></script
Code:
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi?key=YOUR_KEY_HERE"></script>
<script type="text/javascript">
google.load("feeds", "1");
function initialize() {
var feed = new google.feeds.Feed("http://www.digg.com/rss/index.xml");
feed.load(function(result) {
if (!result.error) {
var container = document.getElementById("feed");
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
var div = document.createElement("div");
div.appendChild(document.createTextNode(entry.title));
container.appendChild(div);
}
}
});
}
google.setOnLoadCallback(initialize);
</script>
</head>
<body>
<div id="feed"></div>
</body>
</html>