You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just unzip the files into your file structure and link to tooltip.js and tooltip.css.
5
+
No JS setup is needed. Will find all elements with a "title" attribute by default. If you want to change this, simply change the last line of tooltip.js to find the appropriate elements.
Copy file name to clipboardExpand all lines: index.html
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -77,10 +77,10 @@
77
77
#main {
78
78
position: absolute;
79
79
width:650px;
80
-
height:400px;
80
+
height:420px;
81
81
top:50%;
82
82
left:50%;
83
-
margin:-220px0px0px-345px;
83
+
margin:-230px0px0px-345px;
84
84
background:#efefef;
85
85
padding:20px;
86
86
border-radius:6px;
@@ -162,16 +162,14 @@
162
162
display: block;
163
163
text-align: right;
164
164
text-decoration: none;
165
-
font-size:18px;
165
+
font-size:17px;
166
166
font-family: Tahoma;
167
-
margin-top:15px;
167
+
margin-top:35px;
168
168
}
169
169
170
-
#get.arrow {
170
+
#geta {
171
171
font-size:20px;
172
-
font-family:"Trebuchet MS";
173
-
font-weight: bold;
174
-
vertical-align:-1px;
172
+
margin-left:5px;
175
173
}
176
174
177
175
@@ -181,7 +179,7 @@
181
179
<divid="tl" data-test-title="Hi... I'm the top left title attribute!">Top Left</div>
182
180
<divid="tr" data-test-title="Hi... I'm the top right title attribute!">Top Right</div>
183
181
<divid="bl" data-test-title="Hi... I'm the bottom left title attribute!">Bottom Left</div>
184
-
<divid="br" data-test-title="Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!">Bottom Right</div>
182
+
<divid="br" data-test-title="Hi... I'm the bottom right title attribute!">Bottom Right</div>
185
183
<divid="main">
186
184
<h1>A minimal jQuery tooltip plugin</h1>
187
185
<divid="tc" data-test-title="Hi... I'm the top center title attribute!">Top Center</div>
@@ -243,8 +241,8 @@ <h4>HTML:</h4>
243
241
<h4>Javascript:</h4>
244
242
<p>None!</p>
245
243
<h4>Installation:</h4>
246
-
<p>Just unzip into your web directory and link to the tooltip.js file.</p>
247
-
<aid="get"href="https://nodeload.github.com/andrewplummer/tooltip/zipball/master">get the code <spanclass="arrow">></span></a>
244
+
<p>Just unzip into your web directory and link to the js/css files.</p>
245
+
<divid="get">get the code: <ahref="http://github.com/andrewplummer/tooltip">github</a><ahref="https://nodeload.github.com/andrewplummer/tooltip/zipball/master">zip</a>
0 commit comments