<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>测试</title>
<link href="/css/global.css" rel="stylesheet" type="text/css" />
<link href="/css/layout.css" rel="stylesheet" type="text/css" />
<link href="/css/box.css" rel="stylesheet" type="text/css" />
<link href="/css/widgets.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/script/prototype.js"></script>
<script type="text/javascript">
window.onload = function(){
var lis = document.getelementsbytagname("li");
lis = $a(lis);
lis.each(function(li){
li.onclick = function(){
if(li.hasclassname("current")){
alert("current li")
}
}
})
}
</script>
<style type="text/css">
.current{
font-weight: bold;
color: #f60;
}
</style>
</head>
<body>
<ul><li>测试测试</li><li class="current">测试测试</li><li>测试测试</li><li>测试测试</li></ul>
</body>
</html>