WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   parent.bottom.document Ist kein Objekt (http://www.wcm.at/forum/showthread.php?t=45513)

MZ 07.02.2002 10:08

parent.bottom.document Ist kein Objekt
 
Hi!

"parent.bottom.document" was ist das und wofür wird es verwendet.

Es ist so, daß ich mir gerade eine Hompage ansehe, die aber (beim IE) diesen Fehler produziert (2x) danach aber fehlerfrei läuft.

Die onload Anweisung sieht folgendermaßen aus:

onload="parent.bottom.MM_showHideLayers('search',' ','hide','news','','hide')"

Dann wird im Body noch folgendes kleines Skript ausgeführt:

Code:

<script LANGUAGE="JavaScript">
if (navigator.appName == 'Netscape') {
    parent.bottom.document.images['footerpic'].src='images/footerpic_nopic.gif';
        parent.bottom.document.images['footertag'].src='images/footertag_job.gif';
}
        else {
    parent.bottom.document.images['footerpic'].src='images/footerpic_nopic.gif';
    parent.bottom.document.images['footertag'].src='images/footertag_job.gif';
}
</SCRIPT>

Wer weiß Rat ?

_m3 07.02.2002 10:43

Das script wird hofentlich in einem Frame ausgefuehrt und Du hast einen zweiten Frame namens "bottom", sonst wird's nicht funktionieren.

Siehe http://developer.netscape.com/docs/m...ow.htm#1203076

HTH

MZ 07.02.2002 11:48

thx

Who-T 07.02.2002 15:12

weiter fehlerquelle könnt die ladezeit sein.

wenn nämlich das objekt, dass du ansprechen willst noch nicht geladen ist, wenn das script ausgeführt wird, liefert er ebenso diese fehlermeldung

is mir mal passiert.

MZ 07.02.2002 15:26

paßt schon erklärung hat gereicht :)


Alle Zeitangaben in WEZ +2. Es ist jetzt 05:22 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag