Programming/Web Design

Adding video in Dreamweaver:

(

<video width="320" height="240" controls>

<source src="movie.mp4" type="video/mp4">

<source src="movie.ogg" type="video/ogg">

Your browser does not support the video tag.

</video>)

(

<video width="320" height="240" controls loop>

<source src="movie.mp4" type="video/mp4">

<source src="movie.ogg" type="video/ogg">

Your browser does not support the video tag.

</video>)



Adding a Flash Animation using JavaScript:

Use the following script in your html:

( <object width="225" height="200">

<param name="movie" value="alien.swf">

<embed src="alien.swf" width="225" height="200">

</embed>

</object> )

Hints:

the parenthesis are just so that you can see them here. Do not include them in your script.

Be sure to put the .swf file into your same folder as your html.