jquery Fast Tab-enabled AJAX dynamic loading instance explanation

Source: Internet
Author: User

  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");    }  
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.