index3.html
3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>HTML5 Ad</title>
<script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script>
<script type="text/javascript">
window.onload = function() {
eyeBuild.initialize();
var playButton = document.getElementById("play-pause");
playButton.addEventListener('click', function(e){
eyeBuild.doOpen();
}, false);
};
</script>
<style>
body{
margin: 0;
padding: 0;
width: 300px;
height: 600px;
line-height: 1.2;
font-size: 27px;
letter-spacing: .4;
color: #CD040B;
/* font-family: "Neue Haas Grotesk", Arial, sans-serif; */
/*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/
font-style: normal;
}
a{
text-decoration: none;
color: inherit;
}
#border{
position: relative;
width: 300px;
height: 600px;
border: 1px solid #55565A;
background-color: #282828;
overflow: hidden;
cursor: pointer;
box-sizing: border-box;
background: url(assets/back3.jpg);
background-size:300px 600px;
/* background: url(guide.png); */
}
#txt {
position: absolute;
width: 156px;
height: 131px;
left: 16px;
bottom:451px;
z-index: 10;
opacity: 0;
transform-origin: bottom;
}
#click-tag{
position: absolute;
width: 100%;
height: 100%;
display: block;
}
#play-pause {
position: absolute;
top: 320px;
left: 15px;
height: 153px;
width: 271px;
cursor: pointer;
border: none;
background: none;
}
</style>
</head>
<body>
<div id="border">
<a id="click-tag" href="javascript:eyeBuild.doClick(0)">
<img id="txt" src="assets/slice.png">
</a>
<button type="button" id="play-pause" class="pause"></button>
</div>
<!-- GREENSOCK-->
<script src="assets/TweenMax.min.js"></script>
<script>
function stage1(){
var tl = new TimelineMax({repeat:0, repeatDelay:2});
tl.fromTo("#txt", .3, {opacity:0, scaleY:.01, ease:Power1.easeIn, delay:.5 }, {opacity:1, scaleY:1, ease:Power1.easeIn, delay:.5 });
console.log( "time: " + tl.totalDuration() );
}
//---------------------
stage1();
</script>
</body>
</html>