雖然Picasa有內建的幻燈片,可以直接叫出代碼,不過...是flash的,
以下是不用flash的方式,可以放在網頁或blogger上喔...很方便。
<script src="http://www.google.com/jsapi"
type="text/javascript"> </script>
<script src="http://www.google.com/uds/solutions/slideshow/gfslideshow.js"
type="text/javascript"> </script>
<style type="text/css">
.gss a img {border : none;}
.gss {
width: 288px;
height: 216px;
color: #dddddd;
background-color: #000000;
padding: 8px;
}
</style>
<script type="text/javascript">
function load() {
var samples = "http://picasaweb.google.com.tw/data/feed/base/user/chiming.aaron/albumid/5482122296342364849?alt=rss&kind=photo&hl=zh_TW";
var options = {
displayTime: 2000,
transistionTime: 600,
linkTarget : google.feeds.LINK_TARGET_BLANK
};
new GFslideShow(samples, "slideshow", options);
}
google.load("feeds", "1");
google.setOnLoadCallback(load);
</script>
<div id="body">
<div id="slideshow" class="gss" align="center" >Loading...</div>
</div>
長得會像這樣..^_^
就將我以前收集的的桌布當作範本吧。
http://www.chiming.somee.com/learn/photo.asp
引用網址:
http://www.google.com/uds/solutions/slideshow/reference.html#hello-world
沒有留言:
張貼留言