Hi@all
also ich hab ein Problem. Ich möchte, dass sich wenn man über einen Link scrollt ein kleines Fenster öffnet (Tabelle), in der dann EInsender und Klicks stehen. Javascript:
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
NS6 = (document.getElementById) ? 1 : 0;
function show(menu){
if(IE4){
document.all(menu).style.visibility = "visible";
document.all(menu).style.top = window.event.clientY;
document.all(menu).style.left = window.event.clientX;
}
if(NS6){
document.layers[menu].visibility = "show";
document.layers[menu].top = screenY;
document.layers[menu].left = screenX;
}
}
function hide(menu){
If(IE4){
document.all(menu).style.visibility = "hidden";
document.all(menu).style.top = window.event.clientY;
document.all(menu).style.left = window.event.clientX;
}
}
HTML:
<a onmousemove="show('info_Age+of+Empires')" onmouseout="hide('info_Age+of+Empires')">Age of Empires</a>
<div style="position:absolute; left:0px; top:0px; visibility:hidden;" id="info_Age+of+Empires">
<table cellspacing="0" cellpadding="0" style="border-width:1; border-color:#4F4F4F; border-style:solid" width="100">
<tr>
<td id="urhere" bgcolor="#FFFFFF">Age of Empires</td>
</tr>
<tr>
<td id="urhere" bgcolor="#FFFFFF">Einsender:
Sascha Gehlich
</td>
</tr>
<tr>
<td id="urhere" bgcolor="#FFFFFF">Hits:
25</td>
</tr>
</table>
</div>
Unter IE funktioniert alles. Nur bei Netscape 6 zeigt er das kleine Fenster nicht an.
Mfg,
Sascha
also ich hab ein Problem. Ich möchte, dass sich wenn man über einen Link scrollt ein kleines Fenster öffnet (Tabelle), in der dann EInsender und Klicks stehen. Javascript:
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
NS6 = (document.getElementById) ? 1 : 0;
function show(menu){
if(IE4){
document.all(menu).style.visibility = "visible";
document.all(menu).style.top = window.event.clientY;
document.all(menu).style.left = window.event.clientX;
}
if(NS6){
document.layers[menu].visibility = "show";
document.layers[menu].top = screenY;
document.layers[menu].left = screenX;
}
}
function hide(menu){
If(IE4){
document.all(menu).style.visibility = "hidden";
document.all(menu).style.top = window.event.clientY;
document.all(menu).style.left = window.event.clientX;
}
}
HTML:
<a onmousemove="show('info_Age+of+Empires')" onmouseout="hide('info_Age+of+Empires')">Age of Empires</a>
<div style="position:absolute; left:0px; top:0px; visibility:hidden;" id="info_Age+of+Empires">
<table cellspacing="0" cellpadding="0" style="border-width:1; border-color:#4F4F4F; border-style:solid" width="100">
<tr>
<td id="urhere" bgcolor="#FFFFFF">Age of Empires</td>
</tr>
<tr>
<td id="urhere" bgcolor="#FFFFFF">Einsender:
Sascha Gehlich
</td>
</tr>
<tr>
<td id="urhere" bgcolor="#FFFFFF">Hits:
25</td>
</tr>
</table>
</div>
Unter IE funktioniert alles. Nur bei Netscape 6 zeigt er das kleine Fenster nicht an.
Mfg,
Sascha
Kommentar