Recently in learning JavaScript, gave me a topic to write a two-level linkage effect. As an exercise.
Write a two-level linkage of the HTML page, the specific requirements are as follows:
1, the page support through the keyboard on the key to achieve the focus of movement
2, the left side of the page is the name of the parent column, such as movies, TV dramas, sports, music, children, arts, consulting, etc.
3, focus on the corresponding parent column, display sub-column information, such as the film column under the 1,2,3,4,5 and other sub-columns;
4, the page data is static data, can be configured to modify;
Effect:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/48/87/wKioL1QJSQKTbRHzAACaH6un-Qo229.jpg "title=" "width = "413" height= "310" border= "0" hspace= "0" vspace= "0" style= "width:413px;height:310px;" alt= " Wkiol1qjsqktbrhzaacah6un-qo229.jpg "/>
This article is from the "Orange Growth Record" blog, be sure to keep this source http://azhome.blog.51cto.com/9306775/1549196
JavaScript implements DIV Two-level linkage effect (response keyboard button)