Pop-up login window code

Source: Internet
Author: User
Tip: you can modify some code before running

<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title></title><script language="javascript">Function cry () {alert1 ("")} function alert1 (txt) {var shield = document. createElement ("DIV"); shield. id = "shield"; shield. style. position = "absolute"; shield. style. left = "0px"; shield. style. top = "0px"; shield. style. width = "100%"; shield. style. height = "100%"; // shield. style. height = document. body. scrollHeight + "px"; shield. style. background = ""; shield. style. textAlign = "center"; shield. style. zIndex = "10000"; shield. style. filter = "alpha (opacity = 0)"; var alertFram = document. createElement ("DIV"); alertFram. id = "alertFram"; alertFram. style. position = "absolute"; // negative boundary Center method, relative to the top of the shield layer // alertFram. style. left = "50%"; // alertFram. style. top = "50%"; // alertFram. style. marginLeft = "-125px"; // alertFram. style. marginTop = "-75px"; // The negative boundary Center method. style. right = "50%"; alertFram. style. bottom = "15%"; alertFram. style. marginRight = "-125px"; alertFram. style. marginBottom = "-80px"; alertFram. style. width = "260px"; alertFram. style. height = "pixel PX"; alertFram. style. background = ""; alertFram. style. textAlign = "center"; alertFram. style. lineHeight = "pixel PX"; alertFram. style. Z index = "10002"; strHtml ="<ul style=\"list-style:none;margin:0px;padding:0px;width:100%\">\ N "; strHtml + ="<li style=\"background:#0063C6;text-align:left;padding-left:5px;font-size:14px;font-weight:bold;color: #FFFFFF;height:25px;line-height:25px;border-left:1px solid #003366;border-top:1px solid #003366;border-right:1px solid #003366;\">User Login</li>\ N "; strHtml + ="<li style=\"background:#E4EFFF;height:20px;line-height:20px;border-left:1px solid #003366;border-right:1px solid #003366;\"></li>\ N "; strHtml + ="<li style=\"background:#E4EFFF;text-align:right;height:30px;line-height:30px;border-left:1px solid #003366;border-right:1px solid #003366;\">User name<input type='text' name='textfield' style=\"height:16px;width: 90px;margin-left:5px;margin-right: 60px;\"></li>\ N "; strHtml + ="<li style=\"background:#E4EFFF;text-align:right;height:30px;line-height:30px;border-left:1px solid #003366;border-right:1px solid #003366;\">Password<input type='text' name='textfield2' style=\"height:16px;width: 90px;margin-left:5px;margin-right: 60px;\"></li>\ N "; strHtml + ="<li style=\"background:#E4EFFF;text-align:right;height:30px;line-height:30px;border-left:1px solid #003366;border-right:1px solid #003366;\">Verification code<input type='text' name='textfield2' style=\"height:16px;width: 90px;margin-left:5px;margin-right: 60px;\"></li>\ N "; strHtml + ="<li style=\"background:#E4EFFF;text-align:center;height:20px;line-height:20px;border-left:1px solid #003366;border-right:1px solid #003366;\"></li>\ N "; strHtml + ="<li style=\"background:#E4EFFF;text-align:center;font-weight:bold;height:25px;line-height:25px; border-left:1px solid #003366;border-right:1px solid #003366;\"><form id='form1' name='form1' method='post' action='/index.asp'><input type=button value='登陆' onclick=\"remove()\"></li>\ N "; strHtml + ="<li style=\"background:#E4EFFF;height:24px;line-height:24px; border-left:1px solid #003366;border-bottom:1px solid #003366;border-right:1px solid #003366;\"><table border='0' cellspacing='0' cellpadding='0'><tr><td>[User registration]</td><td width='30'></td><td>[Forgot password]</td></tr></table></li>\ N "; strHtml + ="</ul>\ N "; alertFram. innerHTML = strHtml; document. body. appendChild (alertFram); document. body. appendChild (shield); var c = 0; this. doAlpha = function () {if (c ++> 50) {clearInterval (ad); return 0;} shield. style. filter = "alpha (opacity =" + c + ");" ;}this. remove = function () {alertFram. innerHTML = ""; shield. style. filter = ""; shield. id = ""; shield. style. position = ""; shield. style. left = ""; shield. style. top = ""; shield. style. width = ""; shield. style. height = ""; shield. style. background = ""; shield. style. textAlign = ""; shield. style. zIndex = ""; shield. style. filter = ""; alertFram. id = ""; alertFram. style. position = ""; alertFram. style. left = ""; alertFram. style. top = ""; alertFram. style. marginLeft = ""; alertFram. style. marginTop = ""; alertFram. style. width = ""; alertFram. style. height = ""; alertFram. style. background = ""; alertFram. style. textAlign = ""; alertFram. style. lineHeight = ""; alertFram. style. zIndex = "";} var ad = setInterval ("doAlpha ()", 10); alertFram. focus (); document. body. onselectstart = function () {return false ;};} function oMove (obj) {var otop, oleft; otop = event. y-obj. offsetTop; oleft = event. x-obj. offsetLeft; obj. setCapture (); obj. onmousemove = function () {obj. style. left = event. x-oleft; obj. style. top = event. y-otop;} obj. onmouseup = function () {obj. onmousemove = null; obj. style. filter = null; obj. releaseCapture ();}}</script></head><body ><input type=submit name="cry" value="点击我一下下^_^" onclick='return cry();'></input></body>
Tip: you can modify some code before running

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.