您尚未登录。

#1 2015-02-02 08:32:48

caizhengzhu
管理员

网页自动跳转代码

很简单的HTML跳转代码,但自己是用来练习抬腿的。
自己要抬腿30秒,然后休息5秒。用下面代码建成1.html和2.html刷新时间分别为30秒和5秒,插入背景音乐1.wav
这样就能自动按时间跳转,发出声音。这样方便自己一边看电脑一边练习直抬腿
不过要用IE浏览器才会有背景音乐

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>抬腿</title>
<bgsound src="1.wav" loop="0">
</head>
<meta http-equiv="refresh" content="30;url=2.html">
<body>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>休息</title>
<bgsound src="1.wav" loop="0">
</head>
<meta http-equiv="refresh" content="5;url=1.html">
<body>
</body>
</html>

离线

在此主题中在线的注册用户:0, 访客:0

论坛底部