Hallo,
brauche dringend eure Hilfe. Hatte hier einen javascript text gemacht, welcher sich einwandfrei in IE öffnen lässt, jedoch bei netscape herumspinnt. Kann mir bitte jemand helfen.
var cm=null;
document.onclick = new Function("show(null)")
function getPos(el,sProp) {
var iPos = 20
while (el!=null) {
iPos+=el["offset" + sProp]
el = el.offsetParent
}
return iPos
}
function show(el,m) {
if (m) {
m.style.display='';
m.style.pixelLeft = getPos(el,"right")
m.style.pixelTop = getPos(el,"Top") + el.offsetHeight
}
if ((m!=cm) && (cm)) cm.style.display='none'
cm=m
}
Und weiter im HTML- Text habe ich es ungefähr so:
<tr><td align="left"><a href="beispiel.html" id="d1" onMouseOver="Bildwechsel(2,Highlight1); show(this,ds1);" onMouseOut="javascript:Bildwechsel(2,Normal1)"><img alt="neues beispiel" border="0" height="110" width="366" src="../graphics/beispiel1.gif"></a></td></tr>
<tr><td><div id="ds1" CLASS="submenu" STYLE="display:none; text-align:justify; margin-left:10; margin-right:10;">
<p class="weiss">weiter mit beispieltext</p>
</div>
Danke für eure Hilfe.
PS:Gibt es einen Trick, dass iframes in Netscape funktionieren? Auch das bekomme ich nicht hin.
Thankz a lot, laz!