Mobile phone H5 click category to automatically locate the corresponding content, h5 category
_ Obj = {};
/* Click the pop-up category */
_ Obj. openZZ = function (){
Document. getElementById ("app_screen01"). style. display = "block"; // The mask layer is displayed when the category is displayed.
_ Box_object.shownavigation (); // category animation pop-up effect
}
/* Click "Hide category */
_ Obj. openZZ2 = function (){
Document. getElementById ("app_screen01"). style. display = "none"; // hide the mask layer when category is hidden
_ Box_object.hidenavigation (); // hide a category
}
$ ("# Ul_type_id li"). on ("click", function (){
_ Obj. openZZ2 ();
Var scroll_offset = $ ("#" + $ (this). attr ("alt"). offset ();
$ ("Body, html"). animate ({
ScrollTop: scroll_offset.top-50 // Let the body's scrollTop is equal to the top of the pos, it implements the Rolling
},500 );
});