- kukungTo nhì
- Tổng số bài gửi : 156
Thank : 10
Ngày tham gia : 04/04/2011
Đến từ : Nơi cảm xúc thăng hoa
Code tạo mây tag
21/5/2011, 14:26
Hôm nay Smod post tặng các bạn một code tạo tags quay tron rất hay các bạn xem demo
Demo [You must be registered and logged in to see this link.]
Để làm được các bạn download 3 file sau
1. [You must be registered and logged in to see this link.]
2. [You must be registered and logged in to see this link.]
3. [You must be registered and logged in to see this link.]
Mở ra và chọn Save page as
Các bạn dung notepad mở file tags.xml chỉnh sủa
Sau đó upload 3 file lên host để lấy link
Cho code sau vào blog (chỗ nào các bạn muốn hiển thị)
var so = new SWFObject("tagcloud.swf", "tagcloud", "300", "300", "10", "#ffffff");
// uncomment next line to enable transparency
so.addParam("wmode", "transparent");
so.addVariable("tcolor", "0x66ff00");
so.addVariable("tcolor2", "0x009900");
so.addVariable("hicolor", "#F80026");
so.addVariable("tspeed", "100");
so.addVariable("distr", "true");
so.addVariable("xmlpath", "tags.xml");
so.write("flashcontent");
Chúc các bạn thành công
Chú ý là thay link 3 file vừa upload vào code trên
Các bạn có thể điều chỉnh màu sắc ,dài rộng ở code trên
Demo [You must be registered and logged in to see this link.]
Để làm được các bạn download 3 file sau
1. [You must be registered and logged in to see this link.]
2. [You must be registered and logged in to see this link.]
3. [You must be registered and logged in to see this link.]
Mở ra và chọn Save page as
Các bạn dung notepad mở file tags.xml chỉnh sủa
Sau đó upload 3 file lên host để lấy link
Cho code sau vào blog (chỗ nào các bạn muốn hiển thị)
This will be shown to users with no Flash or Javascript.
var so = new SWFObject("tagcloud.swf", "tagcloud", "300", "300", "10", "#ffffff");
// uncomment next line to enable transparency
so.addParam("wmode", "transparent");
so.addVariable("tcolor", "0x66ff00");
so.addVariable("tcolor2", "0x009900");
so.addVariable("hicolor", "#F80026");
so.addVariable("tspeed", "100");
so.addVariable("distr", "true");
so.addVariable("xmlpath", "tags.xml");
so.write("flashcontent");
Chúc các bạn thành công
Chú ý là thay link 3 file vừa upload vào code trên
Các bạn có thể điều chỉnh màu sắc ,dài rộng ở code trên
- phucdangMới vào làm gì có rank
- Tổng số bài gửi : 1
Thank : 1
Ngày tham gia : 13/07/2011
Re: Code tạo mây tag
13/7/2011, 21:53
chỗ thay 3 cái links đâu bạn? mình chỉ thấy chỗ đế thay 2 links thôi. Còn cái swfobject.js mình chưa biết thay vào đâu cả? Bạn nói rõ hơn được không?
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|