HTML5 jQuery制作温馨浪漫爱心表白动画特效

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               

原文:HTML5+jQuery制作温馨浪漫爱心表白动画特效

html5相关代码下载:http://www.zuidaima.com/share/search.htm?key=html5

jquery相关代码下载:http://www.zuidaima.com/share/search.htm?key=jquery

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>HTML5+jQuery制作温馨浪漫爱心表白动画特效(我们程序员也有浪漫的时候)-zuidaima.com</title><style type="text/css">@font-facefont-family: digit; src: url('digital-7_mono.ttf') format("truetype");}</style><link href="css/default.css" type="text/css" rel="stylesheet"><script type="text/javascript" src="js/jquery.js"></script><script type="text/javascript" src="js/garden.js"></script><script type="text/javascript" src="js/functions.js"></script></head><body><div id="mainDiv"> <div id="content">  <div id="code">   <span class="comments">/**</span><br />   <span class="space"/><span class="comments">*2014—01-01,</span><br />   <span class="space"/><span class="comments">*2014-01-04.</span><br />   <span class="space"/><span class="comments">*/</span><br />   Boy name = <span class="keyword">Mr</span> LI<br />   Girl name = <span class="keyword">Mrs</span> ZHANG<br />   <span class="comments">// Fall in love river. </span><br />   The boy love the girl;<br />   <span class="comments">// They love each other.</span><br />   The girl loved the boy;<br />   <span class="comments">// AS time goes on.</span><br />   The boy can not be separated the girl;<br />   <span class="comments">// At the same time.</span><br />   The girl can not be separated the boy;<br />   <span class="comments">// Both wind and snow all over the sky.</span><br />   <span class="comments">// Whether on foot or 5 kilometers.</span><br />   <span class="keyword">The boy</span> very <span class="keyword">happy</span>;<br />   <span class="keyword">The girl</span> is also very <span class="keyword">happy</span>;<br />   <span class="placeholder"/><span class="comments">// Whether it is right now</span><br />   <span class="placeholder"/><span class="comments">// Still in the distant future.</span><br />   <span class="placeholder"/>The boy has but one dream;<br />   <span class="comments">// The boy wants the girl could well have been happy.</span><br />   <br>   <br>   I want to say:<br />   Baby, I love you forever;<br />  </div>  <div id="loveHeart">   <canvas id="garden"></canvas>   <div id="words">    <div id="messages">     亲爱的,这是我们相爱在一起的时光。     <div id="elapseClock"></div>    </div>    <div id="loveu">     爱你直到永永远远。<br/>     <div class="signature">- 爱你的人</div>    </div>   </div>  </div> </div> <div id="copyright">  <a href="#">....</a><br />  <a href="#">....</a><br />   </div></div><script type="text/javascript">var offsetX = $("#loveHeart").width() / 2;var offsetY = $("#loveHeart").height() / 2 - 55;var together = new Date();together.setFullYear(2013, 2, 28);together.setHours(20);together.setMinutes(0);together.setSeconds(0);together.setMilliseconds(0);if (!document.createElement('canvas').getContext) { var msg = document.createElement("div"); msg.id = "errorMsg"; msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";  document.body.appendChild(msg); $("#code").css("display", "none") $("#copyright").css("position", "absolute"); $("#copyright").css("bottom", "10px"); document.execCommand("stop");} else { setTimeout(function () {  startHeartAnimation(); }, 5000); timeElapse(together); setInterval(function () {  timeElapse(together); }, 500); adjustCodePosition(); $("#code").typewriter();}</script></body></html>

代码下载地址:

http://www.zuidaima.com/share/1695882735602688.htm


演示站地址:

http://www.fuliqu.com/0214/?id=1392081413


           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow
这里写图片描述
  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值