点击某处弹出一层显示你要选择的数据

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <style type="text/css">
*{padding:0;Margin:0;}
body{ font-size:12px;}
a{color:#03c;text-decoration:none;}
a:hover{color:#f00;text-decoration:none;}
ul{List-style-type:none}
.more{padding-right:18px;background:url(images/ico.gif) no-repeat right -10px}
.more:hover{background-position:right -34px;}
.gotoblk{width:300px;};
.gotoblk ul{ list-style:none;}
.gotoblk ul li{ width:100px; height:25px; float:left;}
.gotoblk ul li a{ display:block; width:100px; height:21px; padding-top:4px; text-align:center;}
.gotoblk ul li a:hover{ background:#FF9966}
.goto{ position:relative; z-index:10; width:90px;}

</style>
<script language="javascript" type="text/javascript">
    var $=function(id){
        return typeof(id)=="string"?document.getElementById(id):id;
    }
    window.onload=function(){
        $("lnkGDZP").onclick=function(){
            with($("goto").style){
                position="absolute";
                left="0px";
                top="22px";
                zIndex=100;
                display=($("goto").style.display=="block"?"none":"block");
            }           
        }
    }
</script>
</head>
<body>           
<div style="margin:150px;" class="goto">
<a href="javascript:void(0);" class="more" id="lnkGDZP">各地招聘</a>
            <div id="goto" style="display:none; background:#FFFFCC">
            <div class="gotoblk">     
                <ul>
                    <li><a href="http://beijing.chinahr.com">北京</a></li>
                    <li><a href="http://shanghai.chinahr.com">上海</a></li>
                    <li><a href="http://guangzhou.chinahr.com">广州</a></li>
                    <li><a href="http://suzhou.chinahr.com">苏州</a></li>
                    <li><a href="http://shenzhen.chinahr.com">深圳</a></li>
                    <li><a href="http://zhusanjiao.chinahr.com">珠三角</a></li>
                    <li><a href="http://hangzhou.chinahr.com">杭州</a></li>
                    <li><a href="http://ningbo.chinahr.com">宁波</a></li>
                    <li><a href="http://wuxi.chinahr.com">无锡</a></li>
                    <li><a href="http://wuxi.chinahr.com">常州</a></li>
                    <li><a href="http://tianjin.chinahr.com">天津</a></li>
                    <li><a href="http://xian.chinahr.com">西安</a></li>
                    <li><a href="http://wuhan.chinahr.com">武汉</a></li>
                    <li><a href="http://nanjing.chinahr.com">南京</a></li>
                    <li><a href="http://changsha.chinahr.com">长沙</a></li>
                    <li><a href="http://chengdu.chinahr.com">成都</a></li>
                    <li><a href="http://dalian.chinahr.com">大连</a></li>
                    <li><a href="http://shandong.chinahr.com">山东</a></li>                   
                    <li><a href="http://fujian.chinahr.com">福建</a></li>
                    <li><a href="http://chongqing.chinahr.com">重庆</a></li>
                    <li><a href="http://zhengzhou.chinahr.com">郑州</a></li>
                    <li><a href="http://shenyang.chinahr.com">沈阳</a></li>
                    <li><a href="http://taiyuan.chinahr.com">太原</a></li>
                    <li><a href="http://hefei.chinahr.com">合肥</a></li>
                    <li><a href="http://quanguo.chinahr.com">全国</a></li>
                    <li><a href="#" onclick="$('goto').style.display='none'" style="color:red;">关 闭</a></li>
                </ul>               
            </div>        
            </div>
   </div>   
</body>
</html>

 

 

 

阅读更多
个人分类: ASP.Net
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭