超酷的网页音乐播放器DewPlayer使用方法
作者:
在网上闲逛的时候无意中看到 Dewplayer 播放器,感觉不错,特此分享。
使用方法:把代码添加到模板中,或者像我一样,放到广告代码中进行调用。注意修改swf文件和mp3文件路径。如需自动开始并循环播放,请添加代码 &autostart=1&autoreplay=1 ,如"mp3=http://www.x.com/x.mp3&autostart=1&autoreplay=1"。
1、stream[135x50]
复制代码 代码如下:
<embed flashvars="mp3=mp3/test1.mp3" type="application/x-shockwave-flash" bgcolor="#FFFFFF" src="dewplayer-stream.swf" height="50" width="135"></embed>
2、Mini[150x20]
复制代码 代码如下:
<object type="application/x-shockwave-flash" data="/flashdir/dewplayer-mini.swf" width="160" height="20" id="dewplayermini" name="dewplayermini">
<param name="movie" value="/flashdir/dewplayer-mini.swf" />
<param name="flashvars" value="mp3=flashdir/mp3/everywhere.mp3" />
</object>
3、Classic[200x20]
复制代码 代码如下:
<object type="application/x-shockwave-flash" data="/flashdir/dewplayer.swf" width="200" height="20" id="dewplayerclassic" name="dewplayerclassic">
<param name="movie" value="/flashdir/dewplayer.swf?mp3=flashdir/mp3/cesaria.mp3" />
<param name="flashvars" value="mp3=flashdir/mp3/cesaria.mp3" />
</object>
4、Multi[240x20]
复制代码 代码如下:
<object type="application/x-shockwave-flash" data="/flashdir/dewplayer-multi.swf" width="240" height="20" id="dewplayermulti" name="dewplayermulti">
<param name="movie" value="/flashdir/dewplayer-multi.swf" />
<param name="flashvars" value="mp3=flashdir/mp3/moldau.mp3|flashdir/mp3/cesaria.mp3|flashdir/mp3/everywhere.mp3" />
</object>
5、Multi Rect[240x20]
复制代码 代码如下:
<object type="application/x-shockwave-flash" data="/flashdir/dewplayer-multi.swf" width="240" height="20" id="dewplayermulti" name="dewplayermulti">
<param name="movie" value="/flashdir/dewplayer-multi.swf" />
<param name="flashvars" value="mp3=flashdir/mp3/moldau.mp3|flashdir/mp3/cesaria.mp3|flashdir/mp3/everywhere.mp3" />
</object>
6、Bubble[250x65]
复制代码 代码如下:
<object type="application/x-shockwave-flash" data="/flashdir/dewplayer-bubble.swf" width="250" height="65" id="dewplayerbub" name="dewplayerbub">
<param name="movie" value="/flashdir/dewplayer-bubble.swf" />
<param name="flashvars" value="mp3=flashdir/mp3/moldau.mp3" />
</object>
7、Playlist[240x400]
复制代码 代码如下:
<object type="application/x-shockwave-flash" data="/flashdir/dewplayer-playlist.swf" width="240" height="200" id="dewplayerpls" name="dewplayerpls">
<param name="movie" value="/flashdir/dewplayer-playlist.swf" />
<param name="flashvars" value="xml=/flashdir/playlist-full.xml" />
</object>
8、Playlist[240x400](带封面)
复制代码 代码如下:
<object type="application/x-shockwave-flash" data="dewplayer-playlist.swf" width="240" height="200" id="dewplayer" name="dewplayer">
<param name="wmode" value="transparent" />
<param name="movie" value="dewplayer-playlist.swf" />
<param name="flashvars" value="showtime=true&autoreplay=true&xml=playlist.xml" />
</object>
9、Vinyl[303x113]
复制代码 代码如下:
<object type="application/x-shockwave-flash" data="/flashdir/dewplayer-vinyl.swf" width="303" height="113" id="dewplayervinyl" name="dewplayervinyl">
<param name="movie" value="/flashdir/dewplayer-vinyl.swf" />
<param name="flashvars" value="xml=flashdir/playlist.xml" />
</object>
打包下载地址