非常漂亮的JS代码经典广告
程序员文章站
2022-06-12 13:30:21
不错的图片切换演示效果复制代码 代码如下:
不错的图片切换演示效果
<!doctype html public "-//w3c//dtd xhtml 1.1//en" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title> - www.jb51.net</title>
<script type="text/javascript" src="mootools.js"></script>
<link href="imagemenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="imagemenu.js"></script>
</head>
<body >
<div id="kwick">
<ul class="kwicks">
<li class="kwick opt1"><span>1</span></li>
<li class="kwick opt2"><span>2</span></li>
<li class="kwick opt3"><span>3</span></li>
<li class="kwick opt4"><span>4</span></li>
<li class="kwick opt5"><span>5</span></li>
</ul>
</div>
<script type="text/javascript">
var mymenu ;
window.onload=load_var
function load_var(){
if (imagemenu){mymenu = new imagemenu($$('#kwick .kwick'),{openwidth:200});return}
else settimeout ("load_var()",30)
}
</script>
<br />
<a href=//www.jb51.net/> </a>
</body>
</html>
演示:
复制代码 代码如下:
<!doctype html public "-//w3c//dtd xhtml 1.1//en" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title> - www.jb51.net</title>
<script type="text/javascript" src="mootools.js"></script>
<link href="imagemenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="imagemenu.js"></script>
</head>
<body >
<div id="kwick">
<ul class="kwicks">
<li class="kwick opt1"><span>1</span></li>
<li class="kwick opt2"><span>2</span></li>
<li class="kwick opt3"><span>3</span></li>
<li class="kwick opt4"><span>4</span></li>
<li class="kwick opt5"><span>5</span></li>
</ul>
</div>
<script type="text/javascript">
var mymenu ;
window.onload=load_var
function load_var(){
if (imagemenu){mymenu = new imagemenu($$('#kwick .kwick'),{openwidth:200});return}
else settimeout ("load_var()",30)
}
</script>
<br />
<a href=//www.jb51.net/> </a>
</body>
</html>
演示: