A very Cool layer form

xiaoxiao2021-03-06  60

_xwin </ title> <style type = 'text / css'> <! - a: visited {text-decoration : none; color: slategray;} A: hover {text-decoration: underline; color: slategray;} A: link {text-decoration: none; color: slategray;} -> </ style> <script language = jscript > <! - / / can be packaged as JS file; var x0 = 0, y0 = 0, x1 = 0, y1 = 0; var offx = 6, OFFY = 6; var moveable = false; var hover = 'orange' Normal = 'slategray'; // color; var index = 10000; // z-index; // Start drag; function startdrag (obj) {// lock title bar; obj.setcapture (); // Define object VAR WIN = Obj.ParentNode; VAR SHA = Win.NextSibling; // Record the mouse and layer position; x0 = event.clientx; y0 = event.clienty; x1 = parseint (win.style.left); Y1 = PARSEINT Win.Style.top); // Record color; normal = obj.style.backgroundColor; // change the style; obj.Style.BackgroundColor = Hover; win.Style.BorderColor = Hover; obj.nextsibling.Style.Color = HOVER Sha.Style.Left = x1 offx; sha.style.top = y1 offy; moveable = true;} // Drag; Function Drag (obj) {var win = Obj.ParentNode; var sha = win.nextsibling ; if (moveable) {win.Style.Left = x1 event.clientX - X0; Win.Style.top = Y1 Event.Clienty - Y0; SHA.Style.Left = PARSEINT (WINSTYLE.TOP = PARSEINT (WIN.Style.top) OFFY; }} // Stop dragging; function stopdrag (obj) {var win = Obj.parentNode; var sha = win.nextsibling; win.Style.BorderColor = NORMAL; OBJ.Style.BackgroundColor = NORMAL; OBJ.NEXTSIBLING.Style. Color = normal; sha.style.style.style.parentnode.style.Left; sha.style.top = obj.parentnode.style.top; // release the title bar; obj.releasecapture (); moveable = false;} // Get the focus;</p> <p>Function getFocus (obj) {index = index 2; var idx = index; obj.Style.zindex = idx; obj.nextsibling.style.zindex = IDX-1;} function min (obj) {var win = obj.parentnode .parentnode; var sha = win.nextsibling; var Tit = Obj.ParentNode; var msg = tit.nextsibling; var flg = msg.style.display == "none"; if (flg) {win.Style.Height = PARSEINT (msg.style.height) PARSEINT (TIT.Style.Height) 2 * 2; sha.style.height = win.style.height; msg.style.display = "block"; obj.innerhtml = "0" } else {win.Style.height = parseint (Tit.Style.Height) 2 * 2; sha.style.Height = win.Style.Height; Obj.innerHtml = "2"; msg.style.display = " None ";}} function cls (obj) {var win = obj.parentnode.parentNode; var sha = win.nextsibling; win.style.visibility =" hidden "; sha.style.visibility =" hidden ";} // Create an object; Function XWIN (ID, W, H, L, T, TIT, MSG) {index = index 2; this.id = ID; this.width = W; this.Height = h; this.left = L; this.top = T; this.zindex = index; this.title = Tit; this.Message = msg; this.obj = null; this.bulid = bulid; this.bulid ();} // initialization; function Bulid () { Var str = " " <div id = xmsg " this.id " " " style = '" " z-index: " this.zindex "; " " width: " this.width ";" "Height:" this.height ";" "Left:" this.Left ";" "top:" this.top ";" "Background-Color:" NORMAL ";" "Color:" Normal ";" "</p> <p>Font-size: 10px; " " font-family: verdana; " " Position: absolute; " " CURSOR: Default; " " Border: 2px solid " normal "; " " " " οnmοusedοwn = 'getFocus (this)'> " " <div " " style = '" " background-color: " Normal "; " " Width: " (this.width-2 * 2) " " " Height: 20; " " color: white; " " '" " οnmοusedοwn =' startdrag (this) '" " οnmοuseup =' stopdrag (this) '" " οnmοusemοve =' DRAG (this ) '" "> " " <span style =' width: " (THISWIDTH-2 * 12-4) "; Padding-left: 3px; '> " this.title " </ span > " " <span style = 'width: 12; border-width: 0px; color: white; font-family: webdings;' οnclick = 'min (this)' title = 'restore'> 0 </ span> " "<span style = 'width: 12; border-width: 0px; color: white; font-family: webdings;' οnclick = 'CLS (this)' title = 'Close'> R </ span>" " </ div> "<div sty = '" "width: 100%;" "Height:" (this.Height-20-4) ";" "Background-Color: White;" "Line-Height: 14px;" "Word-Break: Break-all;" "Padding: 3px;" "" " " "</ div> " </ div> " "<div style = '" "width:" this.width ";" "Height:" </p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-111997.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="111997" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.053</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'nPuyou2OxjQRV5p0pQkFQktWpho9eZA0pdlSLrY9POIIuOtLFgSHtcHPPNxZIWAJUuy_2FLxcPuBO4s0xjVQ4uqQ_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>