JS implementation of early sliding door menu effect Code _javascript Skills

Source: Internet
Author: User

This paper illustrates the early sliding door menu effect Code of JS implementation. Share to everyone for your reference. Specifically as follows:

Here are the legendary early Sliding door menu Demo code, test please put the mouse on the left-hand side of the corresponding navigation column, on the left menu, you found the mystery, the right side of the content will follow the changes, JS and HTML combined to achieve, compare the traditional navigation effect.

The screenshot of the running effect is as follows:

The online demo address is as follows:

http://demo.jb51.net/js/2015/js-old-ver-menu-cha-codes/

The specific code is as follows:

<HTML> <HEAD> <TITLE> Text navigation effect--sliding door </TITLE> <meta http-equiv=content-type content= "text/ html charset=gb2312 "> </HEAD> <body bgcolor= #fef4d9 > <CENTER> <table bordercolor= #993399 border=5 borderlight= "Green" > <TBODY> <TR> <td align=middle> <script language=javascript> <!--B Egin var linktext=new Array () linktext[0]= ' <table border= "0" width= "210" height= "185" bgcolor= "#EFEFEF" cellpadding= "8" cellspacing= "0" ><tr><td valign= "top" > most commonly used alumni site </td></tr></table> ' Linktext [1]= ' <table border= "0" width= "210" height= "185" bgcolor= "#D1FD80" cellpadding= "8" cellspacing= "0" ><tr> &LT;TD valign= "Top" > China's largest gaming website-nineth City </td></tr></table> ' linktext[2]= ' <table border= "0" width = "210" height= "185" bgcolor= "#FDB9FD" cellpadding= "8" cellspacing= "0" ><tr><td valign= "Top" > China's largest news release class site-Sina </td></tr></table> ' linktext[3]= ' <table Border= "0" width= "210" height= "185" bgcolor= "#FFFF5E" cellpadding= "8" cellspacing= "0" ><tr><td valign= " Top "> The largest comprehensive entertainment site in China--netease </td></tr></table> ' linktext[4]= ' <table border=" 0 "width=" 210 "height = "185" bgcolor= "#C2D7FC" cellpadding= "8" cellspacing= "0" ><tr><td valign= "Top" > Largest search engine site ...
Baidu </td></tr></table> ' var ns6=document.getelementbyid&&!document.all var ie=document.all function Show_text (thetext, Whichdiv) {if (IE) eval ("document.all.") +WHICHDIV). Innerhtml=linktext[thetext] Else if (NS6) document.getElementById (whichdiv). Innerhtml=linktext[thetext] } function Reset (whichdiv) {if (IE) eval ("document.all.") +whichdiv). innerhtml= ' <table border= "0" width= "210" height= "185" bgcolor= "#F88530" cellpadding= "0" cellspacing= "8 "><tr><td valign=" top "><font face=" Arial "size=" 4 "><b> please put your mouse on the corresponding navigation section on the left <p> change </b></font></td></tr></table> ' else if (NS6) document.getElementbyid (whichdiv). innerhtml= ' <table border= "0" width= "210" height= "185" bgcolor= "#F88530" cellpadding= "8" cellspacing= "0" ><tr><td valign= "top" ><font face= "Arial" size= "4" ><b> please put your mouse on the corresponding navigation section on the left. <p> See the effect of change? </b></font></td></tr></table> '}//End--> </SCRIPT> <table cellspacing=0  Cellpadding=3 width=370 align=center bgcolor=black border=0> <TBODY> <TR> <TD> <table cellspacing=0 cellpadding=0 width=370 background= "border=0><tbody> <TR> <TD> ; TABLE cellspacing=0 cellpadding=8 width=160 bgcolor= #f88530 border=0> <TBODY> <TR> &L T TD onmouseover= "bgcolor= ' #EFEFEF"; Show_text (0, ' div1 ') "style=" Cursor:hand "onclick=" window.location= ' http://www.chinaren.com ' "Onmouse" out= "bgcolor= ' #F88530"; Reset (' Div1 ') "> Chinese </TD></TR> <TR> <td onmouseover=" BgcoLor= ' #D1FD80 '; Show_text (1, ' Div1 ') "style=" Cursor:hand "onclick=" window.location= ' http://www.the9.com ' "onmouseout=" "Bgcolor= ' #F88530 '; Reset (' Div1 ') "> Nineth City </TD></TR> <TR> <td onmouseover=" bgcolor= ' #FDB9FD '; Show_text (2, ' Div1 ') "style=" Cursor:hand "onclick=" window.location= ' http://www.sina.com.cn ' "Onmouseo" ut= "bgcolor= ' #F88530"; Reset (' Div1 ') "> Sina </TD></TR> <TR> <td onmouseover=" bgcolor= ' #FFFF5E '; Show_text (3, ' Div1 ') "style=" Cursor:hand "onclick=" window.location= ' http://www.163.com ' "onmouseout=" Bgcolor= ' #F88530 '; Reset (' Div1 ') "> NetEase </TD></TR> <TR> <td onmouseover=" bgcolor= ' #C2D7FC '; Show_text (4, ' Div1 ') "style=" Cursor:hand "onclick=" window.location= ' http://www.baidu.com ' "onmouseout" = "Bgcolor= ' #F88530"; Reset (' Div1 ') > Baidu </TD></TR></TBODY></TABLE></TD> <td>&Lt SPAN id=div1> <table height=185 cellspacing=0 cellpadding=8 width=210 bgcolor= #f88530 border=0> & Lt tbody> <TR> <td valign=top><font face=arial size=4><b> Please put your mouse on the corresponding navigation section on the left-hand side <p > has changed </p></b></font></td></tr></tbody></table></span></ td></tr></tbody></table></td></tr></tbody></table></td><

 /tr></tbody></table> </CENTER> </BODY> </HTML>

The

wants this article to help you with your JavaScript programming.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.