HTML学习笔记【7】添加多媒体

来源:互联网 发布:怎么切换电脑网络 编辑:程序博客网 时间:2024/06/06 02:47

 

1. 设置滚动效果

A. 滚动标记 marquee

<marquee></marquee>

可以移动文字,图像,表格等

B.滚动方向 direction

<marquee dirction="滚动方向">...</marquee>

其中滚动方向可以是up downleftright

C.滚动方式 behavior

<marquee behavior="滚动方式">...</marquee>

其中滚动方式可以是scroll(循环滚动,默认)slide(只滚动依次就停止)altermate(来回交替进行滚动)

D.滚动速度 scrollamount

<marquee scrollamount="滚动速度">......</marquee>

实际上就是设置每次滚动的长度以像素为单位

E.滚动延迟 scrolldelay

<marquee scrilldelay="时间间隔">......</marquee>

时间间隔的单位是毫秒

F.滚动循环 loop

<marquee loop="循环次数">......</marquee>

G.滚动背景颜色 bgcolor

<marquee bgcolor="背景颜色">......</marquee>

H.滚动范围 width height

<marquee width="背景宽度" height="背景长度" >......</marquee>

I.空白空间 hspace vspace

<marquee hspace="水平范围" vspace="垂直范围">......</marquee>

2. 插入多媒体文件

A. 插入flash动画

<embed src="多媒体文件地址" width="多媒体宽度" height="多媒体高度"></embed>

B.插入音频和视频文件

<embed src="多媒体文件的地址" width="播放界面的宽度" height="播放界面的高度"></embed>

3.  设置背景音乐

A.背景音乐 bgsound<bgsong src="背景音乐的地址">

B.循环次数 loop <bgsong src="背景音乐的地址" loop="播放次数">

如果需要无限循环播放 请将播放次数设置为true

4.插入 Java Applet

<apple code="class文件" width="宽度" height="高度">

<param name="文件夹的名称" value="图片名称">

</applet>