Secondary navigation bar in a medium-energy static website.

zhaozj2021-02-16  58

The second internship work has begun. The first task assigned to me is to give a static website to the middle power. I learned some knowledge in this process. The following code is my navigation bar, using JavaScript and HTML. A sense of accomplishment!

abb </ title> <meta http-equiv = content-type content = "text / html Charset = GB2312 "> <meta content =" Microsoft FrontPage 4.0 "Name = Generator> <base target =" contents "> </ head></p> <p><Body> <font color = "white" size = "- 1"></p> <p><Div style = "LEFT: 0PX; Visibility: Visible; Position: Absolute; Top: 5px; Height: 20px; Width: 770px;"> <span style = "Width: 770px; Background: '# 164781'> </ Span> </ div></p> <p><Div style = "left: 0px; visibility: Visible; Position: absolute; top: 20px; height: 20px; width: 770px;"> <span style = "width: 770px; background: '# Efefef'> </ Span> </ div></p> <p><Div id = shouye_div align = "style =" z-index: 1; Left: 20px; Visibility: visible; position: absolute; top: 5px; height: 20px; width: 80px; "> <span id = shouye_menubar οnmοuseοver = "shouye_menubar.style.background = 'green';" style = "WIDTH: 80px; CURSOR: hand; background: '# 164781'" οnclick = "gongsijieshao_menu_div.style.visibility = 'hidden'; chanpin_menu_div.style.visibility = 'hidden'; window.open ('./ shouye / shouye.htm', 'main', '') "οnmοuseοut = Shouye_MenuBar.Style.Background = '# 164781';> Home </ span> </ Div></p> <p><Div id = gongsijieshao_div align = "center" style = "z-index: 1; Left: 100px; Visibility: Visible; width: 80px; cursor: hand; position: absolute; top: 5px; height: 20px;> < SPAN align = "center" style = "WIDTH: 70; background: '# 164781'" οnmοusedοwn = "gongsijieshao_menu_div.style.visibility = 'visible'; chanpin_menu_div.style.visibility = 'hidden';" id = gongsijieshao_menubar οnmοuseοver = " GONGSIJIESHAO_MENUBAR.Style.Background = 'Green' "οnmοuseοut =" gongsijieshao_menubar.style.background = '# 164781';> Company introduction </ span> </ div></p> <p><DIV id = "gongsijieshao_menu_div" style = "LEFT: 40px; VISIBILITY: hidden; POSITION: absolute; TOP: 20px;" align = "center"> <SPAN οnclick = "; window.open ( './ gongsijieshao / gongsijianjie. HTM ',' Main ',' ') "ID =" span_jianjie "οnmοuseοver =" span_jianjie.style.background =' Green '; span_jianjie.style.color =' White '"style =" CURSOR: HAND; background:' # EFEFEF '; Left: 40; Width: 70; Top: 30; Color: Black "οnmοuseοut =" οnmοuseοut = "οnmοuseοut =" οnmοuseοut = "οnmοuseοut =" οnmjie.style.Background =' # Efefef '; span_jianjie.style.color =' black>> Company Profile </ span> <Span οnclick = "; window.open ('./ gongsijieshao / zongjinglizhici.htm', 'main', '')" id = "span_zongjinglizhici" style = "CURSOR: HAND; background: #efefef; Left: 120px; width : 80px; top: 30px; color: black "οnmοuseοver =" span_zongjinglizhici.style.background = 'green'; span_zongjinglizhici.style.color = 'white'; "οnmοuseοut =" span_zongjinglizhici.style.background = '# EFEFEF'; span_zongjinglizhici .style.color = 'black' "align =" center "> General manager </ span> <span οnclick ="; window.open ('./ gongsijieshao / zuzhijigou.htm', 'main', '') " ID = "zuzhijigou" οnmοuseοver = " zuzhijigou.style.background = 'green'; zuzhijigou.style.color = 'white' "style =" CURSOR: hand; background: #EFEFEF; left: 120px; width: 80px; top: 30px; color: black "οnmοuseοut = Zuzhijigou.Style.background = '# Efefef'; zuzhijigou.style.color = 'black' "align =" center "></p> <p>Organizations </ span> </ div> <div id = yaowen_div align = "style =" z-index: 1; left: 180px; visibility: visible; position: absolute; top: 5px; height: 20px; width : 70; "> <SPAN id = yaowen_menubar οnmοuseοver =" yaowen_menubar.style.background = 'green'; "style =" WIDTH: 80px; CURSOR: hand; background: # 164781; "οnclick =" gongsijieshao_menu_div.style.visibility = 'hidden'; chanpin_menu_div.style.visibility = 'hidden'; window.open ( './ zhongnengyaowen / zhongnengyaowen.htm', 'main', '') "οnmοuseοut =" yaowen_menubar.style.background = '# 164781'; "> I can ignore </ span> </ div></p> <p><Div id = chanpin_div style = "z-index: 1; top: 5px; Left: 260; visibility: visible; width: 80; cursor: hand; position: absolute; height: 20" align = "center"> <span style = "WIDTH: 70; background: # 164781" οnclick = "; window.open ( './ chanpinjieshao / chanpinjieshao.htm', 'main', '')" οnmοusedοwn = "chanpin_menu_div.style.visibility = 'visible' ; gongsijieshao_menu_div.style.visibility = 'hidden'; "id = chanpin_menubar οnmοuseοver =" chanpin_menubar.style.background = 'green' "οnmοuseοut =" chanpin_menubar.style.background = '# 164781'; "> product </ SPAN> </ Div></p> <p><DIV id = chanpin_menu_div style = "LEFT: 80px; VISIBILITY: hidden; POSITION: absolute; TOP: 20px; HEIGHT: 10px"> <SPAN id = jiance_div οnmοuseοver = "jiance_div.style.background = 'green'; jiance_div.style .COLOR = 'White'; "style =" cursor: hand; background: #efefef; color: 'black'; "οnmοuseοut =" οnmοuseοut = jiance_div.style.Background = '# efefef'; jiance_div.style.color = 'black' "οnclick ="; window.open ('./ chanpinjieshao / jiance / jiance.htm', 'main', ''); "> Monitor product </ span> <span id = Dianqi_div οnmοuser =" Dianqi_div.style. background = 'green'; dianqi_div.style.color = 'white'; "style =" CURSOR: hand; background: #EFEFEF; color: 'black'; "οnmοuseοut =" dianqi_div.style.background = '# EFEFEF'; Dianqi_div.style.color = 'black' "οnclick ="; window.open ('./ chanpinjieshao / dianqi / dianqi.htm', 'main', ''); "> Electric Company Products </ span> <span ID = zhizhu_div οnmοuseοver = "zhizhu_div.style.background = 'green'; zhizhu_div.style.color = 'white';" style = "CURSOR: hand; background: #EFEFEF; color: 'black';" οnmοuseοut = "zhizhu_div. Style.background = '# Efefef'; zhizhu_div.style.color = 'black' οnclick = "; window.open ('./ chanpinjieshao / zizhu / zizhu.htm', 'main', '');"> Independent Development Products </ span> <span id = qita_div οnmοuser = "qita_div.style.background = 'Green'; qita_div.style.color = 'White'; "style =" CURSOR: HAND; background: #efefef; color: 'black'; "</p> <p>οnmοuseοut = "qita_div.style.background = '# efefef'; qita_div.style.color = 'black'" οnclick = "; window.open ('./ chanpinjieshao / qita / qita.htm', 'main', '" ">> Other products </ span> </ div> <div id = guojihezuo_div align =" center "style =" z-index: 1; Left: 340px; Visibility: visible; position: absolute; top: 5px; height : 20px; WIDTH: 70; "> <SPAN id = guojihezuo_menubar οnmοuseοver =" guojihezuo_menubar.style.background = 'green'; "style =" WIDTH: 80px; CURSOR: hand; background: # 164781 "οnclick =" gongsijieshao_menu_div.style .visibility = 'hidden'; chanpin_menu_div.style.visibility = 'hidden'; window.open ( './ guojihezuo / guojihezuo.htm', 'main', '') "οnmοuseοut =" guojihezuo_menubar.style.background = '# 164781 '; "> International cooperation </ span> </ div></p> <p><Div id = "center" style = "z-index: 1; Left: 420px; Visibility: Visible; Position: absolute; top: 5px; height: 20px; width: 70;> <span id = xinxihudong_menubar οnmοuseοver = "xinxihudong_menubar.style.background = 'green';" style = "WIDTH: 80px; CURSOR: hand; background: # 164781" οnclick = "gongsijieshao_menu_div.style.visibility = 'hidden'; chanpin_menu_div.style.visibility = ' Hidden '; window.open (' ./ xinxihudong / xinxihudong.htm ',' main ',' '); "οnmοuseοut =" nmοuBar.Style.Background =' # 164781 '; "> Information interaction </ span> </ DIV> </ font> </ body> </ html></p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-19583.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="19583" 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.040</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 = 'VXYpzcEgB10H_2F8_2FEqhKHPXMFJCMRGhmiUYMZm1hqSIW2b5tmlU4wxz6nKvf6K0_2FFm2IBbPbUfMrDq8FB'; 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>