Asp.net div pop-up logon window

Source: Internet
Author: User

<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> compatible with IE and FF pop-up login interface-asp home in China </title>
<Style type = "text/css">
*{
Margin: 0;
Padding: 0;
Font-size: 12px;
Font-weight: normal;
Font-family: verdana, tahoma, helvetica, arial, sans-serif, "";
Font-style: normal;
List-style-type: none;
Text-decoration: none;
}
Div # body input # fnbtn {
Width: 78px;
Height: 39px;
Border: none;
Cursor: pointer;
Position: absolute;
Top: 40px;
Left: 100px;
Background: transparent url('200814122558235.png ') 0-70px no-repeat;
}
Div # mask {
Position: absolute;
Top: 0;
Left: 0;
Background: # fff;
Filter: alpha (opacity = 20 );
-Moz-opacity: 0.2;
Z-index: 100;
}
Div # login {
Position: absolute;
Top: 75px;
Left: 100px;
Width: 293px;
Z-index: 200;
}
Div # login h2 {
Height: 26px;
Padding-top: 3px;
Padding-left: 25px;
Background: transparent url('200814122558235.png ')-84px-70px no-repeat;
}
Div # login h2 input {
Height: 18px;
Width: 18px;
Float: right;
Border: none;
Cursor: pointer;
Margin: 2px 6px 0 0;
Background: transparent url('200814122558235.png ') 0-169px no-repeat;
}
Div # login h2 {
Display: block;
Float: left;
Width: 83px;
Height: 26px;
Line-height: 26px;
Text-align: center;
Text-decoration: none;
Color: #666;
}
Div # login h2 a. cur {
Color: # f00;
Background: transparent url('200814122558235.png ') 0-187px no-repeat;
}
Div # login ul {
Padding: 14px 0 18px 12px;
Background: transparent url('200814122558235.png ')-84px bottom no-repeat;
}
Div # login ul li {
Padding-left: 60px;
Margin-top: 10px;
Display: inline-block;
}
Div # login ul li {
Display: block;
}
Div # login ul li: after {
Content: "youdian ";
Clear: both;
Display: block;
Height: 0;
Visibility: hidden;
}
Div # login ul li tt {
Float: left;
Width: 60px;
Margin-left:-70px;
Text-align: right;
Line-height: 22px;
Color: #444;
}
Div # login ul li div input. cell, div # login ul li div input. cell2 {
Height: 16px;
Padding: 2px;
Line-height: 16px;
Width: 179px;
Border: 1px # dcdcdc solid;
Color: #666;
}
Div # login ul li div input. cell2 {
Width: 50px;
}
Div # login ul li div label {
Color: #666;
Cursor: pointer;
}
Div # login ul li div img {
Margin-bottom:-7px;
Margin-left: 8px;
}
* Html div # login ul li div img {
Margin-bottom:-4px;
}
* + Html div # login ul li div img {
Margin-bottom:-4px;
}
Div # login ul li div input # fnlogin {
Width: 59px;
Height: 21px;
Cursor: pointer;
Border: none;
Margin-right: 15px;
Background: transparent url('200814122558235.png ') 0-148px no-repeat;
}
Div # login ul li p {
Padding-top: 4px;
Color: # f00;
}
</Style>
</Head>
<Body>
<Div id = "body">
<Input id = "fnbtn" type = "button" title = "" value = ""/>
</Div>

<Div id = "mask" style = "display: none;"> </div>
<Div id = "login" style = "display: none;">
<H2>
<Input id = "fnquit" type = "button" title = "log out"/>
<A href = "#" class = "cur" name = "Email"> Email logon </a> <a href = "#" name = "username"> User name logon </a>
</H2>
<Ul>
<Form id = "LoginForm" name = "LoginForm" action = "http://www.aspxhome.com" method = "post" enctype = "multipart/form-data">
<Li>
<Input id = "loginType" name = "loginType" type = "hidden"/>
<Tt> <label id = "logtype" for = "email"> Email: </label> </tt>
<Div> <input id = "username" name = "username" type = "text" class = "cell" onKeyPress = "return checkSubmit (event)"/> </div>
</Li>
<Li>
<Tt> <label for = "password"> password: </label> </tt>
<Div> <input id = "password" name = "password" type = "password" class = "cell" onKeyPress = "return checkSubmit (event)"/> </div>
</Li>
<Li>
<Tt> </tt>
<Div> <input id = "reme" name = "rememberme" type = "checkbox"/> <label for = "reme"> next Automatic Logon </label>
</Div>
</Li>
<Li>
<Tt> </tt>
<Div> <input id = "fnlogin" type = "button"/> <a href = "#" onclick = "return checkForgetPassword ()"> forgot password? </A> </div>
</Li>
</Form>
</Ul>
</Div>
<Script type = "text/javascript">
Function g (obj ){
Return document. getElementById (obj );
}
Var login = {
Title: null,
Show: function (){
Var sWidth, sHeight;
SWidth = screen. width;
SWidth = document. body. offsetWidth;
SHeight = document. body. offsetHeight;
If (sHeight <screen. height) {sHeight = screen. height ;}
G ("mask"). style. width = sWidth + "px ";
G ("mask"). style. height = sHeight + "px ";
G ("mask"). style. display = "block ";
G ("login"). style. display = "block ";
G ("login"). style. right = g ("body"). offsetLeft + "px ";

// Window. status = g ("body"). offsetLeft;
},
Hide: function (){
G ("mask"). style. display = "none ";
G ("login"). style. display = "none ";
}
}
G ("fnbtn"). onclick = function (){
Login. show ();
This. blur ();
This. style. backgroundPosition = "0-pixel PX ";
};
G ("fnlogin"). onclick = function (){
// The following 5 lines of code is used to get the login type & pass to the form
// One More line of code is insert to root_index.jsp to capture the hidden value
If (document. getElementById ("logtype"). innerHTML = "Email :"){
Document. getElementById ('logintype'). value = 'e-mail ';
} Else {
Document. getElementById ('logintype'). value = 'mobile ';
}
Document. LoginForm. submit ();
};
G ("fnquit"). onclick = function () {login. hide (); g ("fnbtn"). style. backgroundPosition = "0-70px ";};
Var aa = g ("login"). getElementsByTagName ("");
Var aTab = new Array ();
For (var I = 0; I <aa. length; I ++ ){
If (aa [I]. parentNode. nodeName = "H2 "){
ATab. push (aa [I]);
}
}
For (var j = 0; j <aTab. length; j ++ ){
ATab [j]. onclick = function (){
This. blur ();
If (this. className! = "Cur "){
For (var k = 0; k <aTab. length; k ++) {aTab [k]. className = ""};
This. className = "cur"
G ("logtype"). innerHTML = this. name + ":";
}
}
}
</Script>
<Script language = "javascript">
Login. hide ();
</Script>
</Body>
</Html>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.