运行代码 缩小
明天...
HTML代码
复制 格式化 注释 注释 清空
放大
x
 
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>我爱你
6
        </title>
7
        <style>
8
            body{
9
                margin:0;
10
                padding:0;
11
                background:#ffe;
12
                font-size:12px;
13
                overflow:auto}
14
            #mainDiv{
15
                width:100%;
CSS代码
复制 格式化 注释 注释 颜色 清空
放大
CSS代码...
xxxxxxxxxx
1
 
1
JS代码
复制 格式化 注释 注释 清空
放大
xxxxxxxxxx
32
 
1
var offsetX = $("#loveHeart").width() / 2;
2
var offsetY = $("#loveHeart").height() / 2 - 55;
3
var together = new Date();
4
/*together.setFullYear(2017, 1, 23);
5
together.setHours(12);
6
together.setMinutes(45);
7
together.setSeconds(0);
8
together.setMilliseconds(0);*/
9
if (!document.createElement('canvas').getContext) {
10
  var msg = document.createElement("div");
11
  msg.id = "errorMsg";
12
  msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";
13
  document.body.appendChild(msg);
14
  $("#code").css("display", "none")
15
  $("#copyright").css("position", "absolute");
16
  $("#copyright").css("bottom", "10px");
17
  document.execCommand("stop");
18
}
19
else {
20
  setTimeout(function () {
21
    startHeartAnimation();
22
  }
23
             , 160000);
24
  timeElapse(together);
25
  setInterval(function () {
26
    timeElapse(together);
27
  }
28
              , 500);
29
  adjustCodePosition();
30
  $("#code").typewriter();
31
}
32
名称
男孩的心声
分类
综合代码
描述
123
收藏