//Hover Top; (function($) {$.fn.crumbsfixedposition=function(options) {varDefaults ={cName:' Fixed_pos ' } varOptions =$.extend (defaults, options); return This. each (function () { var$ This= $( This); varT = $ ( This). Offset (). Top; $ (window). On (' Scroll ',function () { if($( This). ScrollTop () >t) {$ This. addclass (Options.cname); } Else { $ This. Removeclass (Options.cname); } }); }); };}) (jQuery); $ (function () { $('. Curr_pos '). Crumbsfixedposition ();});
//back to top; (function($) {$.fn.backtotop=function(options) {varDefaults ={t:200 } varOptions =$.extend (defaults, options); return This. each (function () { var$ This= $( This); $ This. Append (' <div class= ' backtotop ' ><span> return top </span></div> '); var$o = $ This. Find ('. BackToTop ')); $ (window). On (' Scroll resize ',function () { if($ (document). ScrollTop () > 0) {$o. FadeIn (); } Else{$o. FadeOut (); } }); $o. On ({' Click ':function () { $(' body,html '). Stop (true,false). Animate ({scrolltop:0}, OPTIONS.T); }, ' Selectstart ':function () { return false; } }); }); };}) (jQuery); $ (function () { $(' Body '). BackToTop ();});