البحث عن
]]></b:skin>
فوقه
#scrollToTop{display:none;list-style:none;position:fixed;bottom:49%;right:10px;cursor:pointer;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}#scrollToTop a{color:rgba(0,0,0,0.2);font-size:16px}#scrollToTop a:hover{color:rgba(0,0,0,0.5)}#top{position:absolute;top:0}
البحث عن
</body>
فوقه
<ul id='scrollToTop'><li><a href='#top'><i class='fa fa-chevron-up' title='Go up'/></a></li><li><a href='#bottom'><i class='fa fa-chevron-down' title='Go down'/></a></li></ul><div id='top'/><div id='bottom'/><script type='text/javascript'>//<![CDATA[jQuery(document).ready(function(){var o=220,r=600;jQuery(window).scroll(function(){jQuery(this).scrollTop() > o?jQuery("#scrollToTop").fadeIn(r):jQuery("#scrollToTop").fadeOut(r)})});$(function(){$("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=$(this.hash);if(t=t.length?t:$("[name="+this.hash.slice(1)+"]"),t.length)return $("html,body").animate({scrollTop:t.offset().top},600),!1}})});//]]></script>
وسلامتكم
0 التعليقات :
إرسال تعليق