Cool menu code

xiaoxiao2021-03-06  43

cool menu code </ title> <script language = "javascript"> <! --VAR distance = 0; Distance1 = 0; function move1 () {if (distance! = 50) {span1.style.pixelleft = 1; span3.style.pixelleft = 1; span5.style.pixelleft = 1; span2. Style.pixelleft- = 1; span4.style.pixelleft- = 1; span6.style.pixelleft- = 1; span1.filters.alpha.opacity = 2; span2.filters.alpha.Opacity = 2; span3.filters.alpha .opacity = 2; span4.filters.alpha.opacity = 2; span5.filters.alpha.opacity = 2; span6.filters.alpha.opacity = 2; midspan1.filters.alpha.opacity = 2; Midspan2.Filters.alpha .opacity = 2; midspan1.style.pixelTop = 1; midspan2.style.pixelTop- = 1; leftspan.filters.alpha.opacity = 2; rightspan.filters.alpha.opacity = 2; censpan.filters.alpha.opacity- = 1; Distance ; setTimeout ('Move1 ()', 1);} else {move2 ();}; abovementpan1.style.display = 'none'; aboveSpan2.style.display = 'none';}</p> <p>Function move2 () {censpan.style.display = 'none'; if (Distance1! = 44) {colspan1.style.pixelleft = 1; colspan2.style.pixelleft- = 1; colspan3.style.pixelleft = 1; colspan4. style.pixelLeft- = 1; rowspan1.style.pixelTop = 1; rowspan2.style.pixelTop = 1; rowspan3.style.pixelTop- = 1; rowspan4.style.pixelTop- = 1; rowspan5.style.pixelTop = 1; rowspan6 .style.pixelTop = 1; rowspan7.style.pixelTop- = 1; rowspan8.style.pixelTop- = 1; rowspan1.filters.alpha.opacity = 1; rowspan2.filters.alpha.opacity = 1; rowspan3.filters.alpha .opacity = 1; rowspan4.filters.alpha.opacity = 1; rowspan5.filters.alpha.opacity = 1; rowspan6.filters.alpha.opacity = 1; rowspan7.filters.alpha.opacity = 1; rowspan8.filters.alpha .opacity = 1; colspan1.filters.alpha.opacity = 2; colspan2.filters.alpha.opacity = 2; colspan3.filters.alpha.opacity = 2; colspan4.filters.alpha.opacity = 2; upspan1.style.pixelTop - = 1; Upspan2.style.pixeltop = 1; UpSpan1.filters.alpha.opacity = 2; Upspan2.filters.alpha.opacity = 2; spana.style.pixelleft- = 1; spanb.style.pixelleft = 1; spana .filters.alpha.opacity = 2; s PANB.FILTERS.ALPHA.OPACITY ; spanc.style.pixelleft- = 2; spand.style.pixelleft = 2; spanc.filters.alpha.opacity = 1; spand.filters.alpha.opacity = 1; setTimeout ('move2 ()', 1);}} // -> <body> <span id = span1 style = filter: alpha (opacity = 0); position: absolute; left: 200; TOP: 100; Z-Index: 1; Width: 50; Height: 15; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: center; font-size: 9pt; cursor: Hand; οnmοuseοver =</p> <p>This.style.background = '306898'; add1.style.display = 'block'; midspan2.innertext = "MiDSPAN1.INNERTEXT =" one "οnmοuseοut = this.style.background = 'orange'; Add1.style.display = 'none'; midspan2.innerText = "";> menu 1 </ span> <br> <span id = span2 style = filter: alpha (opacity = 0); position: absolute; left: 300 TOP: 115; Z-Index: 1; Width: 50; Height: 15; Background: Orange; Border-style: Solid; Border-Width: 1; Text-Align: center; font-size: 9pt; cursor: HAND ; οnmοuseοver = this.style.background = '306898'; add2.style.display = 'block'; midspan2.innerText = "menu relating to two"; midspan1.innerText = "TWO" οnmοuseοut = this.style.background = ' Orange '; add2.style.display =' none '; midspan2.innertext = "";> menu 2 </ span> <br> <span id = span3 style = filter: alpha (opacity = 0); Position: absolute; LEFT: 200; TOP: 130; Z-Index: 1; Width: 50; Height: 15; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: center; font-size: 9pt; cursor: hand; οnmοuseοver = this.style.background = '306898'; add3.style.display = 'block'; midspan2.innerText = "menu relating to three"; midspan1.innerText = "tHREE" οnmοuseοut = this.sty Le.background = 'orange'; add3.style.display = 'none'; midspan2.innertext = "";> menu 3 </ span> <br> <span id = span4 style = filter: alpha (opacity = 0) Position: Absolute; Left: 300; Top: 145; Z-Index: 1; Width: 50; Height: 15; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: center; font -size: 9pt; cursor: hand; οnmοuseοver = this.style.background = '306898'; add4.style.display = 'block'</p> <p>Midspan2.innertext = "Menu four theme"; midspan1.innerText = "four" οnmοuseοut = "" οnmοuseοut = ""; add4.style.display = 'none'; midspan2.innertext = ";> menu Four </ span> <br> <span id = span5 style = filter: alpha (opacity = 0); Position: absolute; left: 200; Top: 160; z-index: 1; width: 50; height: 15; Background: Orange; Border-style: Solid; Border-Width: 1; Text-Align: Center; font-size: 9pt; cursor: hand; οnmοuseauser = this.style.background = '306898'; add5.style.display = 'block'; Midspan2.innertext = "Menu 5 Theme"; Midspan1.innertext = "FIVE" οnmοuseοut = this.style.Background = 'Orange'; add5.Style.display = 'None'; midspan2.innertext = "" ;> Menu 5 </ span> <br> <span id = span6 style = filter: alpha (opacity = 0); position: absolute; left: 300; top: 175; z-index: 1; width: 50; Height : 15; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center; font-size: 9pt; cursor: hand; οnmοuseοver = this.style.background = '306898'; add6.style .display = 'block'; midspan2.innertext = "Menu six topic"; midspan1.innertext = "six" οnmοuseοut = this.style.background = 'orange'; add6.style.display = 'none'; MIDSPAN2 .innertext = ";> menu six </ span> <br> <span id = leftspan style = filter: alpha (opacity = 0); Position: absolute; left: 191; top: 100; width: 60; Height: Border-style: Solid; Border-Width: 1; Text-align: center; font-size: 9pt;> </ span> <span id = rightspan style = filter: alpha (opacity = 0) Position: Absolute; Left: 299; Top: 100; Width: 60; Height: 91; Background: Orange; Border-Style: Solid; Border-Width: 1;</p> <p>TEXT-Align: Center; Font-Size: 9pt;> </ span> <span id = AboveSpan1 style = z-index: 6; filter: alpha (opacity = 0); Position: absolute; left: 191; top: 100 Width: 60; Background: Orange; Border-style: Solid; Border-Width: 1; Text-align: center; font-limited: 9pt;> </ span> <span id = AboveSpan2 style = z -index: 6; Filter: Alpha (Opacity = 0); Position: Absolute; Left: 299; Top: 100; Width: 60; Height: 91; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-align: center; font-size: 9pt;> </ span> <span id = spana style = z-index: -1; filter: alpha (opacity = 0); position: absolute; left: 221; top: 110; Width: 20; Background: Orange; Border-style: Solid; Border-Width: 1; Text-align: center; font-size: 9pt;> </ span> <span id = spanb style = Z-index: -1; filter: alpha (Opacity = 0); Position: absolute; Left: 309; Top: 110; Width: 20; Height: 71; Background: Orange; Border-Style: Solid; Border-Width: 1; TEXT-Align: Center; Font-size: 9pt;> </ span> <span id = spanc style = z-index: -2; filter: alpha (opacity = 0); Position: absolute; left: 251; TOP: 120; Width: 20; Height: 51; Background: Orange; Border-Style: SOL ID; border-width: 1; text-align: center; font-size: 9pt;> </ span> <span id = spand style = z-index: -2; filter: alpha (opacity = 0); Position: Absolute; LEFT: 279; TOP: 120; Width: 20; Height: 51; Background: Orange; Border-style: Solid; Border-Width: 1; Text-Align: Center; Font-size: 9pt;> </ span > <span id = rowspan1 style = z-index: -1; filter: alpha (Opacity = 0); position: absolute; left: 231; top: 100; width: 10; Height: 91; Background: Orange; Border- STYLE: SOLID; BORDER-WIDTH: 1; Text-Align: Center; font-size: 9pt;> </ span> <span id = rowspan2 style = z-index: -1; filter: alpha (Opacity = 0); Position: absolute; left: 211; top: 100;</p> <p>Width: 10; Height: 91; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center; Font-size: 9pt;> </ span> <span id = rowspan3 style = z- Index: -1; Filter: alpha (Opacity = 0); Position: absolute; left: 231; top: 100; width: 10; Height: 91; Background: Orange; Border-style: Solid; Border-Width: 1; Text-align: center; font-size: 9pt;> </ span> <span id = rowspan4 style = z-index: -1; filter: alpha (opacity = 0); position: absolute; left: 211; top: 100; Width: 91; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center; font-size: 9pt;> </ span> <span id = rowspan5 style = Z-index: -1; filter: alpha (Opacity = 0); position: absolute; left: 310; Top: 100; width: 10; Height: 91; Background: Orange; Border-style: Solid; Border-Width: 1; Text-align: center; font-size: 9pt;> </ span> <span id = rowspan6 style = z-index: -1; filter: alpha (opacity = 0); Position: absolute; left: 331; Top: 100; width: 10; Height: 91; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-align: center; font-size: 9pt;> </ span> <span id = rowspan7 Style = z-index: -1; filter: alpha (opacity = 0); Position: a BSOLUTE; LEFT: 310; TOP: 100; Width: 10; Height: 91; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center; Font-Size: 9pt;> </ span > <span id = rowspan8 style = z-index: -1; filter: alpha (Opacity = 0); Position: absolute; left: 331; top: 100; width: 10; Height: 91; Background: Orange; border- STYLE: SOLID; Border-Width: 1; Text-Align: Center; Font-size: 9pt;> </ span> <span id = midspan1 style = filter: alpha (opacity = 0); Position: absolute; left: 252 TOP: 142; Width: 46; Background: Orange; Border-style: Solid; Border-Width: 1; Text-align: center; font-size: 9pt;> </ span> <span id = MIDSPAN2 style =</p> <p>Filter: Alpha (Opacity = 0); Position: Absolute; Left: 252; Top: 119; Width: 46; Height: 30; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center Font-size: 9pt;> </ span> <span id = colSpan1 style = z-index = -1; filter: alpha (opacity = 0); Position: absolute; left: 252; top: 199; Width: 60 Height: 10; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center; font-size: 9pt;> </ span> <span id = colspan2 style = z-index = - 1; Filter: Alpha (Opacity = 0); Position: Absolute; Left: 238; Top: 199; Width: 60; Height: 10; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align : center; font-size: 9pt;> </ span> <span id = colSpan3 style = z-index = -1; filter: alpha (opacity = 0); Position: absolute; left: 252; top: 77; width : 60; Height: 10; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center; Font-Size: 9pt;> </ span> <span id = colspan4 style = z-index = -1; Filter: alpha (Opacity = 0); Position: absolute; Left: 238; Top: 77; Width: 60; Height: 10; Background: Orange; Border-Style: Solid; Border-Width: 1; Text -Align: center; font-size: 9pt;> </ span> <span id = add 1 style = filter: alpha (opacity = 30); position: absolute; left: 299; top: 100; width: 60; Height: 91; Background: Orange; Border-style: solid; border-width: 1; text- align: center; font-size: 9pt; display: none;> <br> <br> content 1 menu </ span> <span id = add3 style = filter: alpha (opacity = 30); position: absolute; left: Top: 100; Width: 60; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center; Font-Size: 9pt; Display: None;> <BR> DISPLAY: NONE <br> Menu 3 Content </ span> <span id = add5 style = filter: alpha (opacity = 30); position: absolute; left: 299; top: 100; width: 60; height: 91; background: orange;</p> <p>border-style: solid; border-width: 1; text-align: center; font-size: 9pt; display: none;> <br> <br> menu content 5 </ span> <span id = add2 style = filter : Alpha (Opacity = 30); Position: Absolute; Left: 191; Top: 100; Width: 60; Height: 91; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: center; font-size: 9pt; display: none;> <br> <br> menu 2 content </ span> <span id = add4 style = filter: alpha (opacity = 30); position: absolute; left: 191; top: 100; width: 60; height: 91; background: orange; border-style: solid; border-width: 1; text-align: center; font-size: 9pt; display: none;> <br> <br> menu 4 content </ span> <span ID = add6 style = filter: alpha (opacity = 30); position: absolute; left: 191; top: 100; width: 60; Height: 91; Background: Orange; Border-style: solid; border-width: 1; text-align: center; font-size: 9pt; display: none;> <br> <br> content menu 6 </ span> <span id = censpan style = filter: alpha (opacity = 30); Z-Index: 5; Position: absolute; Left: 252; Top: 138; Width: 46; Height: 10; Background: Red; Border-style: Solid; Border-Width: 1; Text-Align: Center; font-size: 9pt; cursor: hand; οnclick = move1 ();> start </ span> <span id = UPSPA N1 style = filter: alpha (opacity = 0); z-index: -1; position: absolute; left: 262; top: 78; width: 26; height: 70; background: Orange; Border-style: Solid; Border; -Width: 1; Text-Align: Center; font-size: 9pt; cursor: hand;> </ span> <span id = upspan2 style = filter: alpha (opacity = 0); z-index: -1; position : Absolute; Left: 262; Top: 138; Width: 26; Height: 70; Background: Orange; Border-Style: Solid; Border-Width: 1; Text-Align: Center; font-size: 9pt; cursor: HAND ;> </ span> </ body> </ html></p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-53159.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="53159" 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.062</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 = 'r8U9PbTttfT0ydcMCXGML6WfNwOoco3LZiY6hg86_2FLpJg7bTTwyn2tdd2xbyeiA2oBeBgzcSVOdl22cCFXX9LQ_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>