A tentative study of HTML5---video + DOM (vedio playback)

Source: Internet
Author: User

Lang= "en" under the 1:HTML5 development environment

2:

<video width= "height=" controls= "Controls" >     which  controls= the controls controls property for adding play, pause, and volume controls.

<div style= "Text-align:center" >
<button onclick= "Bigen ()" > Play/Pause </button>
<button onclick= "big ()" > </button>
<button onclick= "centre ()" > in </button>
<button onclick= "Small ()" > Small </button>
</br>
<video id= "Video1" width= "420" style= "margin-top;15px" controls= "Controls" >
<source src= "Mp4/mov_bbb.mp4" type= "Video/mp4"/>
<source scr= "Mp4/mov_bbb.mp4" type= "Video/ogg" >
</video>
</div>
<script type= "Text/javascript" >
var Myone1=document.getelementbyid ("Video1");

function Bigen ()
{
if (myone1.paused)
Myone1.play ();
Else
Myone1.pause ();
}
Function Big ()
{
myone1.width=560;
}
Function Centre ()
{
myone1.width=420;
}
function Small ()
{
myone1.width=320;
}
</script>

A tentative study of HTML5---video + DOM (vedio playback)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.