日期:2014-05-17  浏览次数:20642 次

这是一个菜单JS代码,怎么插入到页面中??
我在另一个页面中加入一个表格,想把这个页面加入到表格中去,结果都变掉了
怎么插入啊,帮忙一下下啊




<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;" />
<title>商品分类导航菜单</title>
<script type="text/javascript" src="jquery-1.4.2.js" /></script>
<script type="text/javascript"/>
$(document).ready(function(){
$(".h2_cat").mousemove(function(){
$(this).addClass("h2_cat active_cat");
}).mouseout(function(){
$(this).removeClass("active_cat");
});
});
</script>

<style type="text/css">
.left_category{
  width:150px;
  font-size:12px;
  font-family:arial,sans-serif;
  letter-spacing:2px;
}
.left_category h1{
  background-image:url(images/category_head.gif);
  height:20px;
  background-repeat:no-repeat;
  font-size:14px;
  font-weight:bold;
  padding-left:15px;
  padding-top:8px;
  margin:0px;
  color:#FFF;
}
.left_category .left_cat_list{
width:148px;
border-color:#b60134;
border-style:solid;
border-width:0px 1px 1px 1px;
line-height:13.5pt;
}
.left_category .left_cat_list h2 {
margin:0px;
padding:3px 5px 0px 9px;
}
.left_category .left_cat_list h2 a {
color:#d6290b;
font-weight:bold;
font-size:14px;
line-height:22px;
}
.left_category .left_cat_list h2 a:hover {
color:#d6290b;
font-weight:bold;
font-size:14px;
line-height:22px;
}
.left_category .h2_cat{
 width:148px;
 height:26px; 
 background-image:url(images/20100409124819709.gif);
 background-repeat:no-repeat; 
 line-height:26px;
 font-weight:normal;
 color:#333333;
 position:relative;
}
.left_category .h2_cat_1{
 width:148px;
 height:26px; 
 background-image:url(images/20100409124819113.gif);
 background-repeat:no-repeat; 
 line-height:26px;
 font-weight:normal;
 color:#333333;
 position:relative;
}
.left_category a{
 font:12px;
 text-decoration:none;
 color:#333333;
}
.left_category a:hover{
 text-decoration:underline;
 color:#ff3333;
}
.left_category h3{
margin:0px; 
padding:0px;
height:26px; 
font-size:12px; 
font-weight:normal;
display:block; 
padding-left:8px;
}
.left_category h3 span{color:#999999; width:145px; float:right;}
.left_category h3 a{ line-height:26px;}
.left_category .h3_cat{
 display:none;
 width:204px;
 position:absolute; 
 left:123px; 
 margin-top:-26px; 
 cursor:auto;
}
.left_category .shadow{
position:inherit;
background:url(images/20100409124819581.gif) left top;
width:204px;
}
.left_category .shadow_border{
position:inherit; 
width:200px; 
border:1px solid #959595; margin-top:1px; 
border-left-width:0px; 
background:url(images/20100409124819246.gif) no-repeat 0px 21px;  
background-color:#ffffff; 
margin-bottom:3px
}
.left_category .shadow_border ul{margin:0; padding:0; margin-left:15px}
.left_category .shadow_border ul li {
list-style:none;
padding-left:10px;
background-image:url(images/20100409124819650.gif);
background-repeat:no-repeat;
background-position:0px 8px;
float:left