Objects.html
14 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<html>
</head>
<title>euDock 2.0 examples</title>
<link type="image/x-icon" href="iconsEuDock/euDock.ico" rel="shortcut icon">
<script language="JavaScript1.3" src="js/euDock.2.0.js"></script>
<script language="JavaScript1.3" src="js/euDock.Image.js"></script>
<script language="JavaScript1.3" src="js/euDock.Ghost.js"></script>
<script language="JavaScript1.3" src="js/euDock.Blank.js"></script>
<script language="JavaScript1.3" src="js/euDock.Label.js"></script>
</head>
<body>
<center>
<table cellpadding=3 style='border:1px solid #8899bb;'>
<tr><td style="border:1px solid #8899bb;">
<center><b>euDock 2.0 Objects Tutorial</b></center>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<center><b>euImage Object:</b></center>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<br>Add inside your <HEAD></HEAD> HTML tag:
<pre>
<HEAD>
...
<script language="JavaScript1.3" src="js/euDock.Image.js"></script>
...
</HEAD>
</pre>
Object Definition:
<pre>
/*
* euImage is the euImage Object inside the "euDock.Image.js" script
* the common constructor is:
*
* {euImage:{image : [-(image name)-],
* PngObjIE : [-(NoFadingIE_PNG object)-]}}
*
* image : image name
* PngObjIE : (unnecessary)
* : This parameter is useful if you use a PNG image in Internet
* : Explorer and you are sure that this image will not fade to another.
* : For example the PNG images applied to the dock bar
* : or the PNG images used in icons with only 1 image
* : or the first PNG image in the icons with (fadingType:euFIXED)
* : parameter set.
* : It may be complex but the performances are improved
* : with PNGs on Internet Explorer
* :
* : euImageNoFadingIE_PNG : is the object used in this case
* :
* : (unnecessary) with gif,jpg,(PNGs without alpha) images
* : or with fading images
*/<b>
{euImage : {image : "iconsEuDock/euDock-red.png",
PngObjIE : euImageNoFadingIE_PNG}}</b>
</pre>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<center><b>euBlank Object:</b></center>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<br>Add inside your <HEAD></HEAD> HTML tag:
<pre>
<HEAD>
...
<script language="JavaScript1.3" src="js/euDock.Blank.js"></script>
...
</HEAD>
</pre>
Object Definition:
<pre>
/*
* euBlank is the euBlank Object inside the "euDock.Blank.js" script
* the common constructor is:
*
* {euBlank:{width : [-width-],
* height : [-height-]}}
*
* width,height : obvious
*
* instead to use blank gif images, you can use this
* object to improve performances
* (the browser doesn't consider his hidden dimension)
*/<b>
{euBlank:{width:100,height:100}</b>
</pre>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<center><b>euGhost Object:</b></center>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<br>Add inside your <HEAD></HEAD> HTML tag:
<pre>
<HEAD>
...
<script language="JavaScript1.3" src="js/euDock.Image.js"></script>
<script language="JavaScript1.3" src="js/euDock.Ghost.js"></script>
...
</HEAD>
</pre>
euGhost need euImage object (inside "euDock.Image.js" script) render engine<br><br>
Object Definition:
<pre>
/*
* euGhost is the euGhost Object inside the "euDock.Ghost.js" script
* the common constructor is:
*
* {euGhost:{
* ghost : [-Ghost Image Name-],
* eyeball : [-Eyeball Image Name-],
* eyespot_1 : [-Left Spot Image Name-],
* eyespot_2 : [-Right Spot Image Name-],
* shadow : [-Shadow Image Name-],
* shadowPos : {x:[-X Pos-],y:[-Y Pos-]},
* spotCoord1: {x:[-X Pos-],y:[-Y Pos-],rad:[-Radius-]},
* spotCoord2: {x:[-X Pos-],y:[-Y Pos-],rad:[-Radius-]},
* PngObjIE : [-(NoFadingIE_PNG object)-]
* }}
*
* ghost , eyeball , eyespot_1 , eyespot_2 , shadow
* : these are the images of the ghost object
*
* shadowPos : x and y relative position of the shadow (eyeShadow)
* (shadow and shadowPos are not necessary)
* (if euGhost doesn't fading, the
* eye shadow can be unuseful)
*
* spotCoord1 : x and y relative position of the center of
* spotCoord2 : left and right eyeball
* : rad is the radius in pixel from the center
*
* PngObjIE : euGhost use euImage render Engine and can support
* : this parameter descripted before.
* : (in this page there is an euGhost [not fading] object in the bar)
*
* euGhost doesn't completely disappear
* eyeball, shadow and eyespot(1-2) are always visible
* these are euImage objects with:
* (PngObjIE : euImageNoFadingIE_PNG)
* parameter set.
*/<b>
{euGhost:{
ghost : "ghostImages/ghost_red-1.png",
eyeball : "ghostImages/eyes.png",
eyespot_1 : "ghostImages/eye-spot-1.png",
eyespot_2 : "ghostImages/eye-spot-2.png",
shadow : "ghostImages/eyes-shadow.png",
shadowPos : {x:5,y:10},
spotCoord1: {x:36,y:36,rad:13},
spotCoord2: {x:72,y:38,rad:7},
PngObjIE : euImageNoFadingIE_PNG
}}</b>
</pre>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<center><b>euLabel Object:</b></center>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<br>Add inside your <HEAD></HEAD> HTML tag:
<pre>
<HEAD>
...
<script language="JavaScript1.3" src="js/euDock.Label.js"></script>
...
</HEAD>
</pre>
Object Definition:
<pre>
/*
* euLabel is the euLabel Object inside the "euDock.Label.js" script
* the common constructor is:
*
* {euLabel:{
* object :[-The object you want inside the euLabel-],
* txt :[-Label text-];
* style :[-CSS Style of the label-],
* anchor :[-Hooking Position-],
* offsetX:[-X Offset-],
* offsetY:[-Y Offset-]}}
*
* object : can be every euDock object with his parameters (see the examples)
* txt : The text you want inside the label
* style : (unnecessary) CSS style of the label
* : (the text is inside a SPAN element)
* anchor : (euUP,euDOWN,euLEFT,euRIGHT,euCENTER)
* : Align to the middle (TOP,DOWN,LEFT,RIGHT,CENTER) of the Icon
* offsetX: X and Y offset from
* offsetY: the previous anchor
*/<b>
{euLabel:{
object : {euGhost:{
ghost : "ghostImages/ghost_purple-1.png",
eyeball : "ghostImages/eyes.png",
eyespot_1 : "ghostImages/eye-spot-1.png",
eyespot_2 : "ghostImages/eye-spot-2.png",
shadow : "ghostImages/eyes-shadow.png",
shadowPos : {x:5,y:10},
spotCoord1: {x:36,y:36,rad:13},
spotCoord2: {x:72,y:38,rad:7}
}},
txt : "HI I'M a <b>GHOST</b>",
style : "border : 1px solid #9Fb6b6;",
anchor : euDOWN,
offsetX : 0,
offsetY : -120}}</b>
Another example<b>
{euLabel:{
object : {euImage:{image:"iconsEuDock/euDock-purple.png"}},
txt : "HI I'M a <b>LABEL</b><br>I'm the other line";
style : "text-align : center; border : 5px dashed #9Fb6b6;",
anchor : euDOWN,
offsetX : 0,
offsetY : -120}}</b>
</pre>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<center>
<b>euDock 2.0 can be complex to use</b><br>
<b>(For Developers) I suggest to see all the tutorial sources</b><br>
</center>
</td></tr>
<tr><td style="border:1px solid #8899bb;">
<center><b>REMEMBER</b><br>Don't forget to put in your page:
<table cellpadding=5>
<tr><td style='border:1px solid #8899bb;'>
<pre><b><a href='http://eudock.jules.it'>
<img src='http://eudock.jules.it/littlEuDock.jpg' border=0></a></b></pre>
</td><td>
<a href='http://eudock.jules.it'><img src='littlEuDock.jpg' border=0>
</td></tr>
</table>
!!!If you don't like (of course) a personal Macumba!!!
</center>
</td></tr>
</table>
<a href='index.html'><b>RETURN TO INDEX</b></a>
</center>
<a href='http://eudock.jules.it'>
<img src='littlEuDock.jpg' border=0></a>
</body>
</html>
<script>
euEnv.imageBasePath="js/";
var dock = new euDock();
dock.setScreenAlign(euDOWN,0);
dock.setAnimation(euMOUSE,0.3);
dock.animFading = euRELATIVE;
dock.setBar({
left :{euGhost:{ ghost : "barImages/bar-dockBg-l.png",
eyeball : "barImages/bar-eyes.png",
eyespot_1 : "barImages/bar-eye-spot.png",
eyespot_2 : "barImages/bar-eye-spot.png",
spotCoord1: {x:17,y:16,rad:7},
spotCoord2: {x:33,y:17,rad:5},
PngObjIE : euImageNoFadingIE_PNG
}},
horizontal:{euImage:{image:"barImages/dockBg-c-o.gif"}},
right :{euImage:{image:"barImages/dockBg-r.png"}}
});
dock.setIconsOffset(2);
dock.addIcon(new Array({euImage : {image:"iconsEuDock/euDock-red.png",
PngObjIE : euImageNoFadingIE_PNG}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euBlank:{width:100,height:100}},
{euImage:{image:"iconsEuDock/euDock-red.png"}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euBlank:{width:100,height:100}},
{euGhost:{
ghost : "ghostImages/ghost_red-1.png",
eyeball : "ghostImages/eyes.png",
eyespot_1 : "ghostImages/eye-spot-1.png",
eyespot_2 : "ghostImages/eye-spot-2.png",
shadow : "ghostImages/eyes-shadow.png",
shadowPos : {x:5,y:10},
spotCoord1: {x:36,y:36,rad:13},
spotCoord2: {x:72,y:38,rad:7}
}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euLabel:{
object:{euImage:{image:"iconsEuDock/euDock-purple.png"}},
txt :" HI... I'M a <b>LABEL</b> ",
style :"background:#eeefff;border-style:solid;border-color:#9Fb6b6;border-width:3px;",
anchor:euDOWN,
offsetX:0,
offsetY:-120}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euImage : {image:"iconsEuDock/euDock-red.png",
PngObjIE : euImageNoFadingIE_PNG}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euImage:{image:"iconsEuDock/euDock-red.png"}},
{euLabel:{
object:{euGhost:{
ghost : "ghostImages/ghost_purple-1.png",
eyeball : "ghostImages/eyes.png",
eyespot_1 : "ghostImages/eye-spot-1.png",
eyespot_2 : "ghostImages/eye-spot-2.png",
shadow : "ghostImages/eyes-shadow.png",
shadowPos : {x:5,y:10},
spotCoord1: {x:36,y:36,rad:13},
spotCoord2: {x:72,y:38,rad:7}
}},
txt :" HI... I'M a <b>GHOST</b> ",
style :"background:#eeefff;border-style:solid;border-color:#9Fb6b6;border-width:3px;",
anchor:euDOWN,
offsetX:0,
offsetY:-120}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euImage : {image:"iconsEuDock/euDock-red.png",
PngObjIE : euImageNoFadingIE_PNG}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euImage:{image:"iconsEuDock/euDock-gold.png"}},
{euLabel:{
object:{euBlank:{width:100,height:100}},
txt :" HI... I'M a <b>LABEL</b> <br> WITH a <b>blankObject</b> inside ",
style :"text-align:center;background:#ffff88;border:5px dashed #9Fb6b6;",
anchor:euDOWN,
offsetX:0,
offsetY:-120}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euImage : {image:"iconsEuDock/euDock-red.png",
PngObjIE : euImageNoFadingIE_PNG}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euImage : {image:"iconsEuDock/euDock-red.png",
PngObjIE : euImageNoFadingIE_PNG}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euImage : {image:"iconsEuDock/euDock-red.png",
PngObjIE : euImageNoFadingIE_PNG}}),
{link:"http://eudock.jules.it"});
dock.addIcon(new Array({euImage : {image:"iconsEuDock/euDock-red.png",
PngObjIE : euImageNoFadingIE_PNG}}),
{link:"http://eudock.jules.it"});
</script>