.

.

Thứ Hai, 8 tháng 2, 2010

NCT với Skin là Flash

NCT với Skin là Flash


Đây là trang gốc: Chèn nhạc với skin media player . Tôi viết lại để lưu trữ cho bản thân.
A- Code chung:
<embed
src="http://img4.imageshack.us/img4/5937/playert.swf?http://500.photobucket.com/trang-sinh"
width="470" height="71" wmode="transparent" bgcolor="undefined"
allowscriptaccess="always" allowfullscreen="true"
flashvars="file=http://kipit.co.cc/nct3/?link=NCTPageURL&config=http://kipit.co.cc/nct3/config.php&backcolor=000000&frontcolor=FFFFFF&lightcolor=CCCC00&screencolor=000000&skin=FlaskSkin&autostart=true&displayclick=none&repeat=list&playlist=right"/>
Phân tích:
  • Shockware: http://img4.imageshack.us/img4/5937/playert.swf?file=
  • XML: http://kipit.co.cc/nct3/?link=
  • FlashSkin: Tùy ý
B- Tùy biến:
  • width và height: tùy thiết kế trang.
  • ?link=NCTPageURL : là địa chỉ của trang Playlist trên NCT.
  • &skin=FlaskSkin là địa chỉ của flash mà bạn muốn dùng làm skin
  • &autostart=true (tự chạy) hay = false (không tự chạy).
  • &displayclick=none là không hỗ trợ kích lên màn hình để play, hay =always là hỗ trợ kích lên màn hình để play.
  • &repeat=list là lặp lại list hoặc &repeat=none là không lặp lại list
  • &playlist=right là list ở bên phải hay =left là list ở bên trái hay = bottom là list ở dưới hoặc xóa bỏ nếu không cho hiện list. Cần thay đổi width và height cho thích hợp với kiểu list.
C- Ví dụ:
Với:
  1. NCTPageURL = http://www.nhaccuatui.com/nghe?L=3RlXrx9umj2_
  2. FlaskSkin = http://img4.imageshack.us/img4/3474/skinwmph.swf
  3. &repeat=none
  4. &playlist=right
  5. &autostart=false
  6. width=550 height=200
  7. &displayclick=always
thì ta có code
<embed
src="http://img4.imageshack.us/img4/5937/playert.swf?http://500.photobucket.com/trang-sinh"
width="550" height="200" wmode="transparent" bgcolor="undefined"
allowscriptaccess="always" allowfullscreen="true"
flashvars="file=http://kipit.co.cc/nct3/?link=http://www.nhaccuatui.com/nghe?L=3RlXrx9umj2_&config=http://kipit.co.cc/nct3/config.php&backcolor=000000&frontcolor=FFFFFF&lightcolor=CCCC00&screencolor=000000&skin=http://img4.imageshack.us/img4/3474/skinwmph.swf&autostart=false&displayclick=none&repeat=none&playlist=right"/>

và giao diện như sau:







Nếu không cho xuất hiện list thì giao diện sẽ đẹp hơn. Và nên cho &displayclick=none để tránh xuất hiện 2 nút Play trên màn hình.





Nguồn:trang-sinh

Không có nhận xét nào:

Đăng nhận xét

Bài đăng Phổ biến

Nhãn