最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

jQuery簡(jiǎn)易圖片放大特效示例代碼

 更新時(shí)間:2014年06月09日 11:23:34   作者:  
這篇文章主要介紹了通過(guò)jQuery實(shí)現(xiàn)的簡(jiǎn)易圖片放大特效,需要的朋友可以參考下
DEMO點(diǎn)擊圓形圖片,圖片方法,將水的圖片放置與下層,鼠標(biāo)移上去的時(shí)候,圖片高與寬同比增大,并且圖片向左上移動(dòng)

代碼
復(fù)制代碼 代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無(wú)標(biāo)題文檔</title>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(e) {
$(".water1").mouseover(function(){
$("#img1").stop(true,true).animate({top:"-32.5px",left:"-32.5px", width:"400px",height:"400px"},"slow");
$("#img2").stop(true,true).animate({top:"-10px",left:"-10px", width:"115px",height:"115px"},"slow");
$("#img3").stop(true,true).animate({top:"-4px",left:"-4px", width:"41px",height:"41px"},"slow");
})
$(".water1").mouseout(function(){
$("#img1").stop(true,true).animate({top:"0px",left:"0px",width:"335px",height:"335px"},"slow");
$("#img2").stop(true,true).animate({top:"0px",left:"0px", width:"95px",height:"95px"},"slow");
$("#img3").stop(true,true).animate({top:"0px",left:"0px", width:"33px",height:"33px"},"slow");
})
});
</script>
<style>
.show{ width:1440px; height:474px; position:relative; background-color:#3d9abc;}
.water1{ height: 335px; width:335px; border-radius:167.5px; overflow:hidden; position:absolute; left:186px; top:69px;}
.water2{ height: 95px; width:95px; border-radius:47.5px; overflow:hidden; position:absolute; left:545px; top:294px;}
.water3{ height: 33px; width:33px; border-radius:16.5px; overflow:hidden; position:absolute; left:549px; top:220px;}
#img1{ position:absolute;}
#img2{ position:absolute; }
#img3{ position:absolute;}
</style>
</head>
<body>
<div class="show">
<div class="water1"><img id="img1" src="images/big.jpg" /></div>
<div class="water2"><img id="img2" src="images/middle.jpg" /></div>
<div class="water3"><img id="img3" src="images/small.jpg" /></div>
</div>
</body>
</html>

相關(guān)文章

最新評(píng)論

临沧市| 滦平县| 玉溪市| 洮南市| 桐庐县| 河北区| 道孚县| 宿迁市| 武宣县| 建德市| 华阴市| 额济纳旗| 温宿县| 丰都县| 张家口市| 芒康县| 东丰县| 竹山县| 甘泉县| 马公市| 应用必备| 嘉义县| 临海市| 阿巴嘎旗| 五寨县| 都安| 武平县| 玉林市| 木兰县| 巴林左旗| 宣城市| 库尔勒市| 汕头市| 泗水县| 正镶白旗| 德化县| 天等县| 吉安县| 瑞丽市| 宝坻区| 瓦房店市|