JQuery primary tutorial website brand list effect

Example of this article shared the specific code of the jQuery website brand list effect show, for your reference, the specific content is as follows

1.Eg2.aspx

        $ (Function () {var category = $ ("Div.Subname UL Li: GT (3 ) "); // obtain a collection object of the index value greater than 3 category.hide (); // hide the jQuery objects you have acquired. Var showbtn = $ (" Div.allName> a "); showbtn.click (Function) ) {IF (": visible") {category.hide (); $ (this) .find ('span'). CSS ("Background", "URL (IMG / Down.gif) No- Repeat 0 0 "). TEXT (" Display all places "); $ (" UL Li "). RemoveClass (" promoted "); // Remove the highlight pattern} else {category.show (); $ (this). Find ("span"). CSS ("Background", "URL (IMG / UP.GIF) NO-REPEAT 0 0"). Text ("Show some places"); $ ("UL Li"). Filter ("" : Contains ('Nanjing') ,: Contains ('Inner Mongolia') ,: Contains "). AddClass (" Promoted "); / / Add a highlighted pattern for specific content}Return false; // hyperlink does not jump})})      Nanjing       Figure 2  
The above is all the content of this article, I hope to help everyone, I hope everyone will support Tumi Clouds.
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment