Copy codeThe Code is as follows: // live is mainly used to bind events to elements Dynamically Loaded.
// Product catalog
$ (". Lm_div_q dd"). live ({
Mouseenter: function (){
$ (This). find ("strong"). addClass ("tj_strong ");
$ (This). find ("strong"). next (). slideDown (200); // display the drop-down list
},
Mouseleave: function (){
$ (This). find ("strong"). removeClass ("tj_strong ");
$ (This). find ("strong"). next (). slideUp (200); // hide the drop-down list
}
});
// Hover directly binds the event <PRE class = javascript name = "code"> // product directory
$ (". Lm_div_q dd"). hover (function (){
$ (This). find ("strong"). addClass ("tj_strong ");
$ (This). find ("strong"). next (). stop (true, true). slideDown (200); // display the drop-down box
}, Function (){
$ (This). find ("strong"). removeClass ("tj_strong ");
$ (This). find ("strong"). next (). stop (true, true). slideUp (200); // hide the drop-down box
}); </PRE> <BR>
<BR>
<PRE> </PRE>
<BR>
<BR>