jQuery-实现仿QQ空间鼠标感应图片滚动
以上只是部份演示图片,详细可以付费购买。
<!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>jQuery仿QQ空间鼠标感应图片滚动预览代码</title>
<script type="text/javascript" src="//xcdn.php.cn/js/ads/jQuery仿QQ空间鼠标感应图片滚动/js/jquery-1.7.2.js" ></script>
<script type="text/javascript" src="//xcdn.php.cn/js/ads/jQuery仿QQ空间鼠标感应图片滚动/js/longPicSHow.js" ></script>
<script type="text/javascript">
$(function(){
$(".innerDiv").longPicShow(150);
})
</script>
<style type="text/css">
*{padding:0px;margin:0px;list-style-type:none;}
.outDiv{border:1px solid #ddd;width:500px;height:500px;padding:20px;margin:20px auto;background:#7ce;}
.innerDiv{width:500px;height:500px;position:relative;background:#fff;overflow:hidden;}
</style>
</head>
<body>
<br/>
<center>
<h1>鼠标移到图片的上下查看效果</h1>
</center>
<noscript>
该浏览器不能执行javascript!请检查是否有禁用浏览器!
</noscript>
<div class="outDiv">
<div class="innerDiv">
<img src="//xcdn.php.cn/js/ads/jQuery仿QQ空间鼠标感应图片滚动/images/jsdaima.jpg"/>
</div>
</div>
</body>
</html>
以上代码中的图片和JS,请下载到自己网站目录中使用!
页:
[1]