Đâ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"/>
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:
- NCTPageURL = http://www.nhaccuatui.com/nghe?L=3RlXrx9umj2_
- FlaskSkin = http://img4.imageshack.us/img4/3474/skinwmph.swf
- &repeat=none
- &playlist=right
- &autostart=false
- width=550 height=200
- &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"/>
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.
Không có nhận xét nào:
Đăng nhận xét