This article mainly introduces the AJAX dynamic loading (example explanation) of using jquery to quickly implement the tab. The friends you need can come over and hope to help you.
Let me briefly explain the implementation process: 1. Find the link source, I'm here is a string of Li under the link 2. Handling styles 3. When the mouse is moved to load the site of the link source to the specified container, and toggle the style so that the Click event returns false , here should not click on the link source page 5.Over . script: Code as follows: { //homenews var tid = "#homeNews";//removetabbold var lvtabs = $ (TID); if (lvtabs!= null) { &NB Sp Lvtabs.find ("a"). each (the function () {$ (this). Click (function () {return false;}); $ (this). MouseOver (function () {Removetabbold (TID), $ (this). AddClass ("bold"), $ (this). Parent (). addclass ("LVBG"); $ (' #HomeNewsList '). Load ($ (this). href ()); return false;})}; { } function Removetabbold (lvtabid) { $ (lvtabid). Find ("a"). each (the function () {$ (this). Removeclass ("bold"), $ (this). Parent (). Removeclass ("LVBG"); $ (this). Parent(). Parent (). Parent (). Removeclass ("LVP"); }