html+js图片轮播包含背景音乐
来源:互联网 发布:如何查看电脑远程端口 编辑:程序博客网 时间:2024/05/20 03:45
<!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style type="text/css"> #tab { overflow: hidden; width: 100%; height: 250px; position: relative; float: left;} #tab>img:not(:first-child) { display: none;} </style> <script> var interval; var pos = 0; window.onload = function() { var images = document.getElementsByTagName('img'); var tab = document.getElementById("tab"); tab.onmouseover = function() { clearInterval(interval); } tab.onmouseout = function() { run(images); } run(images); } var run = function(images) { interval = setInterval(function() { images[pos].style.display = 'none'; pos = ++pos == images.length ? 0 : pos; images[pos].style.display = 'inline'; }, 3000); } </script></head> <body><audio src="music/花粥 - 一腔诗意喂了狗.mp3" autoplay="autoplay"></audio> <div id="tab"> <a href="http://www.iiover.com"><img src="img/01.jpg" width="100%" height="250" /></a> <a href="http://www.iiover.com"><img src="img/02.jpg" width="100%" height="250" /></a> <a href="http://www.iiover.com"><img src="img/03.jpg" width="100%" height="250" /></a> </div></body> </html>
阅读全文
0 0
- html+js图片轮播包含背景音乐
- html js简单实现图片轮播功能
- js图片轮播
- js图片轮播
- js图片轮播
- JS 图片轮播
- js图片轮播
- js图片轮播
- JS+Flash 图片轮播
- js实现图片轮播
- 图片轮播JS效果
- js图片轮播滚动
- js实现图片轮播
- js实现图片轮播
- js 图片轮播插件
- js实现图片轮播
- js实现图片轮播
- JS实例-图片轮播
- 视频解码库CUVID流程
- 《android开发艺术探索笔记》Part11、Android的线程和线程池
- 反序列化(先序)——split : string-->vector<string>
- 日常笔记之AP
- 常用 Git 命令清单
- html+js图片轮播包含背景音乐
- ES6--字符串的扩展
- 关于动态修改react-navigation各种属性方式
- maven scope含义的说明
- 欢迎使用CSDN-markdown编辑器
- Mybatis的逆向工程详解
- TabLayout属性详解
- golang 连接mysql数据库
- mysql索引index相关命令