jQuery图片旋转插件jQueryRotate可设定旋转的方向、角度

  • 脚本大小:250KB
  • 脚本语言:简体中文
  • 脚本类型:国产软件
  • 脚本授权:免费软件
  • 脚本类别:jQuery
  • 应用平台:jquery
  • 更新时间:2013-05-16
  • 网友评分:
360通过 腾讯通过 金山通过

情介绍

本插件可以对网页内的普通图片进行旋转,有相当丰富的参数可以进行设置,可以设定旋转的方向,旋转的角度,还可以设定鼠标事件,当鼠标滑过时动态旋转,非常棒
在网页<head>区添加以下代码
[code]
<script type="text/javascript" src="//www.sharejs.com/software/jquery/jquery-1.3.1.js"></script>
<script language="javascript" src="jQueryRotate.js"></script>
<!-- Include the VML behavior -->
<style>v\:image { behavior:url(#default#VML); display:inline-block }</style>
<!-- Declare the VML namespace -->
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
[/code]
其中:
[code]
<!-- Include the VML behavior -->
<style>v\:image { behavior:url(#default#VML); display:inline-block }</style>
<!-- Declare the VML namespace -->
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
[/code]
必须添加到你的<head>区 否则图片不会显示、
jQueryRotate.js是旋转的jQuery插件,点击这里下载>>>
在网页<body>区添加以下代码
[code]
<img id="image" src="1.jpg"><Br><br>
<img id="image2" src="1.jpg"><Br><br>
<img id="image3" src="1.jpg"><Br><br>
<p></p>
<script type="text/javascript">
$(document).ready(function()
{
var rot=$('#image3').rotate({maxAngle:25,minAngle:-55,
bind:
[
{"mouseover":function(){rot[0].rotateAnimation(85);}},
{"mouseout":function(){rot[0].rotateAnimation(-35);}}
]
});
$('#image2').rotateAnimation({angle:5});

$('#image').rotate(-25);

});
</script>
[/code]
image,image2,image3分别为三个图片的ID
调用方法如下:
[code]
jQuery(imgElement).rotate(angleValue)
jQuery(imgElement).rotate(parameters)
jQuery(imgElement).rotateAnimation(parameters)
jQuery(imgElement).rotateAnimation(parameters)
[/code]
参数说明:
({angle:angleValue,
[animateAngle:animateAngleValue],
[maxAngle:maxAngleValue],
[minAngle:minAngleValue],
[callback:callbackFunction],
[bind:[{event: function},{event:function} ] })
jQuery(imgElement).rotateAnimation

载地址

下载错误?【投诉报错】

jQuery图片旋转插件jQueryRotate可设定旋转的方向、角度

      气脚本

      关文章

      载声明

      ☉ 解压密码:www.jb51.net 就是本站主域名,希望大家看清楚,[ 分享码的获取方法 ]可以参考这篇文章
      ☉ 推荐使用 [ 迅雷 ] 下载,使用 [ WinRAR v5 ] 以上版本解压本站软件。
      ☉ 如果这个软件总是不能下载的请在评论中留言,我们会尽快修复,谢谢!
      ☉ 下载本站资源,如果服务器暂不能下载请过一段时间重试!或者多试试几个下载地址
      ☉ 如果遇到什么问题,请评论留言,我们定会解决问题,谢谢大家支持!
      ☉ 本站提供的一些商业软件是供学习研究之用,如用于商业用途,请购买正版。
      ☉ 本站提供的jQuery图片旋转插件jQueryRotate可设定旋转的方向、角度资源来源互联网,版权归该下载资源的合法拥有者所有。