网页切换弹出切换城市层的简单研究
来源:互联网 发布:网络弱点 编辑:程序博客网 时间:2024/05/01 20:28
<html>
<head>
<title>NameTitle</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</head>
<SCRIPT language=javascript >...
function switchinCity()
...{
document.getElementById("site_Nav").style.display="";
document.onclick=hideinCity;
var lia=document.getElementById("site_Nav").getElementsByTagName("li");
for(var i=0;i<lia.length;i++)
...{
lia[i].onmouseover=showCity;
lia[i].onmouseout=showCity;
}
}
function hideCity()
...{
document.getElementById("site_Nav").style.display="none";
}
function showCity()
...{
document.getElementById("site_Nav").style.display="";
}
function hideinCity(e)...{
var obj=e?e.target:event.srcElement;
if(obj.id!="site_Nav"&&obj.id!="switchCitybtn")...{
document.getElementById("site_Nav").style.display="none";
document.getElementsByTagName("body")[0].onclick= function()...{};
}
}
</SCRIPT>
<body>
<FORM id=formsearch name=formsearch method=get target=_blank>
<DIV id=t_sitename>上海站
<SPAN id=switchCitybtn onmouseover=switchinCity()>[切换城市]</SPAN>
</DIV>
<DIV id=site_Nav style="DISPLAY: none" onmouseout=hideCity()>
<LI class=l_li>
<SPAN class=fontred>上海</SPAN>
<A href="http://bj.studyget.com/">北京</A>
<A href="http://gz.studyget.com/">广州</A>
<A href="http://tj.studyget.com/">天 津</A>
<A href="http://wh.studyget.com/">武汉</A>
<A href="http://sz.studyget.com/">深圳</A>
</LI>
<LI class=l_li>
<A href="http://nj.studyget.com/">南京</A>
<A href="http://hz.studyget.com/">杭州</A>
<A href="http://xa.studyget.com/">西安</A>
<A href="http://sjz.studyget.com/">石家庄</A>
<A href="http://dl.studyget.com/">大连</A>
<A href="http://jn.studyget.com/">济南</A>
</LI>
<LI class=l_li><A href="http://cq.studyget.com/">重庆</A>
<A href="http://qd.studyget.com/">青岛</A>
<A href="http://cs.studyget.com/">长沙</A>
<A href="http://hrb.studyget.com/">哈尔滨</A>
<A href="http://hf.studyget.com/">合肥</A>
<A href="http://sy.studyget.com/">沈阳</A>
</LI>
<LI class=l_li>
<A href="http://cc.studyget.com/">长春</A>
<A href="http://zc.studyget.com/">郑州</A>
<A href="http://fz.studyget.com/">福州</A>
<A href="http://nc.studyget.com/">南 昌</A>
<A href="http://cd.studyget.com/">成都</A>
</LI>
</DIV>
</FORM>
</body>
</html>
<head>
<title>NameTitle</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</head>
<SCRIPT language=javascript >...
function switchinCity()
...{
document.getElementById("site_Nav").style.display="";
document.onclick=hideinCity;
var lia=document.getElementById("site_Nav").getElementsByTagName("li");
for(var i=0;i<lia.length;i++)
...{
lia[i].onmouseover=showCity;
lia[i].onmouseout=showCity;
}
}
function hideCity()
...{
document.getElementById("site_Nav").style.display="none";
}
function showCity()
...{
document.getElementById("site_Nav").style.display="";
}
function hideinCity(e)...{
var obj=e?e.target:event.srcElement;
if(obj.id!="site_Nav"&&obj.id!="switchCitybtn")...{
document.getElementById("site_Nav").style.display="none";
document.getElementsByTagName("body")[0].onclick= function()...{};
}
}
</SCRIPT>
<body>
<FORM id=formsearch name=formsearch method=get target=_blank>
<DIV id=t_sitename>上海站
<SPAN id=switchCitybtn onmouseover=switchinCity()>[切换城市]</SPAN>
</DIV>
<DIV id=site_Nav style="DISPLAY: none" onmouseout=hideCity()>
<LI class=l_li>
<SPAN class=fontred>上海</SPAN>
<A href="http://bj.studyget.com/">北京</A>
<A href="http://gz.studyget.com/">广州</A>
<A href="http://tj.studyget.com/">天 津</A>
<A href="http://wh.studyget.com/">武汉</A>
<A href="http://sz.studyget.com/">深圳</A>
</LI>
<LI class=l_li>
<A href="http://nj.studyget.com/">南京</A>
<A href="http://hz.studyget.com/">杭州</A>
<A href="http://xa.studyget.com/">西安</A>
<A href="http://sjz.studyget.com/">石家庄</A>
<A href="http://dl.studyget.com/">大连</A>
<A href="http://jn.studyget.com/">济南</A>
</LI>
<LI class=l_li><A href="http://cq.studyget.com/">重庆</A>
<A href="http://qd.studyget.com/">青岛</A>
<A href="http://cs.studyget.com/">长沙</A>
<A href="http://hrb.studyget.com/">哈尔滨</A>
<A href="http://hf.studyget.com/">合肥</A>
<A href="http://sy.studyget.com/">沈阳</A>
</LI>
<LI class=l_li>
<A href="http://cc.studyget.com/">长春</A>
<A href="http://zc.studyget.com/">郑州</A>
<A href="http://fz.studyget.com/">福州</A>
<A href="http://nc.studyget.com/">南 昌</A>
<A href="http://cd.studyget.com/">成都</A>
</LI>
</DIV>
</FORM>
</body>
</html>
- 网页切换弹出切换城市层的简单研究
- 纯CSS弹出层,城市切换效果
- 城市切换
- 城市切换
- 最简单的网页繁体简体切换
- 网页简单的上下切换轮播
- 简单实现美团城市切换
- javascript的应用,简单设计切换网页主题的应用
- 关于切换城市的资料网址:
- 实现京东的城市切换功能
- 百度Map切换城市
- php多城市切换
- Android仿美团切换城市
- Android仿美团切换城市
- 高德切换城市
- Android仿美团切换城市
- Android仿美团切换城市
- 城市列表切换
- RS-485总线通信系统的可靠性措施
- 一些有用的批处理
- POJ 2533 Longest Ordered Subsequence 解题报告
- 模拟I2C总线多主通信研究与软件设计
- 开工
- 网页切换弹出切换城市层的简单研究
- I2S标准
- Photoshop色彩模式完全手册
- 动态创建数组
- 七种qsort排序方法
- 再见
- 上大学要知道的事 1-86.......非常之有道理
- 项目进度控制中的注意事项
- 项目经验总结[转载]