Google AJAX Feed APIでPicasa Webの写真をスライドショーで表示してみた。
参考サイト: Google AJAX Feed API「Slide Show Programming Guide」
DEMO: Picasa Webの写真をスライドショーで表示
サンプルソース
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title> Picasa- Slideshow「Google AJAX Feed API」</title>
<script type="text/javascript" src="http://www.google.com/jsapi?key=ここにキー"></script>
<script type="text/javascript" src="http://www.google.com/uds/solutions/slideshow/gfslideshow.js"></script>
<script type="text/javascript">
function load() {
var demo = "ここにPicasaのRSS";
var options = {
displayTime: 2000,
transistionTime: 800,
linkTarget : google.feeds.LINK_TARGET_BLANK,
fullControlPanel : true,
scaleImages: true,
};
new GFslideShow(demo, "picasa_slideshow", options);
}
google.load("feeds", "1");
google.setOnLoadCallback(load);
</script>
<style type="text/css">
.slideshow {
margin-left: auto;
margin-right: auto;
background-color: #fff;
}
.slideshow a img {border : none;}
#picasa_slideshow {
width: 288px;
height: 216px;
padding: 10px;
border: 1px solid #aaa;
}
.loading {width: 100%;}
</style>
</head>
<body>
<div id="picasa_slideshow" class="slideshow">
<div class="loading">Loading...</div></div>
</body>
</html>
ピンバック: なんとか諸島