zoukankan      html  css  js  c++  java
  • 支付宝盖印效果demo

    一个支付宝盖印效果,点击demo [task]<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style type="text/css"> html{ height: 100% } body{ height: 100%; margin-top: 0; overflow: hidden; } #container{ position: relative; background-color: #87ceeb; height: 100%; } #stamper{ position: absolute; display: none; } </style> </head> <body> <div id="container"> <map id="planetmap" name="planetmap"> <area alt="Sun" href="javascript:stamp();" coords="840,120,1070,160" shape="rect"> </map> <img id="stamper" src="http://websqq.org/wp-content/uploads/2012/09/224516obgwvg4to1hdwzdo1.png" alt=" "> </div> <script src="http://code.jquery.com/jquery-1.8.0.min.js"></script> <script type="text/javascript"> //quake function quake(){ var container = $("#container"); var position = [-3, 3, - 2, 2, - 1, 1, - 1, 0.5, 0]; var i = 0; setContainer = setInterval(function() { if (i == position.length - 1) clearInterval(setContainer); container.css("left", position[i] + "px"); i++; }, 40); } //stamp stamp(); function stamp(){ $('#stamper').css({ display:'inline', 1950, height:930, top:-156, left:-498, opacity: 0.3 }); $('#stamper').animate({ 650, height:310, top:308, left:303, opacity:1 },quake) } </script> </body> </html> [/task]
  • 相关阅读:
    HTML+CSS基础
    学习C++——实践者的方法(转整)
    招聘要求看技术发展
    笔记本自建无线wifi
    sortAlgorithms
    耐得住寂寞,拥得了繁华
    C++函数重载实现原理浅析
    程序员指南
    tf.image.non_max_suppression()
    函数 不定长参数
  • 原文地址:https://www.cnblogs.com/asqq/p/3194940.html
Copyright © 2011-2022 走看看