当前位置:网站首页>JQ picture amplifier
JQ picture amplifier
2022-06-28 05:51:00 【Yuanxiaobai】
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.div{
width:500px;
height: 282px;
border: 1px solid gray;
}
.dv{
width:100px;
height: 100px;
//display: none;
border: 1px solid gray;
border-radius: 50px;
background-image: url(img/1.jpg);
position: absolute;
}
</style>
</head>
<body>
<div class="div"><img src="img/1.jpg" width="500px"/></div>
</body>
<script src="jq/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="jq/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(function(e){
$(".div").mousemove(function(e){
var x=e.pageX;
var y=e.pageY;
$(".div").append("<div class='dv'></div>");
$(".dv").css({"left":x,"top":y});
x=x*2-70;
y=y*2-65;
//console.log(x+"\t"+y);
if(x<=0){
x=0;
}
if(y<=0){
y=0;
}
if(x>=900){
x=900;
}
if(y>=460){
y=460;
}
//$(".dv").show();
$(".dv").css("backgroundPositionX",-x);
$(".dv").css("backgroundPositionY",-y);
});
$(".div").mouseout(function(e){
//$(".dv").hide();
$(".dv").remove();
});
})
</script>
</html>

边栏推荐
- Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application
- 19 fonctions de perte d'apprentissage profond
- At first glance, I can see several methods used by motionlayout
- JSP connects with Oracle to realize login and registration (simple)
- numpy.reshape, numpy.transpose的理解
- 5GgNB和ng-eNB的主要功能
- 博客登录框
- Data warehouse: detailed explanation of hierarchical design
- Jenkins持续集成1
- Yin Yang master page
猜你喜欢

RL 实践(0)—— 及第平台辛丑年冬赛季【Rule-based policy】

Jenkins持续集成1

pytorch详解

Filecoin hacker song developer competition

File foundation - read / write, storage

独立站卖家都在用的五大电子邮件营销技巧,你知道吗?
![A full set of excellent SEO tutorials worth 300 yuan [159 lessons]](/img/d7/7e522143b1e6b3acf14a0894f50d26.jpg)
A full set of excellent SEO tutorials worth 300 yuan [159 lessons]

Valueerror: iterative over raw text documents expected, string object received

Line animation

Yin Yang master page
随机推荐
Office is being updated and the application cannot start normally
Oracle基础知识总结
A full set of excellent SEO tutorials worth 300 yuan [159 lessons]
19 fonctions de perte d'apprentissage profond
Online yaml to JSON tool
数据仓库:金融/银行业主题层划分方案
高质量国产立体声编解码器CJC8988,Pin to Pin替代WM8988
阴阳师页面
@Autowired注解为空的原因
YYGH-6-微信登录
What is webrtc?
Flink 窗口机制 (两次等待, 最后兜底)
1404. 将二进制表示减到1的步骤数
Academic search related papers
拉萨手风琴
FB、WhatsApp群发消息在2022年到底有多热门?
qtcanpool 知 07:Ribbon
Jdbc的使用
使用pytorch和tensorflow计算分类模型的混淆矩阵
Blog login box