一共两个文件,html页面里面调用js文件就可以了,不是要把代码也复制到html文件里面^……
联动菜单 是这个意思吗?
实现方法很多 推荐一个比较好的:琥珀联动菜单
以下信息为琥珀联动菜单:(在此感谢作者!)
下面是静态页面:HPMenu_Demo.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>琥珀网 - javascript无限级联动菜单</title>
<style type="text/css">
body, td
{
font-family: 宋体;
font-size: 12px;
}
</style>
<script language="javascript" src="hpmenu.js"></script>
</head>
<body>
<form name="form1" method="post" action="">
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="F1F1F1">
<td height="24" colspan="2" align="center">琥珀无限级联动菜单-JavaScript版 [HPMenu V1.0]</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="12%" height="24" align="center">所 在 洲:</td></