日期:2014-05-17 浏览次数:20407 次
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SimpleTree</title>
<link rel="stylesheet" type="text/css" href="/Styles/SimpleTree.css"/>
<script type="text/javascript" src="/Scripts/jquery-1.6.js"></script>
<script type="text/javascript" src="/Scripts/SimpleTree.js"></script>
<script type="text/javascript">
$(function () {
$(".st_tree").SimpleTree({
click: function (a) {
if (!$(a).attr("hasChild"))
alert($(a).attr("href"));
}
});
$(".menu1").each(function () {
$(this).bind('click', function (event) {
if ($(event.target).hasClass("title")) {
var $this = $(this);
var $span = $this.find(".title");
var $st_tree = $this.find(".st_tree");
if ($span.hasClass("selected")) {