返回列表 發帖

球狀 3D 旋轉的標籤雲

英文作者:http://www.roytanck.com/
中文修改:http://www.lostleon.com/blog/
檔案下載:http://www.lostleon.com/blog/wp- ... umulus/tagcloud.swf



這原本是寫給 wordpress 用的一個 plugin,但是其實只要取得 swf 後,自己把參數組好一樣可以使用。

要傳入 swf 是以下一段 html:
<tags>
  <a href="http://jsgears.com/" target="_blank">jsGears</a>
  <a href="http://www.google.com/" target="_blank">Google</a>
  <a href="http://www.yahoo.com/" target="_blank">Yahoo!</a>
  ...
</tags>
其中 href 的部份必須是完整包含 domain name 的 URL,然後做 url encode 後,帶入 swf 的參數,範例如下 (PHP):
<embed type="application/x-shockwave-flash" src="tagcloud.swf" width="215" height="250" 
  id="tagcloudflash" name="tagcloudflash" bgcolor="#ffffff" quality="high" allowscriptaccess="always"
   flashvars="tcolor=0x111111&amp;tcolor2=0x666666&amp;hicolor=0x0066FF&amp;tspeed=150&amp;distr=true&amp;mode=tags&amp;tagcloud=<?php echo $encoded_html; ?>">
To infinity and beyond!

哇~~~這個超酷的
班服設計公司學習設計~~

TOP

非常方便又實用的工具! 感謝您的分享

TOP

返回列表 回復 發帖