查看完整版本: 【html】音乐播放器代码

丹田乐土 2006-11-2 10:07

【html】音乐播放器代码

<P>&nbsp;</P>
<P>使用说明:</P>
<P>&nbsp;</P>
<P>如果你希望使用下列某个音乐播放器,请先复制代码到你的帖子中,然后将代码中的音乐地址,改换成你的音乐地址就可以了。其中,autostart="false",是说打开网页,音乐不会自动播放,需要点击播放器上面的“播放”才可以开始。如果你希望打开网页就开始播放,请改成 autostart="true"。如果你贴多首歌曲,可以将其中一首设定成 true, 其它的设定成 false.</P>
<P>&nbsp;</P>
<P>1。普通白色播放器:</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P><EMBED src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg volume="0" autostart="false" loop="-1"></P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>[code]<EMBED src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop="-1" autostart="false" volume="0"/EMBED>[/code]</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>2。 普通黑色播放器:</P>
<P><EMBED style="FILTER: Xray" src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg EMBED volume="0" autostart="false" loop="-1"></P>
<P>[code]<EMBED style="FILTER: Xray" src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop="-1" autostart="false" volume="0"/EMBED>[/code]</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>3。 普通灰色播放器:</P>
<P>&nbsp;</P>
<P><EMBED style="FILTER: Gray" src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg EMBED &gt;&lt; volume="0" autostart="false" loop="-1"></P>
<P>&nbsp;</P>
<P>[code]<EMBED style="FILTER: Gray" src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop="-1" autostart="false" volume="0"/EMBED>[/code]</P>
<P>&nbsp;</P>其中:width=100 height=40 中的数字分别表示播放器的宽度和高度 ,注意:都选择0将隐藏播放器(隐藏时一定要选择自动播放) autostart="true"中true或1表示自动播放,false或0表示手动播放 loop="true" 中的true或1表示重复播放,false或0表示只播放一次
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>下面再加上几个:</P>
<P>&nbsp;</P>
<P> </P>

<P>4. 简易播放器</P>
<P>&nbsp;</P>

<P></P>
<P><EMBED src=http://202.116.140.5/music/gccd/4/CD-0321/11.MP3 width=200 height=30 type=audio/x-pn-realaudio-plugin controls="ControlPanel" autostart="0"></EMBED></P>
<P></P>
<P>[code]<EMBED src=http://202.116.140.5/music/gccd/4/CD-0321/11.MP3 width=200 height=30 type=audio/x-pn-realaudio-plugin autostart="0" controls="ControlPanel"/EMBED>[/code]</P>
<P> </P>
<P> </P>
<b></b>
<P>5. 简易播放器 + 两端朦胧</P>
<P> </P>

<P></P>
<P><TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)gray(); WIDTH: 200px; HEIGHT: 83px"><TBODY><TR><TD><EMBED style="BORDER-RIGHT: silver 1px solid; BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; BORDER-BOTTOM: silver 1px solid" src=http://www.nxc.cn/bbs/UploadFile/2004-8/200481482641160.wma width=200 height=50 type=audio/x-mplayer2 console="video" showstatusbar="0" EnableContextMenu="0" volume="0" autostart="0" loop="-1"></TD></TR></TBODY></TABLE></P>
<P>[code]<TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)gray(); WIDTH: 200px; HEIGHT: 83px"><TBODY><TR><TD><EMBED style="BORDER-RIGHT: silver 1px solid; BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; BORDER-BOTTOM: silver 1px solid" src=http://www.nxc.cn/bbs/UploadFile/2004-8/200481482641160.wma width=200 height=50 type=audio/x-mplayer2 console="video" showstatusbar="0" EnableContextMenu="0" volume="0" autostart="0" loop="-1"></TD></TR></TBODY></TABLE>[/code]</P>
<P> </P>
<P> </P>
<b></b>
<P>6. 简易播放器 + 两端朦胧 + 居中放置 -不显示播放状态</P>
<P> </P>

<P></P>
<P><P align=center><TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=3, StartX=20, StartY=40, FinishX=0, FinishY=0)gray(); WIDTH: 300px; HEIGHT: 60px"><TBODY><TR><TD><EMBED src=音乐连接地址 width=270 height=40 type=audio/mpeg loop="true" autostart="true" panel="0"> </TD></TR></TBODY></TABLE></P></P>
<P>[code]<P align=center><TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=3, StartX=20, StartY=40, FinishX=0, FinishY=0)gray(); WIDTH: 300px; HEIGHT: 60px"><TBODY><TR><TD><EMBED src=音乐连接地址 width=270 height=40 type=audio/mpeg loop="true" autostart="true" panel="0"> </TD></TR></TBODY></TABLE></P>[/code]<P>
<P> </P>
<P> </P>
<FONT size=3>视频,FLASH  代码 </FONT>
<P> </P>
<P> </P>
<P><FONT size=3>清雅茉莉斑竹提供以下代码,用于发视频和FLASH: </FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>&lt;*EMBED src=网址 width=宽 height=高&gt; <FONT color=red>(使用时,去掉*)</FONT> </FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>这里,地址是视频或者FLASH的网络地址。 </FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>“宽” = 500, (可以根据你自己的喜好来调整) </FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>“高” = 400, (可以根据你自己的喜好来调整)</FONT></P>

清雅茉莉 2006-11-2 11:20

<center><EMBED style="FILTER: Invert" src=http://staff.ustc.edu.cn/~est/arxk.mp3 width=300 height=45 type=audio/mpeg loop="-1" autostart="false" volume="0"></EMBED>

<DIV align=center>
<TABLE style="BORDER-RIGHT: white 3px inset; BORDER-TOP: white 3px inset; BORDER-LEFT: white 3px inset; BORDER-BOTTOM: white 3px inset" cellSpacing=0 cellPadding=0 width=300 background=http://www.mypcera.com/photo/65/culture/art/music/17.gif  border=10>
<TBODY> <TR> <TD> <TABLE style="FILTER: Chroma (Color=''''#FFFAFA'''')" height=30 cellSpacing=0 cellPadding=0 width=300 border=0> <table width="295" border="0" cellspacing="0" cellpadding="0"><tr><td onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='red'"><P><EMBED style="FILTER: invert alpha(opacity=50) WIDTH: 295px; HEIGHT: 38px" src=http://s2.7t7t.com/pycs/D/2003825/12911/437542.Wma type=video/x-ms-asf volume="0" loop="1" autostart="false"></td></tr></table>
</TD></TR></TBODY></TABLE></DIV>

潇洒红梅 2006-11-2 19:07

感谢~~~~收藏了.........

相逢是梦中 2006-11-3 09:38

:D
<BR><BR><FONT style="FONT-SIZE: 25pt; FILTER: shadow(color=black); WIDTH: 100%; COLOR: #ab8eee; LINE-HEIGHT: 150%; FONT-FAMILY: 隶书">&nbsp;謝謝 樂土斑 ! <br>&nbsp;清雅茉莉 也不賴, 她的最好看~</FONT>

小王 2006-11-3 11:19

[size=5]技术贴,斑竹们置顶啊.让更多的朋友学习,除我外,因为我太笨了.:loveliness: :loveliness: [/size]

玉带云朵 2006-11-10 03:56

[color=Magenta][size=4]这是好贴,置顶。:victory: :victory: :victory: [/size][/color]

北纬 2006-11-27 12:50

真是太好了。

花如人生 2007-8-9 10:46

<EMBED style="FILTER: Xray" src=http://www.jbsy.cn/...load/20073210511755.wma width=300 height=45 type=audio/mpeg loop="-1" autostart="false" volume="0"/EMBED>

丹田乐土 2007-8-9 11:00

<P>[quote]原帖由 <I>花如人生</I> 于 2007-8-9 10:46 发表 &lt;EMBED src=<A id=song_url href="<a href=" hh.wma? mtv cy88.net http:><FONT" target="_blank">http://cy88.net/mtv/hh.wma"&gt;<FONT< a> color=#0000cc&gt;<A href="http://cy88.net/mtv/hh.wma</FONT></A>width=300" target=_blank>http://cy88.net/mtv/hh.wma</FONT></A>width=300</A> height=45 type=audio/mpeg l ... [/quote] </P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>花生你发这个音乐的时候,有三个需要改进的地方:</P>
<P>&nbsp;</P>
<P>一个是 wma 和 width 之间,要空一格,否则形成一个新字 wmawidth, 会把电脑晕死过去的~~</P>
<P>&nbsp;</P>
<P>第二是你的音乐地址,它是带着超级链接的(就是点击这个地址,它会打开一个网址)。你需要去掉它下头埋藏的超级链接;做法是,全选地址部份,点击发帖框上头的小工具:</P>
<DIV class=editor_buttonhover id=posteditor_cmd_unlink onmouseover="buttonContext(this, 'mouseover')" onclick="discuzcode('unlink')" onmouseout="buttonContext(this, 'mouseout')" mode="hover"><IMG title=移除链接 height=20 alt=移除链接 src="http://xfmxr.qq.topzj.com/images/common/bb_unlink.gif" width=21></DIV>
<P>&nbsp;</P>
<P>这时就可以去掉超级链接了。</P>
<P>&nbsp;</P>
<P>第三是你需要在“Discuz代码模式”中来发帖子,并且要在左手边的这样四个地方打选择的勾勾:“禁用URL识别”, “禁用Smiles”, “禁用Discuz代码”, “启用Html代码”。 打好了这四个勾勾,你就可以使用代码了。</P>
<P>&nbsp;</P>
<P>祝你成功~~</P>
<P>&nbsp;</P>
<P>&nbsp;</P>

深秋的叶儿 2008-3-22 21:08

<EMBED style="FILTER: Xray" src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop="-1" autostart="false" volume="0"/EMBED>

可可云 2008-3-22 21:11

<EMBED style="FILTER: Xray" src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop="-1" autostart="false" volume="0"/EMBED>
页: [1]
查看完整版本: 【html】音乐播放器代码