/** * Copyright Comprise B.V. 2006 */ document.write(''); var ttmousex = 0; var ttmousey = 0; var ttoptions = new Array(); var ttelx = 0; var ttely = 0; var ttactivelevel = 0; function showtooltip(text,options_string) { ttoptions['width'] = 100; // width of the tooltip ttoptions['height'] = ''; // height of the tooltip. If not used, then height is adjusted to required height ttoptions['bgcolor'] = ''; // background color ttoptions['textcolor'] = '#000000'; // text color ttoptions['textsize'] = 10; // text font size in pixels ttoptions['bordercolor'] = '#000000'; // border color ttoptions['opacity'] = 80; // 0=completely transparant, 100=not transparant at all ttoptions['dx'] = 10; // horizontal offset from mouse-pointer ttoptions['dy'] = 10; // vertical offset from mouse-pointer ttoptions['fixpos'] = 0; // use a fixed position? i.e. don't move with mouse, but fix to top right side of nearest element ttoptions['borderwidth'] = 1; // width of the border in pixels ttoptions['level'] = 0; // level can be used to specify if a tooltip should preceed another (conflicting) tooltip // e.g. if one uses a tooltip in a tag that is inside a tag with a tooltip options_string+= ''; option_parts = options_string.split(","); for(i=0;i' + '' + text + ''; with (style) { position = 'absolute'; width = ttoptions['width']; filter = 'alpha(opacity=' + ttoptions['opacity'] + ')'; visibility = 'visible'; } } movetooltip(); } function movetooltip() { with(tooltip.style) { if(visibility!='visible') { return; } if(ttoptions['fixpos']=='1') { left = ttelx; top = ttely; } else { temp_left = ttmousex + ttoptions['dx']; temp_right = temp_left + parseInt(width); out_bound = temp_right - document.body.clientWidth; if(out_bound>0) { temp_left -= out_bound; } if(temp_left<0) { temp_left = 0; } left = temp_left; top = ttmousey + ttoptions['dy']; } } } function hidetooltip() { ttactivelevel = 0; tooltip.style.visibility = 'hidden'; } function ttgetmousexy(e) { ttmousex = event.clientX + document.body.scrollLeft; ttmousey = event.clientY + document.body.scrollTop; movetooltip(); } document.onmousemove = ttgetmousexy;