精品推荐
网页中的多媒体播放控制
日期:2008年1月16日 作者: 查看:[大字体
中字体 小字体 ]
MP3 以下内容为程序代码: <embed src="mm.mp3" width="147" height="44" AUTOSTART=TRUE></embed> meidy play能支持的都能放的 鼠标到,声音出,2个示例(以前贴过的) 以下内容为程序代码: <script language="vbs"> SUB btn1_onmouseover document.all("bgsoundone").src="http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/S/21.mid"; end sub sub btn1_onmouseout document.all("bgsoundone").src="" end sub SUB btn2_onmouseover document.all("bgsoundone").src="http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/S/11.mid"; end sub sub btn2_onmouseout document.all("bgsoundone").src="" end sub </script> <bgsound id=bgsoundone src="" loop=-1> <A href="#" name=btn1>HERE1</a><br><br> <A href="#" name=btn2>HERE2</a><EMBED src="http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/S/21.mid"; autostart="false" width="0" height="0" ><EMBED src="http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/S/11.mid"; autostart="false" width="0" height="0" > 点击什么音源,都在页面固定的“播放器”播放(以rm文件为例) 1.做一个小框架页 代码片段如下: 以下内容为程序代码: <IFRAME src="http://www.xiakedao.com/biyun/3/0/diangemain.htm"; marginwidth="0" marginheight="0" scrolling="no" frameborder="0" width="50" height="25" name="diange"></IFRAME> 2.这个内嵌框架页 width="72" height="17" ,框架无滚动条,刚好只显示REALPLAY播放器,不会露馅。注意设该框架页的名字。比如这里是diange 3.把以下这段代码放在你设定的框架页里,我这里是http://www.xiakedao.com/biyun/3/0/diangemain.htm页面,最好先把页边距设为0。 <embed height=25 src=http://www.xiakedao.com/biyun/ren/1.rm type=audio/x-pn-realaudio-plugin width=50 autostart="true" controls="PlayButton"> 4.这是一个实例 <IFRAME src="http://www.xiakedao.com/biyun/3/0/diangemain.htm"; marginwidth="0" marginheight="0" scrolling="no" frameborder="0" width="50" height="25" name="diange"></IFRAME> 其中http://www.xiakedao.com/biyun/3/0/diangemain.htm的原文件是 <body topmargin="0" leftmargin="0"> <embed height=25 src=http://www.xiakedao.com/biyun/ren/1.rm type=audio/x-pn-realaudio-plugin width=50 autostart="true" controls="PlayButton"> </body> 现在做一个框架页是为了让你点击连接后使RM文件在这个固定的播放器里播出而已。为每一个RM做一个类似diangemain.htm这样的页面,修改其中的声音地址就可以了。注意主页面里的连接要写明 target="diange"(你可以自己设定名字的,不过要与框架页的name="diange" 相对应) 控制媒体播放器音量(转贴 ) 以下内容为程序代码: <embed id=mm width=100 height=100 src=http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/1.mid></embed><br> <br> <button onclick=mm.ShowDialog(2)>Option</button>
复制本页网址和标题,发送给你QQ/Msn的好友一起分享
上一篇:赛门铁客防火墙D.o.s攻击代码
下一篇:提升JSP应用程序的七大绝招
相关文章:
相关软件: