非常漂亮的JS代码经典广告
<!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/