Insert flash animation and music into HTML multimedia application web page


1、 Application of multimedia in HTML ﹣ false animation (insert flash animation into web page)

1. The first way to insert Flash Animation: using < embed >… < embed > to mark the animation will automatically shrink

SRC = URL (flash path)
Width = pixel / percentage (flash width)
Height = pixel / percentage (false height)
Window to play flash’s own rectangular window
Opaque makes the flash hidden page behind it
Transparent makes the background of flash transparent

< embed SRC = “.. /.. / material library / Flash animation material / text 1. SWF” width = “600” > < / embed >

< embed SRC = “.. /.. / material library / Flash animation material / picture commercial home advertising. SWF” wmode = “window” > < / embed >

2. The second way to insert Flash Animation: use < Object >… < Object > tag to insert flash animation, or use DW software to automatically generate code < Object >, insert — Multimedia — select file

2、 Multimedia application in HTML MP3 (insert music into web page)

1. Use < embed >… < embed >
Property value description
Utostart true / false auto / non auto play
Loop number of digital music cycles (unlimited if not added)

Its predecessor is < bgSound SRC = “URL” loop = “times” > which can be used as background music

Copy code

The code is as follows:

< embed SRC = “.. /.. / material library / Cai chunjia – wait for a sunny day. Mp3” autostart = “true” loop = “4” > < / embed >
< bgSound SRC = “.. /.. / material library / Deng Ziqi – hourglass of memories. Mp3” / >

2. Use the < Object >… < Object > tag to insert MP3 music
Property value description
Name SRC (path) music path
Whether utoplay (true / false) plays automatically

Copy code

The code is as follows:

< object data = “.. /.. / material library / Cai chunjia – wait for a sunny day. Mp3” >
< param name = “SRC” value = “.. /.. / material library / Cai chunjia – wait for a sunny day. Mp3” / >
<param name=”autoplay” value=”flase” />

3、 Set text to be active

< marquee > active text < / marquee > (there are limitations, some browsers do not support it well)

Direction = “scroll direction” (left (default)), right (right), up (up), down (down))
Behavior = “scroll” (circle, slide, alternate)
Loop = “number of cycles to scroll” the default loop is infinite
Scrolldelay = “delay” (step by step, stop by step)
Scrollamount = “speed” (the higher the value, the faster)
Bgcolor = “back color”
Width = “width”
Height = “height”
Hspace = “pixel” space between left and right sides and browser boundary
VSpace = “pixel” the distance between the upper and lower sides from the browser boundary
OnMouseOver = “this. Stop()”: stop scrolling when the mouse is over
Onmouseout = “this. Start()” take the mouse and continue to scroll

Copy code

The code is as follows:

<marquee direction=”left” behavior=”scroll” scrollamount=”3″ bgcolor=”#FFFFCC” width=”440″ height=”250″ hspace=”100″ vspace=”100″ onmouseover=”this.stop()” onmouseout=”this.start()”>
<ul type=”square”>
<li>Li Dongsheng, Vice Minister of the Ministry of public security, has been investigated and the central anti-corruption Committee has gone deep into the top of the political and Legal Commission</li>
<li>Reuters: Belgian company helped China Beidou system write code</li>
<li>The change of self media: a trial of the agent model of entertainment industry</li>
<li>The State Council’s think tank approved the bank’s huge profits: the dog also makes money sitting in the president’s seat</li>
<li>Secretary of the Party committee of Tibet: 98% of the Tibetan people’s safety satisfaction in 2013</li>
<li>A survey of famous “public mistresses”: all of them have had an affair with several corrupt officials (photo)</li>
<li>It’s meaningless for foreign media to point out that Chinese civil servants become servants</li>
<li>Liu qiangdong comes back from a lightning trip to Miss Li Guoqing</li>
<li>North Korea warns against high-level visits to the western front by South Korean and US military</li>
<li>On cultural differences from Martin Luther King’s false entry into advertising</li>
<li>Chongqing adjusts the leadership management system of state-owned enterprises and strictly implements 60 year old retirement</li>

Recommended Today

Configure Apache to support PHP in the Apache main configuration file httpd.conf Include custom profile in

In Apache’s main configuration file / conf/ http.conf Add at the bottom Include “D:workspace_phpapache-php.conf” The file path can be any In D: workspace_ Create under PHP file apache- php.conf file Its specific content is [html] view plain copy PHP-Module setup LoadFile “D:/xampp/php/php5ts.dll” LoadModule php5_module “D:/xampp/php/php5apache2_2.dll” <FilesMatch “.php$”> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch “.phps$”> SetHandler application/x-httpd-php-source </FilesMatch> […]