jQuery右侧悬浮返回顶部和分享按钮代码

jQuery右侧悬浮返回顶部和分享按钮代码-精品资源网
jQuery右侧悬浮返回顶部和分享按钮代码
此内容为免费资源,请登录后查看
0
免费资源

jQuery右侧悬浮返回顶部和分享按钮代码

一款带返回顶部按钮,微信二维码和微博分享按钮的jQuery网站右侧悬浮栏代码。

js代码

<script type=\"text/javascript\">
$(document).ready(function(){

	$(window).scroll(function() {
		if ($(window).scrollTop() > 300) {
			$(\'#jump li:eq(0)\').fadeIn(800);
		} else {
			$(\'#jump li:eq(0)\').fadeOut(800);
		}
	});
	
	$(\"#top\").click(function() {
		$(\'body,html\').animate({
			scrollTop: 0
		},
		1000);
		return false;
	});
	
});
</script>
<script type=\"text/javascript\">
function showEWM(){
	document.getElementById(\"EWM\").style.display = \'block\';
}
function hideEWM(){
	document.getElementById(\"EWM\").style.display = \'none\';
}
</script>

© 版权声明
THE END
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容