This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
say.html
129 lines (108 loc) · 2.22 KB
/
say.html
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html>
<head>
<title> New Document </title>
<script src="./scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>
<body>
<style type="text/css">
body { background-color : #f0f0f0; color : white; }
.say {
position : relative;
left : 100px;
top : 20px;
text-align : center;
}
.say > * {
position : absolute;
}
.say .corner {
background-image : url("./images/say/corners.gif");
background-repeat : no-repeat;
height : 6px;
width : 6px;
}
.say .corner.one {
background-position : 0 0;
left : 0;
top : 0;
}
.say .corner.two {
background-position : -6px 0;
right : 0;
top : 0;
}
.say .corner.three {
background-position : 0 -6px;
bottom : 0;
left : 0;
}
.say .corner.four {
background-position : -6px -6px;
bottom : 0;
right : 0;
}
.say .horizontal {
background-image : url("./images/say/horizontal.gif");
background-repeat : repeat-x;
height : 6px;
left : 6px;
width : 100%;
}
.say .horizontal.bottom {
background-position : 0 -1px;
bottom : 0;
}
.say .horizontal.top {
background-position : 0 0;
top : 0;
}
.say .stem {
background-image : url("./images/say/right.gif");
bottom : -24px;
height : 25px;
left : 50%;
width : 20px;
}
.say .text {
background-color : #ffffff;
color : #000000;
display : inline-block;
left : 6px;
max-width : 160px;
top : 6px;
}
.say .vertical {
background-image : url("./images/say/vertical.gif");
background-repeat : repeat-y;
top : 6px;
width : 6px;
}
.say .vertical.left {
background-position : 0 0;
left : 0;
}
.say .vertical.right {
background-position : -1px 0;
right : 0;
}
</style>
<div class="say">
<div class="horizontal top"></div>
<span class="text">So I says to him, I says...</span>
<div class="vertical left"></div>
<div class="vertical right"></div>
<div class="horizontal bottom"></div>
<div class="corner one"></div>
<div class="corner two"></div>
<div class="corner three"></div>
<div class="corner four"></div>
<div class="stem"></div>
</div>
<script type="text/javascript">//<![CDATA[
$(".say").height($(".say .text").height() + 12).width($(".say .text").width() + 12);
$(".say .horizontal").width($(".say .text").width());
$(".say .vertical").height($(".say .text").height());
//]]></script>
</body>
</html>