|
復制代碼 代碼如下:
<!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=http://www.jb51.NET/> 腳本之家</a>
</body>
</html>
演示:
http://www.jb51.NET/test/picslide/
JavaScript技術:非常漂亮的JS代碼經典廣告,轉載需保留來源!
鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。