這是在校務評鑑前總務處提出的要求,想要把 Picasa webalbum (網路相簿)裡的照片「全部」以投影片方式播放。

這裡強調「全部」播放,因為僅播放某一個相簿是做得到的,總務處的picasa網路相簿裡有許多相簿,分別存放不同目的的相片,在評鑑時想要「全部」播出來。

查了資料後發現只稍微改一下語法就ok了,試了之後果然成功,特別記下來。

首先要知道「如何把Picasa webalbum投影片播放崁在blog裡」的做法。(如果不知怎麼做,先查查資料再繼續往下看)。

原來,你會得到一段程式碼如下:

<embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="600" height="400" flashvars="host=picasaweb.google.com&captions=1&hl=zh_TW&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fkjesgeneral %2Falbumid%2F5523456589286852673%3Falt%3Drss%26kind%3Dphoto%26hl%3Dzh_TW" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

只要把黃色部份刪除即可。真是太神奇了!

註1. 在 「%2Falbumid%2」後面一大串數字,其實是一組「相簿編號」,只要注意不要刪錯即可。
註2. 目前還沒找到如何「隨機播放」、「循環播放」、「全螢幕、隨機、循環播放」的做法,知道的人請告訴我。
註3. 如果把某些相簿設定為「不公開」,上述的投影片就會跳過它。這有利於某些相簿整理到一半,還不想給人家看光光時使用。

這裡看效果。


原文如下:

Does anyone know how to embed a slideshow of all the pictures in your
Picasa web albums? I know it’s easy to get the link to embed a
slideshow for individual folders, but I would like to embed a "random
image" slideshow on my website that is able to pull from all the
photos regardless of folder. I know there must be a way because there
is a gadget in iGoogle that lets me do it. Thanks!


I just did this myself and here are the steps:

1 – Go into any album and click on "embed slideshow"
2 – Set it up so it looks the way you want and then copy the "embed" code it gives you
3 – Paste in notepad or any text editor
4 – Find this code and remove it (up to the next % sign): %2Falbumid%2F<unique string of numbers>
5 – Add this code to the end of the flashvars string if you want to restrict it to your public photos: %26access%3Dpublic

So your final code would look something like this (I took out my userid):

<embed type="application/x-shockwave-flash" src="http://
picasaweb.google.com/s/c/bin/slideshow.swf" width="288" height="192"
flashvars="host=picasaweb.google.com&RGB=0x000000&feed=http%3A%2F
%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2FS<your user id>
%3Fkind%3Dphoto%26alt%3Drss%26access%3Dpublic" pluginspage="http://
www.macromedia.com/go/getflashplayer"></embed>

Hope that helps!

On May 5, 10:19 pm, Karl1138 wrote:

資料來源在這裡

最後修改日期: 2010 年 10 月 14 日

作者