@FirstBlood

1367 단어
<!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>Untitled Document</title>
<style type="text/css">
li {
	cursor:pointer;
}
.cur {
	background:red;
}
</style>
<script type="text/javascript">
window.onload = function ()
{
       var aLi = document.getElementsByTagName("li");
       var i = 0;       
       for (i = 0; i < aLi.length; i++)
       {              
              aLi[i].onclick = function ()
              {
                     for (i = 0; i < aLi.length; i++) aLi[i].className = "";
                     this.className = "cur";
					 return false;
              };
       }
};
</script>
</head>

<body>
<div class="clMenu">
	<ul>
		<li><a class="mn0" href="index.htm"></a></li>
		<li><a class="mn0" href="index2.htm"></a></li>
		<li><a class="mn0" href="index3.htm"></a></li>
	</ul>
</div>
</body>
</html>

좋은 웹페이지 즐겨찾기