f6301578f1b61e5e7618ed59bcdc02ab2b277ce8.svn-base 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title></title>
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. <style>
  15. .boxgrid{
  16. width: 200px;
  17. height: 122px;
  18. margin:10px;
  19. float:left;
  20. background:#161613;
  21. border: solid 2px #8399AF;
  22. overflow: hidden;
  23. position: relative;
  24. }
  25. </style>
  26. <script>
  27. function initComplete(){
  28. //初始时无标题
  29. $('.boxgrid.captionfull').each(function(){
  30. $(".cover", this).css({
  31. top:"160px"
  32. })
  33. })
  34. $('.boxgrid.captionfull').hover(function(){
  35. $(".cover", this).stop().animate({top:'60px'},{queue:false,duration:160});
  36. }, function() {
  37. $(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
  38. });
  39. //初始时有标题
  40. $('.boxgrid.caption').each(function(){
  41. $(".cover", this).css({
  42. top:"95px"
  43. })
  44. })
  45. $('.boxgrid.caption').hover(function(){
  46. $(".cover", this).stop().animate({top:'60px'},{queue:false,duration:160});
  47. }, function() {
  48. $(".cover", this).stop().animate({top:'95px'},{queue:false,duration:160});
  49. });
  50. //图片向右移动
  51. $('.boxgrid.slideright').hover(function(){
  52. $(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
  53. }, function() {
  54. $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
  55. });
  56. //图片斜向下移动
  57. $('.boxgrid.thecombo').hover(function(){
  58. $(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
  59. }, function() {
  60. $(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
  61. });
  62. //图片向上移动
  63. $('.boxgrid.slidedown').hover(function(){
  64. $(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
  65. }, function() {
  66. $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
  67. });
  68. }
  69. </script>
  70. </head>
  71. <body>
  72. <div class="box1" panelWidth="800">
  73. <fieldset>
  74. <legend>鼠标移入出现信息</legend>
  75. <div class="boxgrid captionfull">
  76. <img src="../../libs/images/demo/demo1.jpg"/>
  77. <div class="cover boxcaption">
  78. <div class="boxgrid_title">图片标题</div>
  79. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  80. </div>
  81. </div>
  82. <div class="boxgrid captionfull">
  83. <img src="../../libs/images/demo/demo1.jpg"/>
  84. <div class="cover boxcaption">
  85. <div class="boxgrid_title">图片标题</div>
  86. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  87. </div>
  88. </div>
  89. <div class="boxgrid captionfull">
  90. <img src="../../libs/images/demo/demo1.jpg"/>
  91. <div class="cover boxcaption">
  92. <div class="boxgrid_title">图片标题</div>
  93. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  94. </div>
  95. </div>
  96. <div class="clear"></div>
  97. </fieldset>
  98. <div class="height_15"></div>
  99. <fieldset>
  100. <legend>初始时有标题</legend>
  101. <div class="boxgrid caption">
  102. <img src="../../libs/images/demo/demo1.jpg"/>
  103. <div class="cover boxcaption">
  104. <div class="boxgrid_title">图片标题</div>
  105. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  106. </div>
  107. </div>
  108. <div class="boxgrid caption">
  109. <img src="../../libs/images/demo/demo1.jpg"/>
  110. <div class="cover boxcaption">
  111. <div class="boxgrid_title">图片标题</div>
  112. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  113. </div>
  114. </div>
  115. <div class="boxgrid caption">
  116. <img src="../../libs/images/demo/demo1.jpg"/>
  117. <div class="cover boxcaption">
  118. <div class="boxgrid_title">图片标题</div>
  119. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  120. </div>
  121. </div>
  122. <div class="clear"></div>
  123. </fieldset>
  124. <div class="height_15"></div>
  125. <fieldset>
  126. <legend>图片向右移动</legend>
  127. <div class="boxgrid slideright">
  128. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  129. <div class="boxgrid_title">图片标题</div>
  130. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  131. </div>
  132. <div class="boxgrid slideright">
  133. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  134. <div class="boxgrid_title">图片标题</div>
  135. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  136. </div>
  137. <div class="boxgrid slideright">
  138. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  139. <div class="boxgrid_title">图片标题</div>
  140. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  141. </div>
  142. <div class="clear"></div>
  143. </fieldset>
  144. <div class="height_15"></div>
  145. <fieldset>
  146. <legend>图片斜向下移动</legend>
  147. <div class="boxgrid thecombo">
  148. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  149. <div class="boxgrid_title">图片标题</div>
  150. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  151. </div>
  152. <div class="boxgrid thecombo">
  153. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  154. <div class="boxgrid_title">图片标题</div>
  155. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  156. </div>
  157. <div class="boxgrid thecombo">
  158. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  159. <div class="boxgrid_title">图片标题</div>
  160. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  161. </div>
  162. <div class="clear"></div>
  163. </fieldset>
  164. <div class="height_15"></div>
  165. <fieldset>
  166. <legend>图片向上移动</legend>
  167. <div class="boxgrid slidedown">
  168. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  169. <div class="boxgrid_title">图片标题</div>
  170. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  171. </div>
  172. <div class="boxgrid slidedown">
  173. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  174. <div class="boxgrid_title">图片标题</div>
  175. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  176. </div>
  177. <div class="boxgrid slidedown">
  178. <img class="cover" src="../../libs/images/demo/demo1.jpg"/>
  179. <div class="boxgrid_title">图片标题</div>
  180. <div class="boxgrid_con">这里是图片文字说明部分<br />这里是图片文字说明部分</div>
  181. </div>
  182. <div class="clear"></div>
  183. </fieldset>
  184. <div class="height_15"></div>
  185. </div>
  186. </body>
  187. </html>