第25款插件:execute 鼠标移动到图片上,图片就会弹起的插件(仿苹果界面)

来源:互联网 发布:吹雪漫画软件下载 编辑:程序博客网 时间:2024/05/29 16:10

描述: 当鼠标移动到图片上,图片就会弹起。一种是阴影式的,一种是倒影式的!
兼容浏览器: IE7+/Firefox/Google Chrome
官方链接: http://www.adrianpelletier.com/2 ... ect-with-jquery-ui/
JS下载: http://ijquery.360sites.cn/js/execute.js
预览: http://ijquery.360sites.cn/demo/execute打包下载: http://ijquery.360sites.cn/demo/execute/execute.zip参数说明: 
图片展示:

JS引用代码:

  1. <script type="text/javascript" charset="utf-8" src="http://ijquery.360sites.cn/js/jquery-1.3.2.min.js"></script>
  2. <script type="text/javascript" charset="utf-8" src="http://ijquery.360sites.cn/js/execute.js"></script>
复制代码
HTML代码:
  1. <h2>Reflection-倒影</h2>
  2. <ul id="nav-reflection">
  3.         <li class="button-color-1"><a href="#" title=""></a></li>
  4.         <li class="button-color-2"><a href="#" title=""></a></li>
  5.         <li class="button-color-3"><a href="#" title=""></a></li>
  6.         <li class="button-color-4"><a href="#" title=""></a></li>
  7. </ul>

  8. <h2>Shadow-阴影</h2>
  9. <ul id="nav-shadow">
  10.         <li class="button-color-1"><a href="#" title=""></a></li>
  11.         <li class="button-color-2"><a href="#" title=""></a></li>
  12.         <li class="button-color-3"><a href="#" title=""></a></li>
  13.         <li class="button-color-4"><a href="#" title=""></a></li>
  14. </ul>
复制代码
CSS代码:
  1. <link rel="stylesheet" type="text/css" href="css/screen.css" media="all" />
复制代码
即:
  1. #nav-reflection {
  2.         margin: 0 auto 50px auto;
  3.         padding: 50px 0 0 172px;
  4.         width: 452px;
  5.         min-height: 130px;
  6.         list-style: none;
  7. }

  8. #nav-reflection li {
  9.         margin-right: 15px;
  10.         width: 59px;
  11.         float: left;
  12. }

  13. #nav-reflection a, #nav-reflection a:visited, #nav-reflection a:hover {
  14.         width: 59px;
  15.         height: 59px;
  16.         text-indent: -9999px;
  17.         overflow: hidden;
  18.         background: url(../images/icons.png) no-repeat;
  19.         display: block;
  20. }

  21. #nav-reflection span {
  22.         margin-top: 1px;
  23.         width: 59px;
  24.         height: 34px;
  25.         text-align: center;
  26.         background: url(../images/icons-reflections.jpg) no-repeat;
  27.         display: block;
  28. }

  29. /* Button Colors */

  30. #nav-reflection li.button-color-1 a {
  31.         background-position: -3px -3px;
  32. }

  33. #nav-reflection li.button-color-2 a {
  34.         background-position: -92px -3px;
  35. }

  36. #nav-reflection li.button-color-3 a {
  37.         background-position: -181px -3px;
  38. }

  39. #nav-reflection li.button-color-4 a {
  40.         background-position: -270px -3px;
  41. }

  42. /* Button Reflection Color */

  43. #nav-reflection li.button-color-1 span {
  44.         background-position: 0 0;
  45. }

  46. #nav-reflection li.button-color-2 span {
  47.         background-position: -89px 0;
  48. }

  49. #nav-reflection li.button-color-3 span {
  50.         background-position: -178px 0;
  51. }

  52. #nav-reflection li.button-color-4 span {
  53.         background-position: -267px 0;
  54. }


  55. /* =Shadow Nav
  56. -------------------------------------------------------------------------- */

  57. #nav-shadow {
  58.         margin: 0 auto 50px auto;
  59.         padding: 50px 0 0 127px;
  60.         width: 497px;
  61.         min-height: 130px;
  62.         text-align: center;
  63.         list-style: none;
  64. }

  65. #nav-shadow li {
  66.         margin-right: 15px;
  67.         width: 81px;
  68.         height: 72px;
  69.         position: relative;
  70.         float: left;
  71. }

  72. #nav-shadow a, #nav-shadow a:visited, #nav-shadow a, #nav-shadow a:hover {
  73.         margin: 0 auto;
  74.         width: 59px;
  75.         height: 59px;
  76.         text-indent: -9999px;
  77.         overflow: hidden;
  78.         background: url(../images/icons.png) no-repeat;
  79.         display: block;
  80.         position: relative;
  81.         z-index: 2;
  82. }

  83. /* Button Colors */

  84. #nav-shadow li.button-color-1 a {
  85.         background-position: -3px -3px;
  86. }

  87. #nav-shadow li.button-color-2 a {
  88.         background-position: -92px -3px;
  89. }

  90. #nav-shadow li.button-color-3 a {
  91.         background-position: -181px -3px;
  92. }

  93. #nav-shadow li.button-color-4 a {
  94.         background-position: -270px -3px;
  95. }

  96. /* Button Shadow */

  97. #nav-shadow li img.shadow {
  98.         margin: 0 auto;
  99.         position: absolute;
  100.         bottom: 0;
  101.         left: 0;
  102.         z-index: 1;
  103. }
复制代码

[转] http://ijquery.360sites.cn/forum.php?mod=viewthread&tid=25

原创粉丝点击