Share the Jquery plug-in for Taobao Tmall left classified navigation
Recently, I have been messing around with websites and have always been very optimistic about Tmall's classified navigation. But alas... It's not very easy to trouble.. Finally, I found the Tmall classified navigation code and didn't say much. This Jquery plug-in is another powerful and practical work. It is one of the indispensable weapons for e-commerce websites. It is very simple to use, and the web page code structure is very clear.
Compatible with IE6(no folding effect), IE7, IE8 and above, Firefox,Chrome and other mainstream browsers.
Plug-in parameters are configured as follows: 1 target: $('#Z_RightSide')//bind the ID of the container on the right
2 fTop: 60, //Distance from top
3cTop: 100, //How many pixels does the scroll bar scroll to start folding?
4 unitHeight: 80, //Fold one per how many distance you scroll
5 autoExpand: true//Whether to fold automatically
Contains the following effects:
1. Fiexd positioning (layer sliding effect)
2. Animation effects (layer folding and unfolding)
3. Layout switching (large and small categories display)
4. Pop-up layer (right layer)
5. Scroll bar event (automatically controls navigation expansion and folding)
6. Event where the window size changes (relocation)
7. Intelligent positioning of the right pop-up layer
8. Handle transparent backgrounds of PNG images under IE6 (DD_belatedPNG plug-in).