html5视频播放
2015-07-19 22:37
573 查看
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>视频播放</title> <script type="text/javascript"> function PlayAndPause(){ var video=document.getElementById("video"); if(video.paused){ video.play(); }else{ video.pause(); } } function videobig(){ var video=document.getElementById("video"); video.width=800; video.height=800; } function videosmall(){ var video=document.getElementById("video"); video.width=300; video.height=300; } </script> </head> <body> <button onclick="PlayAndPause()">播放/暂停</button> <button onclick="videobig()">放大</button> <button onclick="videosmall()">缩小</button> <video id="video"> <source src="text.Mp4"> 您的浏览器不支持 </video> </body> </html>
相关文章推荐
- 疯狂html5演讲(两):HTML5简经常使用的元素和属性(一个):html5保留经常使用的元素
- HTML5 播放音频
- html5教程,文章list
- html5教程,文章list
- PWM例程__MK20DX128VLH5_K20系列
- PIT设置_中断优先级设置__MK20DX128VLH5_K20系列
- 使用Modernizr探测HTML5/CSS3新特性
- 我钟爱的HTML5和CSS3在线工具
- HTML5学习笔记简明版(4):新元素之video,audio,meter,datalist,keygen,output
- HTML5学习笔记简明版(5):input的type超级类型
- HTML5学习笔记简明版(8):新增的全局属性
- HTML5学习笔记简明版(9):变化的元素和属性
- 关于双色导航栏问题
- [FlashDevelop] 002.FlashDevelop + LayaFlash播放SWF并转成HTML5
- html5标签
- HTML5媒体
- Html5消除方块游戏总结-其他
- html5消除方块游戏总结-对象
- HTML5 Socket通信
- 自己写了个H5版本的俄罗斯方块