Spell with flickr

之前有人問到那動態的Philipz拼字圖片是如何產生的,這是Kastner利用Flickr圖片所產生的,依照下面的步驟就可以透過JavaScript產生出跟本站相同的拼字效果。
1.下載spell.phps
2.到Flickr申請API Key
3.修改剛下載的spell.phps檔案為spell.php
4.修改spell.php內容,將include_once("inc_apikey");改為$api_key = "剛申請的API Key";
5.修改spell.php內容,將110行的$cache_name = "./cache/{$method}_改為$cache_name = "{$method}_",或者也可以建立cache的目錄,owner要改為apache or web。
6.將spell.php上傳。
7.在首頁中加入
</script type="text/javascript" src="http://yourblog/spell.php?picsize=s&string=XXXX"></script>
這樣就完工了,^_^。


February 2012

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Archives

Powered by Movable Type 4.34-en

About this Entry

This page contains a single entry by philipz published on May 22, 2005 4:29 AM.

DreamHost虛擬主機只要USD$9.24/yr was the previous entry in this blog.

CashFlow 202 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.