1
/*****************************************************************
2
Tooltips copyright by l.toetsch@magnet.at, http://www.vvg.or.at
3
if you use this script keep this note
4
*****************************************************************/
6
var a,tipEl,tim1=null,left,top;
7
function moveTo(xPos,yPos) {
8
this.style.pixelLeft=xPos;
9
this.style.pixelTop=yPos;
12
if (NS4) {this.visibility = (on) ? "show" : "hide"}
13
else {this.style.visibility = (on) ? "visible" : "hidden"}
15
function getDocClientWidth() {
17
return window.innerWidth;
19
return document.body.clientWidth;
23
return this.document.height;
25
return this.offsetHeight;
29
return this.document.width;
31
return this.offsetWidth;
34
for (i=0;i<document.links.length;i++) {
37
document.links[i].onmouseover=show;
38
document.links[i].onmouseout=hide;
39
document.links[i].num=i;
41
tipEl=IE4?eval(document.all['tip']):eval(document.layers.tip);
42
if(IE4) tipEl.moveTo=moveTo;
44
tipEl.getHeight=gHeight;
45
tipEl.getWidth=gWidth;
49
if (tim1) clearTimeout(tim1);
50
left = ((NS4) ? e.pageX : event.clientX+document.body.scrollLeft)+3;
51
top = ((NS4) ? e.pageY : event.clientY+document.body.scrollTop)-3;
52
tim1 = setTimeout("disp()", 500);
57
if (tim1) clearTimeout(tim1);
59
function max(a,b){return a>b?a:b;}
60
function min(a,b){return a<b?a:b;}
63
//a+' '+document.links[a].href;
64
for(i=0;i<refs.length;i++)
65
if(document.links[a].href.indexOf(refs[i])>0)
71
{ return '<TD><IMG SRC="http://lux.leo.home/telrate/r'+pic+'.gif" WIDTH="'+w+'" HEIGHT="'+h+'"></TD>';}
76
txt+='<br><p>Klicken Sie für weitere Information!';
79
setTimeout("show1(1)",1);
85
tab='<TABLE CELLPADDING="0" CELLSPACING="0" border="0"><TR>';
89
tab+=td("ob",w,e)+td("reob",e,e)+'</TR>';
90
tab+='<TR>'+td("li",e,h);
92
tab+='<TD width="'+w+'" BGCOLOR="#f5f5dc" STYLE="'+sty+'">'+txt+'</TD>';
94
x=getDocClientWidth()-2*e-w-10;y=top-h-2*e;
95
tab+=td("re",e,h)+'</TR><TR>'+td("liun",e,e);
96
tab+=td("un",w,e)+td("reun",e,e);
101
else with(tipEl.document) { open();write(tab);close();}
103
o=IE4?document.body.scrollTop:window.pageYOffset;
104
tipEl.moveTo(min(x,left),max(10+o,y));
109
origWidth = innerWidth;
110
origHeight = innerHeight;
113
if (innerWidth != origWidth || innerHeight != origHeight)
117
if (NS4) window.onresize = reDo;