


JS implements the Blog management menu effect code on the left side of Sina blog_javascript skills
The example in this article describes the JS implementation of the Blog management menu effect code on the left side of Sina Blog. Share it with everyone for your reference, the details are as follows:
Here we introduce the Blog management menu on the left side of Sina blog. Let’s make some changes. If you are designing a program, then this menu should be very suitable for use in background management. The picture is called Sina, which is used a lot. For pictures, it is best to download them locally when you use them, so as not to make you stupid if Sina changes its version one day.
The screenshot of the running effect is as follows:
The online demo address is as follows:
http://demo.jb51.net/js/2015/js-sina-blog-left-menu-style-codes/
The specific code is as follows:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新浪博客左侧的管理菜单</title> <style type="text/css"> <!-- body{margin:0;padding:0;background:url("images/bg.gif")} body, td{font-size:12px} .menu_box_pad{background:#fdf9d5;padding:0 2px 2px 2px} .menu_box{border-top:1px solid #ababab;border-left:1px solid #ababab;border-right:1px solid #d6d6d6;border-bottom:1px solid #d6d6d6} .menu_box th{background:url('images/menu_list_icon.gif') no-repeat center;line-height:22px;width:10px} .menu_box td{background:url('images/menu_list_split.gif') no-repeat left bottom;line-height:20px} .menu_box a{text-decoration:none;color:#000} .menu_box a:hover{text-decoration:underline} .hand{cursor:hand;cursor:pointer} .ctrl_menu{border-left:1px solid #767676;border-bottom:1px solid #767676;border-right:1px solid #767676;background:#ffcf60} .ctrl_menu_title{padding-left:15px;font-weight:bold;line-height:25px} .ctrl_menu_title_bg{background:url('images/menu_title_bg.gif')} .top_bg{background:url("images/top_bg.gif")} .logo_bg{background:url("images/logo_bg.gif")} #top_nav_menu {color:#fff} #top_nav_menu a{text-decoration:none;color:#fff} #top_nav_menu a:hover{text-decoration:underline;color:#ff6} --> </style> <script> function $(_sId){ return document.getElementById(_sId); } function exist(_sId){ var oObj = $(_sId); return oObj != null ? oObj : false; } function dw(_sTxt){ document.write(_sTxt); } function hide(_sId){ $(_sId).style.display = $(_sId).style.display == "none" ? "" : "none"; } function onlyShow(_sId, _iNum, _sPic, _sTxt1, _sTxt2){ var i = 0; var oCurr = exist(_sId + i); while(oCurr){ oCurr.style.display = "none"; $(_sPic + i).src = _sTxt2; i++; oCurr = exist(_sId + i) } $(_sId + _iNum).style.display = ""; $(_sPic + _iNum).src = _sTxt1; } function swapShow(_sId){ var i = 0; var oCurr = exist(_sId + i); while(oCurr){ hide(_sId + i); i++; oCurr = exist(_sId + i) } } function seekKey(_sKey){ var i = 0; while(exist(_sKey + i)){ i++; } return i; } function swapPic(_sId,_sAttr,_sTxt1, _sTxt2) { $(_sId)[_sAttr] = $(_sId)[_sAttr].indexOf(_sTxt1) > -1 ? _sTxt2 : _sTxt1; } function swap(_sId,_sAttr,_sTxt1, _sTxt2) { $(_sId)[_sAttr] = $(_sId)[_sAttr] == _sTxt1 ? _sTxt2 : _sTxt1; } function moveGif(_sId){ swap(_sId,'className','marginLeft2',''); } function moveStart(_sId){ __tmp__time = setInterval("moveGif('" + _sId + "')",200); } function moveStop(_sId){ clearInterval(__tmp__time); $(_sId).className = "marginLeft2"; } function switchShow(){ hide('left'); swapPic('arrow','src','images/control_switch_up.gif','images/control_switch_down.gif'); swapShow('hideLeft'); swapShow('hideBody'); } function scroll_to_top() { document.body.scrollTop=0; } function mainFrameRedirect(url) { oo = document.getElementById("mainFrame"); oo.url = url; } </script> </head> <body> <table align="left" width="220" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="50" align="left" valign="top"> <!-- 控制面板菜单 --> <table width="205" border="0" cellspacing="0" cellpadding="0" class="ctrl_menu"> <tr height="5"><td></td></tr> <tr> <td align="center"> <!-- BLOG文章 --> <table width="195" border="0" cellspacing="0" cellpadding="0" class="ctrl_menu_title_bg"> <tr class="hand" onClick="hide('hideMenuFunc3')"> <td width="174" class="ctrl_menu_title">BLOG文章管理</td> <td width="21"><image id='MenuFunc3' src="images/menu_title_down.gif"></td> </tr> <tr id="hideMenuFunc3"> <td align="left" colspan="2" class="menu_box_pad"> <table width="100%" border="0" cellspacing="5" cellpadding="0" class="menu_box"> <tr> <th> </th> <td><a href="#" target="mainFrame" onClick="scroll_to_top()">发表BLOG文章</a></td> </tr> <tr> <th> </th> <td><a href="#" target="mainFrame" onClick="scroll_to_top()">BLOG文章管理</a></td> </tr> <tr> <th> </th> <td><a href="#" target="mainFrame" onClick="scroll_to_top()">BLOG评论管理</a></td> </tr> </table> </td> </tr> </table> <!-- /BLOG文章 --> </td> </tr> <tr height="5"><td></td></tr> <tr> <td align="center"> <!-- BLOG信息 --> <table width="195" border="0" cellspacing="0" cellpadding="0" class="ctrl_menu_title_bg"> <tr class="hand" onClick="hide('hideMenuFunc2')"> <td width="174" class="ctrl_menu_title">BLOG信息设置</td> <td width="21"><image id='MenuFunc2' src="images/menu_title_down.gif"></td> </tr> <tr id="hideMenuFunc2"> <td align="left" colspan="2" class="menu_box_pad" > <table width="100%" border="0" cellspacing="5" cellpadding="0" class="menu_box"> <tr> <th> </th> <td><a href="#" target="mainFrame" onClick="scroll_to_top()">更改基本信息</a></td> </tr> <tr> <th> </th> <td><a href="#" target="mainFrame" onClick="scroll_to_top()">定制我的模板</a></td> </tr> <tr> <th> </th> <td><a href="#" target="mainFrame" onClick="scroll_to_top()">首页内容维护</a></td> </tr> </table></td> </tr> </table> <!-- /BLOG信息 --></td> </tr> <tr height="5"><td></td></tr> <tr> <td align="center"> <!-- 个人信息 --> <table width="195" border="0" cellspacing="0" cellpadding="0" class="ctrl_menu_title_bg"> <tr class="hand" onClick="hide('hideMenuFunc1')"> <td width="174" class="ctrl_menu_title">个人信息设置</td> <td width="21"><image id='MenuFunc1' src="images/menu_title_down.gif"></td> </tr> <tr id="hideMenuFunc1" style="display:none"> <td align="left" colspan="2" class="menu_box_pad"> <table width="100%" border="0" cellspacing="5" cellpadding="0" class="menu_box"> <tr> <th> </th> <td><a target="mainFrame" href="#" onClick="scroll_to_top()">更改基本资料</a></td> </tr> <tr> <th> </th> <td><a target="mainFrame" href="#" onClick="scroll_to_top()">登录默认选项</a></td> </tr> </table> </td> </tr> </table> <!-- /个人信息 --> </td> </tr> <tr height="5"><td></td></tr> </table> </body> </html>
I hope this article will be helpful to everyone in JavaScript programming.

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

JavaScript's applications in the real world include server-side programming, mobile application development and Internet of Things control: 1. Server-side programming is realized through Node.js, suitable for high concurrent request processing. 2. Mobile application development is carried out through ReactNative and supports cross-platform deployment. 3. Used for IoT device control through Johnny-Five library, suitable for hardware interaction.

I built a functional multi-tenant SaaS application (an EdTech app) with your everyday tech tool and you can do the same. First, what’s a multi-tenant SaaS application? Multi-tenant SaaS applications let you serve multiple customers from a sing


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Notepad++7.3.1
Easy-to-use and free code editor