
<html>
<head>
<title>音乐的是实现</title>
<bgsound loop="infinite" src="sound/xxx.mid">
</head>
<body>
</body>
</html>
这个单单靠css或者html是办不到的要达到你这个目的,那么,在播放音乐的时候,应该要把音乐已经播放的时间,记录到用户端,比如cookie,当按分页后,读取客户端的cookie参数,然后将音乐调整至相应时间继续播放。这样就达到你的目的了,但。这个过程,似乎最好是使用到flash,js等技术!
可以用 expression 结合JS来控制它。<style>
.styleSound{}
.styleTest
{
over:expression(((this.readyState=="complete") &&(this.className=="styleSound")) || (
(
myinit=function(oSource)
{
oSource.src="音乐地址"
}
) ,(myinit(this)), (this.className="styleSound")))
}
</style>
<bgSound id="oSound" class="styleTest"/>
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)