html代码
网站首页
公司介绍
新闻中心
产品体系
典型案例
客户服务
人才招聘
联系我们
领先网站建设,seo优化,网络推广,一站通式网络营销平台、完善的售后服务体系 武汉网站建设热线:027-68870209
公司简介 | 发展历程 | 合作伙伴
公司新闻 | 行业动态
网络/网站 | 一比多 | 商机宝 | 书生商友
企业单位客户 | 政府机构 | 酒店宾馆 | 机械设备 | 装饰设计 | 服务业
域名查询 | 帮助中心 | 网站备案 | 业务文档下载
人才中心
联系方式 | 付款方式
-----------------------------------------------------------------------------------
css样式:
#nav {
width:100%;
height:71px;
font-size:12px;
background-image:url(images/nav.gif);
}
#nav_menu {
width:1003px;
height:36px;
padding-top:7px;
}
#menu_parent {
padding-left:124px;
height:36px;
font-size:12px;
}
#menu_parent li {
height:36px;
line-height:36px;
text-align:center;
float:left;
list-style:none;
}
#menu_parent .nav_li01 {
width:93px;
}
#nav ul .nav_li02 {
width:1px;
background:url(images/nav_gd_bg.gif) no-repeat;
}
.nav_li01 a:link, .nav_li01 a:visited {
color:#fff;
text-decoration:none;
display:block;
}
.nav_li01 a:hover, .nav_li01 a:active {
color:#ccc;
text-decoration:none;
background:url(images/nav_hover.gif) no-repeat;
display:block;
}
.nav_li01hover {
width:93px;
height:36px;
line-height:36px;
text-align:center;
display:block;
background:url(../images/nav_hover.gif) no-repeat;
text-decoration:none;
}
.nav_li01hover a:link, .nav_li01hover a:visited {
color:#ddd;
text-decoration:none;
}
/*sub_nav start*/
#sub_nav {
width:100%;
height:28px;
clear:both;
}
#sub_box {
/* width:755px;*/
width:848px;
margin:auto;
height:28px;
padding-left:124px;
padding-right:124px;
}
#sub_box div {
height:28px;
line-height:28px;
color:#999999;
display:none;
}
#sub_box a {
color:#999999;
text-decoration:none;
}
#sub_box a:hover, #sub_box a:active {
color:#ec0000;
}
#son1 {
margin-left:24px;
}
#son2 {
margin-left:112px;
}
#son3 {
margin-left:205px;
}
#son4 {
margin-left:299px;
}
#son5 {
margin-left:395px;
}
#son6 {
margin-left:138px;
}
#son7 {
margin-left:570px;
}
#son8 {
margin-left:675px;
}
#son9 {
margin-left:730px;
}
/*sub_nav end*/
------------------------------------------------------------------------------------
common.js文件:
function ymshow(num)
{
document.getelementbyid(ymzc).style.display=none;
document.getelementbyid(ymys).style.display=none;
document.getelementbyid(num).style.display=block;
}
function bannerhover(name, now) {
var thisul = document.getelementbyid(name);
var thisli = thisul.getelementsbytagname(li);
var thistotal = thisli.length;
for (var i = 0; i if (i == now) {
thisli[i].classname = dhhover;
thisli[i].onmouseout = function() {
this.classname = dhhover;
}
}
else {
thisli[i].classname = dhmove;
}
}
}
function meiti(num,str) {
document.getelementbyid(mei01).style.display = none;
document.getelementbyid(mei02).style.display = none;
document.getelementbyid(mdesign).style.display = none;
document.getelementbyid(minternet).style.display = none;
document.getelementbyid(num).style.display = ;
document.getelementbyid(str).style.display = ;
}
function seoshow(num, str) {
document.getelementbyid(baiduseo).style.display = none;
document.getelementbyid(gugeseo).style.display = none;
document.getelementbyid(baiducontent).style.display = none;
document.getelementbyid(gugecontent).style.display = none;
document.getelementbyid(num).style.display = ;
document.getelementbyid(str).style.display = ;
}
function bannerhover(name, now) {
var thisul = document.getelementbyid(name);
var thisli = thisul.getelementsbytagname(li);
var thistotal = thisli.length;
for (var i = 0; i var num=i+1;
if (i == now) {
thisli[i].classname = nav_li01hover;
thisli[i].onmouseout = function() {
this.classname = nav_li01hover;
}
}
else if(num%2==1) {
thisli[i].classname = nav_li01;
}else
{
thisli[i].classname = nav_li02;
}
}
}
--------------------------
m.js文件:
var mcontainm=document.getelementbyid(menu-parent).getelementsbytagname(a);
var mcontains=document.getelementbyid(sub_box).getelementsbytagname(div);
for(var mi=0;mi mcontainm[mi].onmouseover=function(){mover(this.id.replace(par,));}
mcontains[mi].onmouseover=function(){mover(this.id.replace(son,));}
mcontainm[mi].onmouseout=function(){mout(this.id.replace(par,));}
mcontains[mi].onmouseout=function(){mout(this.id.replace(son,));}
}
if(def!=null){document.getelementbyid(par+def).classname=menua;document.getelementbyid(son+def).style.display=block;}
public.js文件很长 就不发了 但应该与它无关。
回复讨论(解决方案) 光看你这么长的代码,也没排好顺序,估计大家 都晕了……
已经自行解决了