<html>
<Kopf>
<script language="javascript">
var tipTimer;
FunktionlocateObject(n, d) { //v3.0
var p,i,x; if(!d) d=Dokument; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++) x= locateObject(n,d.layers[i].document); x zurückgeben;
}
Funktion hideTooltip(Objekt)
{
if (document.all)
{
locateObject(object).style.visibility="hidden"
locateObject(object).style.left = 1;
locateObject(object).style.top = 1;
gibt false zurück
}
sonst wenn (document.layers)
{
locateObject(object).visibility="hide"
locateObject(object).left = 1;
locateObject(object).top = 1;
gibt false zurück
}
anders
Rückkehr wahr
}
Funktion showTooltip(object,e, tipContent, backcolor, bordercolor, textcolor, displaytime)
{
window.clearTimeout(tipTimer)
if (document.all)
{
locateObject(object).style.top=document.body.scrollTop+event.clientY+20
locateObject(object).innerHTML='<table style="font-family: Verdana,Tahoma, Arial, Helvetica, serifenlos; Schriftgröße: 11px; Rahmen: '+bordercolor+'; Rahmenstil: solide; Rahmen- obere Breite: 1px; Randbreite unten: 1px; Hintergrundfarbe: '+Rückenfarbe+'" Breite = "10" Rand = "0" ="1" cellpadding="1"><tr><td nowrap><font style="Schriftfamilie: Verdana,Tahoma, Arial, Helvetica, serifenlos; Schriftgröße: 11px; Farbe: '+textcolor+' ">'+unescape(tipContent)+'</font></td></tr></table> '
if ((ex +locateObject(object).clientWidth) > (document.body.clientWidth + document.body.scrollLeft))
{
locateObject(object).style.left = (document.body.clientWidth + document.body.scrollLeft) -locateObject(object).clientWidth-10;
}
anders
{
locateObject(object).style.left=document.body.scrollLeft+event.clientX
}
locateObject(object).style.visibility="sichtbar"
tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
return true;
}
sonst wenn (document.layers)
{
locateObject(object).document.write('<table width="10" border="0" Cellspacing="1" cellpadding="1"><tr bgcolor="'+bordercolor+'"><td><table width ="10" border="0" cellpacing="0" cellpadding="2"><tr bgcolor="'+backcolor+'"><td nowrap><font style="Schriftfamilie: Verdana,Tahoma, Arial, Helvetica, serifenlos; Schriftgröße: 11px; Farbe: '+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table></td></ tr></table>')
locateObject(object).document.close()
locateObject(object).top=e.y+20
if ((ex +locateObject(object).clip.width) > (window.pageXOffset + window.innerWidth))
{
locateObject(object).left = window.innerWidth -locateObject(object).clip.width-10;
}
anders
{
locateObject(object).left=ex;
}
locateObject(object).visibility="show"
tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
return true;
}
anders
{
return true;
}
}
</script>
</head>
<Körper>
<div id="dHTMLToolTip" style="position: absolute; Sichtbarkeit: versteckt; Breite:10; Höhe: 10; Z-Index: 1000; links: 0; oben: 0"></div>
<span onMouseOver="showTooltip('dHTMLToolTip',event, '文字提示信息部分<br><img src=http://feeds2.feedburner.com/~fc/dlstu?bg=99CCFF&fg=2C689B&anim=0><br >大家好啊。。', '#fffff2','#000000','#000000','20000')" onMouseOut="hideTooltip('dHTMLToolTip')">KeKes Blog</span>
</body>
<html>