Subversion Repositories DevTools

Rev

Rev 119 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 4230
Line 49... Line 49...
49
 { with (this) return MS?win.document.body.scrollLeft:win.pageXOffset }
49
 { with (this) return MS?win.document.body.scrollLeft:win.pageXOffset }
50
page.scrollY=function()
50
page.scrollY=function()
51
 { with (this) return MS?win.document.body.scrollTop:win.pageYOffset }
51
 { with (this) return MS?win.document.body.scrollTop:win.pageYOffset }
52
 
52
 
53
 
53
 
54
 
-
 
55
 
-
 
56
 
-
 
57
// *** TIP FUNCTIONS AND OBJECT ***
54
// *** TIP FUNCTIONS AND OBJECT ***
58
 
55
 
59
function tipTrack(evt) { with (this)
56
function tipTrack(evt) { with (this)
60
{
57
{
61
 // Figure out where the mouse is and call the position function.
58
 // Figure out where the mouse is and call the position function.
Line 224... Line 221...
224
 this.trackTimer = 0;
221
 this.trackTimer = 0;
225
 this.fadeTimer = 0;
222
 this.fadeTimer = 0;
226
 this.alpha = 0;
223
 this.alpha = 0;
227
 this.doFades = false;
224
 this.doFades = false;
228
 this.fadeSpeed = 20;
225
 this.fadeSpeed = 20;
-
 
226
 this.template = '<table bgcolor="#000000" cellpadding="1" cellspacing="0" width="%2%" border="0">' +
-
 
227
                 '<tr><td><table bgcolor="#FFFFCC" cellpadding="2" cellspacing="0" width="100%" border="0">' +
-
 
228
                 '<tr><td height="%3%" class="tipClass">%4%</td></tr></table></td></tr></table>';
229
}
229
}
-
 
230
var formTips = new TipObj('formTips');
230
 
231
 
-
 
232
// Functions to assist in creating tips
-
 
233
// stdTip: width, Title, Body
-
 
234
function stdTip( w,t,b) {
-
 
235
    return newTip(10,0,w,10,t,b);
-
 
236
}
-
 
237
// newTip( x,y,width,height, title, body)
-
 
238
function newTip(x,y,w,h,t,b) {
-
 
239
    var tip = new Array(x,y,w,h,10);
-
 
240
    tip[4] = '<img src="images/i_help.gif" width="12" height="12" hspace="2" align="absmiddle">' +
-
 
241
    t + '<hr size="1" noshade>' + b;
-
 
242
    return tip;
-
 
243
} 
231
 
244
 
232
// Capture the onmousemove event so tips can follow the mouse. Add in all your tip objects here
245
// Capture the onmousemove event so tips can follow the mouse. Add in all your tip objects here
233
// and also any functions from other scripts that need this event (e.g. my DHTML Scroller) too.
246
// and also any functions from other scripts that need this event (e.g. my DHTML Scroller) too.
234
if (isNS4) document.captureEvents(Event.MOUSEMOVE);
247
if (isNS4) document.captureEvents(Event.MOUSEMOVE);
235
document.onmousemove = function(evt)
248
document.onmousemove = function(evt)
Line 249... Line 262...
249
window.onresize = function()
262
window.onresize = function()
250
{
263
{
251
 ns4BugCheck();
264
 ns4BugCheck();
252
}
265
}
253
 
266
 
254
// End Hide -->
-
 
255
267
// End Hide -->
-
 
268