ajax div 弹出层赋值,div弹出层的ajax登录(Jquery版+c#)

页面初始化,界面如图所示:

3671e0fe38a985b6c5aaf3d05698c470.png

Server name文本框获取焦点时候,界面如图所示(这里可以改成你登录的验证码):

dd013fdd79c3324eb639839cfb3964b1.png

可以加载SQL Server服务列表,也是我的简易SQL查询分析器评论中静夜妙思给予的方法,非常感谢!

加载列表如下图所示:

7822bdb83ce852d0008a18b4788ab1af.png

a6619256336c08f05d6b6538a7058ac5.png

可以随意地点击添加到Server name中,登录时截图所示:

4df33cac06c08d1cd167cfe5fce51659.png

文本框验证都写好了!还有Authentication验证方式,windows验证下面Login,Password文本框禁掉!由于时间原因,不上图了

demo.html(全部前台代码,js/css还没分文件存储)

DataBase Test Demo

body{margin:0 auto;font-family:Verdana;font-size:12px;}

.top{margin:0 auto; width:100%; text-align:center; margin-top:20px;}

#browser{display:none;}

DataBase Test Demo

  • SQL Server
    • DataBases
      • Test

#greybackground{background: #000;display: block;z-index: 100;width: 100%;position: absolute;top: 0;left: 0; }

#login{margin:0 auto;width:420px;height:auto;border:solid 1px #ccc;position:absolute;z-index:200;background-color:#fff;}

#login .heard{width:420px; height:29px;background-image:url(images/top_bg.gif); border-bottom:solid 1px #ccc;}

#login .heard .left{float:left;line-height:29px;margin-right:2px;padding-left:10px; color:#5aa608;}

#login .heard .right{float:right;line-height:29px;margin-right:5px;}

#login .heard .right a{color:#999;text-decoration:none;}

#login .heard .right a:hover{color:red;text-decoration:underline;}

#login .content{width:420px; height:200px;}

#login .content li{ list-style:none; padding:5px 0px 5px 30px;}

#login .content .top{ width:100%; margin-top:5px;height:30px;line-height:30px;}

#login .content .top .left{ float:left;width:120px; text-align:right;}

#login .content .top .right{ float:right;width:280px;text-align:right;padding-right:20px;}

#login input,#login,select,#login,button{font-family:inherit;font-size:inherit;font-weight:inherit;*font-size:100%;}

#login input{width: 80%;padding: 7px 7px 6px;border-color: #B3B3B3 #EAEAEA #EAEAEA #B3B3B3;border-style: solid;border-width: 1px;color:black;}

#login select{width: 86%;padding: 7px 7px 6px; border-color: #B3B3B3 #EAEAEA #EAEAEA #B3B3B3;border-style: solid;border-width: 1px;color:black;}

#login button,#login .btn-submit,#login .button,#login .btn-submit:focus,#login .button:focus,.btn-submit,.button{border-left: 1px solid #C6C6C6;

border-right: 1px solid #DDDDDD;border-top: 1px solid #DDDDDD;border-bottom: 1px solid #C6C6C6;

cursor:pointer;width:auto;margin:0 10px 0 0;padding-bottom:3px;line-height:1.3em;

color:#515151;font-weight:bold;background:url(images/button.png) #e5e3e3 repeat-x 0 0;

height:32px;padding-left:12px;padding-right: 12px;padding-top: 6px;}

#login button:hover,#login .btn-submit:hover,.button:hover,.btn-submit:hover {background-image:none;}

#login .btn-submit,#login .btn-submit:focus,.btn-submit {width:auto;border-color:#5C91A4 #2B7089 #1A6480 #2A6F89;background-image:url(images/button_highlight.png);background-color:#4e85bb;color:#fff;}

#login .bottom-btn{width:90%; margin:0 auto; padding-top:7px; border-top:1px #ccc solid; margin-top:5px;}

#layer{position:relative;}

#poper{position:absolute;z-index:10;display:none;left:39px;border:solid 1px #ccc; background-color:#fff;}

#poper .heard{height:25px;line-height:25px; width:100%;text-align:right; }

#poper .heard a{color:#999;text-decoration:none;}

#poper .heard a:hover{color:red;text-decoration:underline;}

#poper .first{height:30px;line-height:30px; width:100%;text-align:center; color:#5aa608;}

#poper .first a{color:#5aa608;text-decoration:underline;}

#poper .second{height:20px;line-height:20px; width:100%;text-align:left; margin-left:10px;}

#poper .second a{color:#999; text-decoration:none;}

#poper .second a:hover{color:#5aa608; text-decoration:underline;}

Connect to Server
Authentication:
Windows AuthenticationSQL Server Authentication
Login:
Password:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值