一款基于jquery实现的鼠标点击从页面右上角弹出的浮层代码,代码很简单,效果很实用!主要js代码$(document).ready(function(){ $(".showdiv").click(function(){ var box =300; var th= $(window).scrollTop()+$(window).height()/1.6-box; var h =document.body.clientHeight; var rw =$(window).width()/2-box; $(".showbox").animate({top:th,opacity:'show',width:600,height:340,right:rw},500); $("#zhezhao").css({ display:"block",height:$(document).height() }); return false; }); $(".showbox .close").click(function(){ $(this).parents(".showbox").animate({top:0,opacity: 'hide',width:0,height:0,right:0},500); $("#zhezhao").css("display","none"); });});
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)