用户可点击左上角的的登陆链接按钮,然后弹出一个漂亮的登陆框,这个弹出的登陆框带有关闭按钮供用户使用。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-Type" content="text/html;charset=gb2312"> <meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren"> <meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。"> <title>点击左上角链接弹出漂亮登录框_武鸣人</title> <style type="text/css"> .login { z-index: +1; } body{ font-size:12px; font-family:Arial, Helvetica, sans-serif;} .login .inputb { width:97px; height:15px; border:1px solid #baced6; font-size:12px; padding-top:2px; margin-right:6px; display:block; float:left;} .login_header{ cursor:move } .login div.login_header { border: black; border-bottom: 0px; cursor: default; width: 254px; height: 31px; line-height: 19px; vertical-align: middle; background: url('/img/20240324_www_wuming_ren_3.gif') no-repeat; text-decoration: none; } .login div.login_body { border: black; width: 254px; background: url('/img/20240324_www_wuming_ren_4.gif') no-repeat left bottom; margin:0; } .login img.login_exit_wuming { float: right; margin: 6px 8px 0px 0px; cursor: pointer; } .login table { border-collapse: collapse; margin-bottom:5px; } .login table th , .login table td { padding:3px 0;} .login table th { width:68px; text-align:right; font-weight:normal; color:#4e6aab; } .login .code {} .login .code img { border:1px solid #adc6dd; margin-bottom:-5px;} .login .lsubmit { padding-left:60px;} .login table td .linka { display:block; float:left; padding-top:4px; } </style> <script language="javascript"> var popup_dragging = false; var popup_target; var popup_mouseX; var popup_mouseY; var popup_mouseposX; var popup_mouseposY; var popup_oldfunction; function popup_display(x) {//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) var win = window.open(); for (var i in x) win.document.write(i+' = '+x[i]+'<br>'); } // ----- popup_mousedown ------------------------------------------------------- function popup_mousedown(e) {//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) var ie = navigator.appName == "Microsoft Internet Explorer"; if ( ie && window.event.button != 1) return; if (!ie && e.button != 0) return; popup_dragging = true; popup_target = this['target']; popup_mouseX = ie ? window.event.clientX : e.clientX; popup_mouseY = ie ? window.event.clientY : e.clientY; if (ie) popup_oldfunction = document.onselectstart; else popup_oldfunction = document.onmousedown; if (ie) document.onselectstart = new Function("return false;"); else document.onmousedown = new Function("return false;"); } // ----- popup_mousemove ------------------------------------------------------- function popup_mousemove(e) {//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) if (!popup_dragging) return; var ie = navigator.appName == "Microsoft Internet Explorer"; var element = document.getElementById(popup_target); var mouseX = ie ? window.event.clientX : e.clientX; var mouseY = ie ? window.event.clientY : e.clientY; element.style.left = (element.offsetLeft+mouseX-popup_mouseX)+'px'; element.style.top = (element.offsetTop +mouseY-popup_mouseY)+'px'; popup_mouseX = ie ? window.event.clientX : e.clientX; popup_mouseY = ie ? window.event.clientY : e.clientY; } // ----- popup_mouseup --------------------------------------------------------- function popup_mouseup(e) {//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) if (!popup_dragging) return; popup_dragging = false; var ie = navigator.appName == "Microsoft Internet Explorer"; var element = document.getElementById(popup_target); if (ie) document.onselectstart = popup_oldfunction; else document.onmousedown = popup_oldfunction; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) // ----- popup_exit ------------------------------------------------------------ function popup_exit(e) { var ie = navigator.appName == "Microsoft Internet Explorer"; var element = document.getElementById(popup_target); popup_mouseup(e); element.style.visibility = 'hidden'; element.style.display = 'none'; } // ----- wuming_ren ------------------------------------------------------------ function wuming_ren() {//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) element = document.getElementById('popup'); drag_element = document.getElementById('popup_drag'); exit_element = document.getElementById('popup_exit'); element.style.position = "absolute"; element.style.visibility = "visible"; element.style.display = "block"; element.style.left = (document.documentElement.scrollLeft+popup_mouseposX-10)+'px'; element.style.top = (document.documentElement.scrollTop +popup_mouseposY-10)+'px'; drag_element['target'] = 'popup'; drag_element.onmousedown = popup_mousedown; exit_element.onclick = popup_exit; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) // ----- popup_mousepos -------------------------------------------------------- function popup_mousepos(e) { var ie = navigator.appName == "Microsoft Internet Explorer"; popup_mouseposX = ie ? window.event.clientX : e.clientX; popup_mouseposY = ie ? window.event.clientY : e.clientY; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) // ----- Attach Events --------------------------------------------------------- if (navigator.appName == "Microsoft Internet Explorer") document.attachEvent('onmousedown', popup_mousepos); else document.addEventListener('mousedown', popup_mousepos, false); if (navigator.appName == "Microsoft Internet Explorer") document.attachEvent('onmousemove', popup_mousemove); else document.addEventListener('mousemove', popup_mousemove, false); if (navigator.appName == "Microsoft Internet Explorer") document.attachEvent('onmouseup', popup_mouseup); else document.addEventListener('mouseup', popup_mouseup, false); </script> </head> <body> <a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr> <!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。--> <script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script> <script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script> <a href="#" onclick="wuming_ren()">登陆</a> <div class="login" id="popup" style="visibility: hidden; display: none;"> <div class="login_header" id="popup_drag"> <img class="login_exit_wuming" id="popup_exit" src="/img/20240324_www_wuming_ren_5.gif" alt="关闭" /> </div> <div class="login_body"> <form id="member_login" name="member_login" action="" method="post"> <table> <tr> <th>用户名:</th> <td><input type="text" class="inputb" /> <span class="linka"><a href="https://wuming.ren">快速注册</a></span></td> </tr> <tr> <th>密 码:</th> <td><input type="text" class="inputb" /> <span class="linka"><a href="https://wuming.ren">忘记密码</a></span></td> </tr> <tr> <th>验证码:</th> <td><input type="text" class="inputb" /> <span class="code"><img src="/img/20240324_www_wuming_ren_6.gif" /></span></td> </tr> <tr> <th>Cookie:</th> <td><select name="select" id="select"> <option value="1">保持一年</option> </select></td> </tr> <tr> <td colspan="2" class="lsubmit"><input type="submit" value="登 录" /> <input type="submit" value="重 置" /></td> </tr> </table> </form> </div> </div> </div> </body> </html>
本文来自武鸣人网站,转载请注明出处