2008年2月9日 星期六

在Blogger加入自動播放的下拉選單Picasa網路相簿

我blog上面有個自動播放的下拉選單網路相簿,是之前在某處,看到網友的好創意,運用Picasa網路相簿本身內建的自動播放。不過網頁初次載入時是空白的,必須下拉選擇相簿後才會出現自動播放。於是稍微研究了一下,瞭解修改自訂預設相簿的方式,就會一開始就有相簿會跑。

方法如下:
首先到自己的Picasa網路相簿,進入打算當作預設播放的相簿,在左側「上載相片」的連結上按滑鼠右鍵,複製捷徑。
複製到的捷徑應該長得像這樣:「http://picasaweb.google.com/lh/webUpload?uname=你的Google帳號&aid=1234567890123456789」,在「aid=」後面出現的那串數字,就是這個相簿的ID,把它複製起來。

接下來,把下面這段碼最後的「你的預設相簿ID放這」取代為剛剛複製到的相簿ID數字串,然後把所有「你的Google帳號放這」改成你的英數字Google帳號。

<script>
var flashstring='<embed pluginspage="http://www.macromedia.com/go/getflashplayer" width="288" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" height="192" flashvars="host=picasaweb.google.com&captions=1&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F你的Google帳號放這%2Falbumid%2F##ALBUMID##%3Fkind%3Dphoto%26alt%3Drss" type="application/x-shockwave-flash"></embed>';

function writeflash(albumid){
flashstring1=flashstring.replace("##ALBUMID##",albumid);
document.getElementById("picasaweb").innerHTML=flashstring1;
}

function listallalbum(json) {
var firstlink='';
var temp = '<select onchange="writeflash(this.options[this.selectedIndex].value)">';
var sortentry=json.feed.entry;
for (var i=0, post; post = sortentry[i]; i++) {
var title = post.title.$t;

var link = post.link[2].href.replace(/(^.*albumid\/)(.*)(\?.*$)/g,"$2");
if(i==0){
firstlink=link;
}
temp += '<option value="'+link+'">'+title +'</option>';
}
temp+="</select>";
document.writeln(temp);
writeflash(firstlink);
}
</script>

<script src="http://picasaweb.google.com/data/feed/base/user/你的Google帳號放這?kind=album&hl=en_US&access=public&alt=json&callback=listallalbum"></script>

<div id="picasaweb">
<embed pluginspage="http://www.macromedia.com/go/getflashplayer" width="288" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" height="192" flashvars="host=picasaweb.google.com&captions=1&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F你的Google帳號放這%2Falbumid%2F你的預設相簿ID放這%3Fkind%3Dphoto%26alt%3Drss" type="application/x-shockwave-flash"></embed></div>

最後,登入Blogger,加入「HTML/JavaScript」類的「網頁元素」,把上面改好的碼貼入,然後取個標題,決定頁面擺放位置(建議上面一點),就大功告成了。以後要改預設相簿,一樣找到相簿ID後去把碼修改一下即可,相簿大小也可以自己調整。

2008年1月11日 星期五

關於Coleslaw

以前在澳洲吃KFC的時候點餐都會附Coleslaw,是很清爽去膩,不過通常吃完炸雞與厚薯條沾Gravy都已經撐了,常常吃不完放冰箱放到忘記。台灣KFC沒賣這個,軟心厚薯條與馬鈴薯泥也沒有賣,反而是很奇怪的在賣布丁跟葡式蛋塔!話說回來雖然怪,不過最近廣告的「麻糬蛋撻(ㄊㄚˋ奇怪的用字)」看起來好像很好吃,下次買來試試看。

因為上一篇提到有白泡菜很像Coleslaw,所以心血來潮查一下,發現「Cole slaw」是法文,「cole」是法文裏高麗菜的意思, 而「slaw」則是沙拉的意思。食譜竟然很流行,還是無肥的喔~

Recipe of KFC Coleslaw

8 cups finely chopped cabbage (about 1 head)
1/4 cup shredded carrot (1 medium carrot)
2 tablespoons minced onion
1/3 cup granulated sugar
1/2 teaspoon salt
1/8 teaspoon pepper
1/4 cup milk
1/2 cup mayonnaise
1/4 cup buttermilk
1 1/2 tablespoons white vinegar
2 1/2 tablespoons lemon juice

1. Be sure cabbage and carrots are chopped up into very fine pieces
(about the size of rice).←我倒覺得切太小會沒口感。
2. Combine the sugar, salt, pepper, milk, mayonnaise, buttermilk,
vinegar, and lemon juice in a large bowl and beat until smooth.←mayonnaise在台灣不知去哪買,用脫脂美乃滋不知道行不行。
3. Add the cabbage, carrots, and onion, and mix well.
4. Cover and refrigerate for at least 2 hours before serving.
Serves 10-12. ←為什麼這個食譜是十~十二人份的?

看來蠻簡單,不過要在颱風沒來的時候做,不然本錢太兇。

2007年12月14日 星期五

新型態的微型網誌

在找資料時,無意間注意到「微型網誌」。

關於這種有字數限制、類似「修改MSN狀態」的小型blog,
覺得也出來至少半年了,但是卻一直沒接觸到,看來是太久沒掛網,
而且社交生活太不用心維持了,真該好好檢討一番才是。

話說回來,如果我把blog寫短一點,用email的方式寫,
雖然沒有用MSN、GTALK這麼方便,不過應該也可以常常更新。
倒是不訂閱我RSS的話就沒那麼容易看到我內容了,沒差啦~
Blog本來就是當作喃喃自語、寫日記的地方,卻被搞得越來越複雜,
簡單的東西,不是一定要透過限制功能才做得到,自己要怎麼用才是重點啊~

較多會員的英文元組
http://twitter.com/

親切台灣local版
http://buboo.tw/


反正我就是還不想接受新改變啦~
我承認老了~