XML implementation web dynamic menu 1 - HTML file

xiaoxiao2021-03-06  36

index </ title></p> <p><meta content = "</p> <p>http://schemas.microsoft.com/intellisense/ie5 "name =" vs_targetschema "></p> <p><meta content = "Microsoft Visual Studio .NET 7.1" Name = "Generator"></p> <p><xml id = "fcmenu" src = "fcmenu.xml"> </ xml></p> <p><xml id = "xmldoc" src = "fcitem.xml"> </ xml></p> <p><script language = "javascript"></p> <p><! -</p> <p>VAR T;</p> <p>Function over (TD)</p> <p>{td.bgcolor = '# dfbfdf';}</p> <p>Function OUT (TD)</p> <p>{TD.BGCOLOR = '# dfbf68';}</p> <p>Function Outset (TD)</p> <p>{TD.Style.Borderstyle = "outset";</p> <p>Function Down (MNAME, TD)</p> <p>{</p> <p>Itemdiv.style.visibility = "hidden";</p> <p>Td.style.Borderstyle = "inset";</p> <p>Fcmenu.Recordset.movefirst ();</p> <p>TMP = "<Table ONMOUSEOUT = 'ITEMOUT ()' border = 1 width = 100% cellspacing = 0 cellpadding = 0 style = 'border-width: 1px; border-style: none;'></p> <p>TMP = TMP "<tr> <td height = 28px align = center valign = center style = 'border-width: 1px; border-style: solId; border-color = white; background-color: # f7e4bc; cursor: Default '> MNAME "</ TD> </ TR>"</p> <p>For (i = 0; i <fcmenu.recordset.recordcount; i )</p> <p>{</p> <p>IF (FcMenu.Recordset.fields (MNAME) "==" NULL "|| fcmenu.recordset.fields (mname) " == "")</p> <p>Break;</p> <p>TMP = TMP <Tr> <TD ID = 'M " I "' ";</p> <p>TMP = TMP "οnmοusemοve = showitem ('" fcmenu.recordset.fields (mname) ")"; TMP = TMP "Height = 28px align = center valign = center style =' border-width: 1px; cursor : hand; border-style: solid; border-color = white; background-color: # dfbf68 '></p> <p>TMP = TMP FcMENU.RecordSet.fields (MNAME) "</ TD> </ TR>";</p> <p>Fcmenu.Recordset.movenext ();</p> <p>}</p> <p>TMP = TMP "</ TABLE>";</p> <p>Left.innerhtml = TMP;</p> <p>}</p> <p>Function ShowItem (INAME)</p> <p>{</p> <p>VAR NS, NI, I;</p> <p>ns = xmldoc.documentelement.selectnodes (iname "</p> <p>/ childitem / @ title ");</p> <p>Ni = xmldoc.documentelement.selectnodes (INAME "</p> <p>/ childitem / @ ID ");</p> <p>i = 0;</p> <p>TMP = "<table border = 0 cellspacing = 0 cellpadding = 0>";</p> <p>While (True)</p> <p>{</p> <p>IF (ns.Item (i) == null)</p> <p>{Break;</p> <p>TMP = TMP "<Tr> <TD ID = 'i" i "'";</p> <p>TMP = TMP "Height = 28px align = center valign = center style = 'border-width: 1px; cursor: hand; border-style: solId; border-color: white;';</p> <p>TMP = TMP "οnclick = /" WriteContent ('" iname ", " ni.Item (i) .text ") / ">"</p> <p>TMP = TMP NS.Item (i) .Text "</ TD> </ TR>";</p> <p>i = i 1;</p> <p>}</p> <p>TMP = TMP "</ TABLE>";</p> <p>Itemdiv.innerhtml = TMP;</p> <p>Itemdiv.style.Left = 118;</p> <p>Itemdiv.style.top = 88 Math.Floor (Event.y-89) / 28) * 28;</p> <p>Itemdiv.style.visibility = "visible";</p> <p>}</p> <p>Function WriteContent (INAME, ID)</p> <p>{</p> <p>VAR NT, NI, I;</p> <p>NT = xmldoc.documentelement.selectnodes (INAME "/ childitem"); ni = xmldoc.documentelement.selectnodes (INAME "</p> <p>/ childitem / @ ID ");</p> <p>i = 0;</p> <p>While (True)</p> <p>{</p> <p>IF (Ni.Item (i) == null)</p> <p>{Break;</p> <p>IF (ni.item (i) .text == id)</p> <p>{</p> <p>ibody.document.close ();</p> <p>ibody.document.write ("<p align = center style = 'font-color: red; font-size: 24px'> iname " </ p> ");</p> <p>ibody.document.write (nt.item (i) .text);</p> <p>Break;</p> <p>}</p> <p>i ;</p> <p>}</p> <p>}</p> <p>Function itemout ()</p> <p>{</p> <p>T = WINDOW.SETTIMEOMEOMEOUT ("Itemdiv.Style.visibility = 'Hidden';", 10);</p> <p>}</p> <p>// -></p> <p></ script></p> <p></ HEAD></p> <p><body bottommargin = "0" bgcolor = "# f7e4bc" leftmargin = "0" TopMargin = "0" rightmargin = "0"</p> <p>MS_Positioning = "GridLayout"></p> <p><Table height = "100%" cellspacing = "0" cellpadding = "0" width = "100%" border = "0"></p> <p><Tr></p> <p><TD Style = "Width: 118px; Height: 88px" Valign = "TOP"> </ td></p> <p><TD Style = "Height: 88px" Valign = "Bottom" align = "right"></p> <p><Table ID = "Menu1" Style = "Color: # 660000" Cellspacing = "0" cellpadding = "0" width = "450" ​​bgcolor = "# dfbf68"</p> <p>Border = "0"></p> <p><Tr></p> <p><Td οnmοuseup = "Outset (TD1)" οnmοusedοwn = "Down ('Golden Death", TD1) "ID =" TD1 "οnmοuseοver =" over (td1) "</p> <p>Style = "Border-Right: # ffcc66 3px outset; border-top: # ffcc66 3px outset; border-left: # ffcc66 3px outset; cursor: hand; border-bottom: # ffcc66 3px outset" οnmοuseοut = "OUT (TD1) "Align =" center "> Jin Di Jingwei </ TD></p> <p><TD οnmοuseup = "OutSet (TD2)" οnmοusedοwn = "Down ('Management Forum', TD2)" ID = "TD2" οnmοuseοver = "over (TD2)"</p> <p>Style = "Border-Right: # ffcc66 3px outset; border-top: # ffc66 3px outset; border-left: # ffc66 3px outset; cursor: hand; border-bottom: # ffcc66 3px outset</p> <p>οnmοuseοut = "OUT (TD2)" align = "center"> management forum </ td></p> <p><TD οnmοuseup = "OutSet (TD3)" οnmοusedοwn = "Down ('Growth Course', TD3)" ID = "TD3" οnmοuseοver = "Over (TD3)"</p> <p>Style = "Border-Right: # ffcc66 3px outset; border-top: # ffc66 3px outset; border-left: # ffc66 3px outset; cursor: hand; border-bottom: # ffcc66 3px outset</p> <p>οnmοuseοut = "OUT (TD3)" Align = "Center"> Growth Course </ TD></p> <p><Td οnmοuseup = "Outset (TD4)" οnmοusedοwn = "Down ('Xin Yue Yue', TD4)" ID = "TD4" οnmοuseοver = "over (TD4)"</p> <p>Style = "Border-Right: # ffcc66 3px outset; border-top: # ffc66 3px outset; border-left: # ffc66 3px outset; cursor: hand; border-bottom: # ffcc66 3px outset</p> <p>οnmοuseοut = "OUT (TD4)" align = "center"> Xin Yue Ye Yue Yue </ TD></p> <p><TD οnmοuseup = "Outset (TD5)" οnmοusedοwn = "Down ('Coffee Story', TD5)" ID = "TD5" οnmοuseοver = "Over (TD5)"</p> <p>Style = "Border-Right: # ffcc66 3px outset; border-top: # ffc66 3px outset; border-left: # ffc66 3px outset; cursor: hand; border-bottom: # ffcc66 3px outset</p> <p>οnmοuseοut = "OUT (TD5)" Align = "Center"> Coffee Story </ TD> </ TR></p> <p></ TABLE></p> <p></ Td></p> <p></ TR></p> <p><Tr></p> <p><TD ID = "Left" style = "width: 118px" Valign = "TOP"> <font face = "Song"> </ font> </ td></p> <p><TD VALIGN = "TOP"></p> <p><iframe id = "ibody" marginwidth = "0" marginheight = "0" frameborder = "no" width = "100%" scrolling = "auto"</p> <p>Height = "100%"> </ iframe></p> <p></ Td></p> <p></ TR></p> <p></ TABLE></p> <p><Div id = "Itemdiv" style = "z-index: 10000; Left: 0px; position: absolute; top: 0px; Background-color: # ffcc66"</p> <p>MS_Positioning = "flowLayout" οnmοuseοver = "οnmοusemοve =" οnmοusemout (t) "οnmοuseοut =" οnmοuseοut = itemout ()> </ div></p> <p><Font style = "Background-color: #fffffff" face = "Song"> </ font> <font face = "Song"> </ font></p> <p></ body></p> <p></ Html></p> <p><! - Please indicate the author and the author:</p> <p>http://blog.9cbs.net/curllion -></p> <p>Related Links:</p> <p>XML Implementation Web Dynamic Menu 2 - XML ​​File</p> <p>XML implementation Web Dynamic Menu 3 - Menu Management</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-56789.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="56789" 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.043</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 = 'ruUE6o7bDltEpLSocB0_2Bb1C_2BtJ_2FU60Q6DmCiA3M10Qz1lWddmVBonjZov0x_2FB_2BnjiZ8mBD528_2FXgNzgEk3IQAA_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>