| Line 27... |
Line 27... |
| 27 |
|
27 |
|
| 28 |
function LyrFn(fn, fc)
|
28 |
function LyrFn(fn, fc)
|
| 29 |
{
|
29 |
{
|
| 30 |
LayerObj.prototype[fn] = new Function('var a=arguments,p=a[0]; with (this) { '+fc+' }');
|
30 |
LayerObj.prototype[fn] = new Function('var a=arguments,p=a[0]; with (this) { '+fc+' }');
|
| 31 |
}
|
31 |
}
|
| 32 |
LyrFn('x','if (!isNaN(a[0])) sty.left=p; else return parseInt(sty.left)');
|
32 |
LyrFn('x','if (!isNaN(a[0])) sty.left=p + "px"; else return parseInt(sty.left)');
|
| 33 |
LyrFn('y','if (!isNaN(a[0])) sty.top=p; else return parseInt(sty.top)');
|
33 |
LyrFn('y','if (!isNaN(a[0])) sty.top=p + "px"; else return parseInt(sty.top)');
|
| 34 |
LyrFn('vis','sty.visibility=p');
|
34 |
LyrFn('vis','sty.visibility=p');
|
| 35 |
LyrFn('write','if (isNS4) with (ref.document) {write(p);close()} else ref.innerHTML=p');
|
35 |
LyrFn('write','if (isNS4) with (ref.document) {write(p);close()} else ref.innerHTML=p');
|
| 36 |
LyrFn('alpha','var f=ref.filters; if (f) {' +
|
36 |
LyrFn('alpha','var f=ref.filters; if (f) {' +
|
| 37 |
'if (sty.filter.indexOf("alpha")==-1) sty.filter+="alpha()"; ' +
|
37 |
'if (sty.filter.indexOf("alpha")==-1) sty.filter+="alpha()"; ' +
|
| 38 |
'if (f.length&&f.alpha) f.alpha.opacity=p } else if (isDOM) sty.MozOpacity=(p/100)');
|
38 |
'if (f.length&&f.alpha) f.alpha.opacity=p } else if (isDOM) sty.MozOpacity=(p/100)');
|
| Line 235... |
Line 235... |
| 235 |
return newTip(10,0,w,10,t,b);
|
235 |
return newTip(10,0,w,10,t,b);
|
| 236 |
}
|
236 |
}
|
| 237 |
// newTip( x,y,width,height, title, body)
|
237 |
// newTip( x,y,width,height, title, body)
|
| 238 |
function newTip(x,y,w,h,t,b) {
|
238 |
function newTip(x,y,w,h,t,b) {
|
| 239 |
var tip = new Array(x,y,w,h,10);
|
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">' +
|
240 |
tip[4] = '<img src="images/i_help.gif" width="12px" height="12px" hspace="2" align="absmiddle">' +
|
| 241 |
t + '<hr size="1" noshade>' + b;
|
241 |
t + '<hr size="1" noshade>' + b;
|
| 242 |
return tip;
|
242 |
return tip;
|
| 243 |
}
|
243 |
}
|
| 244 |
|
244 |
|
| 245 |
// 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
|