爱心动画c语言,jquery+html5烂漫爱心表白动画代码分享
本文實例講述了jquery+html5爛漫愛心表白動畫代碼。分享給大家供大家參考。具體如下:
jquery+html5爛漫愛心表白動畫是一款jquery html5 canvas電子版的爛漫愛心表白動畫,效果相當不錯,非常有創意,很適合進行表白。
運行效果圖:----------------------查看效果 下載源碼-----------------------
小提示:瀏覽器中如果不能正常運行,可以嘗試切換瀏覽模式。
為大家分享的jquery+html5爛漫愛心表白動畫代碼如下
jquery+html5爛漫愛心表白動畫@font-face {
font-family: digit;
src: url('digital-7_mono.ttf') format("truetype");
}
/**
*2013—02-14,
*2013-02-28.
*/
Boy name = Mr LI
Girl name = Mrs ZHANG
// Fall in love river.
The boy love the girl;
// They love each other.
The girl loved the boy;
// AS time goes on.
The boy can not be separated the girl;
// At the same time.
The girl can not be separated the boy;
// Both wind and snow all over the sky.
// Whether on foot or 5 kilometers.
The boy very happy;
The girl is also very happy;
// Whether it is right now
// Still in the distant future.
The boy has but one dream;
// The boy wants the girl could well have been happy.
I want to say:
Baby, I love you forever;
親愛的,這是我們相愛在一起的時光。
愛你直到永永遠遠。
- 李先生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!
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();
}
以上就是為大家分享的jquery+html5爛漫愛心表白動畫代碼,希望大家可以喜歡。
總結
以上是生活随笔為你收集整理的爱心动画c语言,jquery+html5烂漫爱心表白动画代码分享的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 吾爱破解python百度文库下载源码_p
- 下一篇: Android:异步处理之Handler