Quote
<html>
<head>
<title>Подсказка у которой можно задать цвета фона, текста, рамки.</title>
<style type="text/css">
#Statuszeile{ position: absolute; visibility: hide; width: 50%; top: 0px; left: 50px;}
P.Status{ color: darkblue; background-color: yellow; border: thin solid blue; padding: 4; font-size: 10pt; font-weight: bold;}
</style>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!--
function zeigen(){}
function verstecken(){}
function initialisieren(){}
// ... Ende Dummy ... -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- ... Quelle Beispiel ...
// Browserabhaengige Informationen
var nn = (navigator.appName == "Netscape") ? true : false
var loaded = false
// Funktionen
function zeigen(lay, text){
with(nn ? document.layers[lay] : document.all[lay]) {
if(nn) {
with(document) {
open("text/html")
write("<P CLASS=Status>" + text + "</P>")
close() }
visibility = "show"
} else {
innerHTML = "<P CLASS=Status ALIGN=CENTER>" + text + "</P>"
style.visibility = "visible"
}
}
}
function verstecken(lay){
if(nn)
document.layers[lay].visibility = "hide"
else
document.all[lay].style.visibility = "hidden"
}
function positionieren(){
if(!loaded)
return
var posY
var posX
if(nn) {
posX = document.Referenz.x
posY = document.Referenz.y + document.Referenz.height + 8
} else {
posX = Referenz.offsetLeft
posY = Referenz.offsetTop + Referenz.offsetHeight + 8
}
with(nn ? document.Statuszeile : Statuszeile)
{
if(nn) {
left = ((innerWidth / 2) > posX) ? posX : (innerWidth / 2)
top = posY
} else {
style.left = ((document.body.clientWidth / 2) > posX) ? posX : (document.body.clientWidth / 2)
style.top = posY }
}
}
// -->
</SCRIPT>
<A HREF="http://scriptis.ru" TARGET="dummy" onMouseOver="zeigen('Statuszeile', 'http://scriptis.ru')" onMouseOut="verstecken('Statuszeile')">Scriptis.ru</A></P>
<DIV ID="Statuszeile"></DIV>
</center>
</body>
</html>