9.多媒体标记
bgsound: 背景音乐
embed: 播放多媒体文件.
marquee: 移动
属性:direction 移动目标方向 left,right ,up,down ,up,down移动距离是固定的200px
behavior: 行为方式 取值:slide,alternate,scroll
slide: 滑动 alternate: scroll:来回滚动
scrollamount : 移动速度
loop: 循环多少圈。负值表示无限循环
scrolldelay: 移动一次休息多长时间。单位是毫秒
1、需求分析一代码
<body>
<bgsound src = "天仙子.mp3" loop = "-1"></bgsound> 打开页面自动播放页面,循环播放
<embed src = "天仙子.mp3" autostart = "false" volume = "0" loop = "5"></embed>
打开页面播放设置,控制播放
<marquee behavior = "alternate" >我来啦</marquee> 弹幕交替
<marquee behavior = "scroll" scrollamount = "50" loop = "3" scrolldelay = "1000">我来啦</marquee> 弹幕循环滚动
<marquee direction = "up" behavior = "slide" width = "300" height = "300" bgcolor = "#ff9999" >我来啦</marquee>
</body>
本文出自 “与君共勉” 博客,请务必保留此出处http://rickyigoogle.blog.51cto.com/8747999/1683395
原文:http://rickyigoogle.blog.51cto.com/8747999/1683395