[JavaScript] jQuery+css带阴影的撕页广告效果 →→→→→进入此内容的聊天室

来自 , 2019-10-02, 写在 JavaScript, 查看 136 次.
URL http://www.code666.cn/view/d09bf415
  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=gb2312" />
  5. <title>jQuery+css带阴影的撕页广告效果</title>
  6. <link href="css/styles.css" type=text/css rel=stylesheet>
  7. <SCRIPT src="js/jquery-latest.js" type=text/javascript></SCRIPT>
  8. <SCRIPT type=text/javascript>
  9. $(document).ready(function(){
  10.  
  11. //Page Flip on hover
  12.  
  13.         $("#pageflip").hover(function() {
  14.                 $("#pageflip img , .msg_block").stop()
  15.                         .animate({
  16.                                 width: '307px',
  17.                                 height: '319px'
  18.                         }, 500);
  19.                 } , function() {
  20.                 $("#pageflip img").stop()
  21.                         .animate({
  22.                                 width: '50px',
  23.                                 height: '52px'
  24.                         }, 220);
  25.                 $(".msg_block").stop()
  26.                         .animate({
  27.                                 width: '50px',
  28.                                 height: '50px'
  29.                         }, 200);
  30.         });
  31.  
  32.        
  33. });
  34. </SCRIPT>
  35. <STYLE type=text/css>
  36. IMG {
  37.         BEHAVIOR: url(iepngfix.htc)
  38. }
  39. #pageflip {
  40.         RIGHT: 0px;
  41.         FLOAT: right;
  42.         POSITION: relative;
  43.         TOP: 0px
  44. }
  45. #pageflip IMG {
  46.         Z-INDEX: 99;
  47.         RIGHT: 0px;
  48.         WIDTH: 50px;
  49.         POSITION: absolute;
  50.         TOP: 0px;
  51.         HEIGHT: 52px;
  52.         ms-interpolation-mode: bicubic
  53. }
  54. #pageflip .msg_block {
  55.         RIGHT: 0px;
  56.         BACKGROUND: url(images/subscribe.png) no-repeat right top;
  57.         OVERFLOW: hidden;
  58.         WIDTH: 50px;
  59.         POSITION: absolute;
  60.         TOP: 0px;
  61.         HEIGHT: 50px
  62. }
  63. </STYLE>
  64. </head>
  65. <body id=home>
  66. <div id=pageflip><A href="http://www.jb51.net" target="_blank"><IMG src="images/page_flip.png"></A>
  67.   <div class=msg_block></div>
  68. </div>
  69. <center>
  70.   <p>&nbsp;</p>
  71.   <p>&nbsp;</p>
  72.   <p>&nbsp;</p>
  73.   <p></p>
  74.   <p>
  75.   <p>这种效果常被应用在网页广告中,不影响网页内容,而且用户关注度高,网站上很多叫做撕页广告或者翻页广告,也可以叫书角广告。</p>
  76.   <p>使用方法:</p>
  77.   <p>打开index.html</p>
  78.   <p>1&nbsp; #pageflip img , .msg_block&nbsp; 广告展开后图片大小请修改后面的数值。</p>
  79.   <p>2&nbsp; #pageflip img 广告展开前图片大小,请修改后面的数值。</p>
  80.   <p>3 .msg_block 广告展示后图片的大小,请修改后面对应的数值。</p>
  81.   <p>&nbsp;</p>
  82.   <p>&nbsp;</p>
  83.   </p>
  84.   <p></p>
  85. </center>
  86. </body>
  87. </html>

回复 "jQuery+css带阴影的撕页广告效果"

这儿你可以回复上面这条便签

captcha