html 的基础知识
来源:互联网 发布:网络盒子怎么连接电视 编辑:程序博客网 时间:2024/05/17 09:39
仅供自己学习参考之用~
1.视频播放(包括html自带的 和 javascript自己实现的)
<script type="text/javascript">
function vidplay() {
var video = document.getElementById("Video1");
var button = document.getElementById("play");
if (video.paused) {
video.play();
button.textContent = "||";
} else {
video.pause();
button.textContent = ">";
}
}
function restart() {
var video = document.getElementById("Video1");
video.currentTime = 0;
}
function skip(value) {
var video = document.getElementById("Video1");
video.currentTime += value;
}
</script>
<video id="Video1" width="100%" muted autoplay controls>
<source src="source/demo.mp4" type="video/mp4" />
</video>
<div id="buttonbar">
<button id="restart" onclick="restart();">[]</button>
<button id="rew" onclick="skip(-10)"><<</button>
<button id="play" onclick="vidplay()">></button>
<button id="fastFwd" onclick="skip(10)">>></button>
</div>
2.<textarea name="yoursuggest" cols ="50" rows = "50"></textarea>
其中cols表示textarea的宽度,rows表示textarea的高度。
- Html的表单基础知识
- HTML的基础知识
- html的基础知识
- HTML的一些基础知识
- 有关html的基础知识
- html的基础知识总结
- html 的基础知识
- 学习html的基础知识
- HTML的基础知识
- HTML的基础知识(一)
- HTML DOM的一些基础知识
- 关于html的一些基础知识
- 关于HTML的基础知识汇总
- HTML和CSS的基础知识
- HTML的基础知识(1)
- html和css的基础知识
- Html基础知识
- HTML 基础知识
- android 资源id及资源id的动态获取
- 危险的森林里你最不希望遇到的是什么动物
- 写好SCI论文的语言技巧 之 学术英语的表达 Academic English
- 使用cocoapods添加的库和不支持arm64的API真机调试问题
- Linux下区分物理CPU、逻辑CPU和CPU核数
- html 的基础知识
- 快速SELECT算法
- 浅谈项目管理——《项目管理修炼之道》读后感
- 九度_题目1519:合并两个排序的链表
- pthread_create()给创建的线程传递参数
- 求归属于ID下的所有ID
- 网络
- 丢失了两元钱的车这只是一个故事吗
- 设计模式13—Bridge设计模式