warum geht das beim internet exploerer aber nicht beim netscape?:
gegeben ist ein frameset
<FRAMESET border="0" frameBorder="NO" frameSpacing="0" rows="1*,428,1*">
<FRAME frameBorder="NO" marginHeight="0" marginWidth="0" name="topFrame" scrolling="no" src="border/topframe.htm">
<FRAMESET border="0" cols="1*,655,1*" frameBorder="NO" frameSpacing="0">
<FRAME frameBorder="NO" marginHeight="0" marginWidth="0" name="leftFrame" scrolling="no" src="border/leftframe.htm">
<FRAME frameBorder="NO" marginHeight="0" marginWidth="0" name="main" scrolling="no" src="content/start.htm">
<FRAME frameBorder="NO" marginHeight="0" marginWidth="0" name="rightFrame" scrolling="no" src="border/rightframe.htm">
</FRAMESET>
<FRAME frameBorder="NO" marginHeight="0" marginWidth="0" name="bottomFrame" scrolling="no" src="border/bottomframe.htm">
</FRAMESET>
----------------------------
| topFrame |
----------------------------
| leftF | main | rightF |
----------------------------
| bottomFrame |
----------------------------
in dessen "main"-frame die funktion
function changeBorderBackground(url){
top.topFrame.changeBackground(url);
top.bottomFrame.changeBackground(url);
top.parent.leftFrame.changeBackground(url);
top.parent.rightFrame.changeBackground(url);}
per "onload" aufgerufen wird. fuer changeBackground-code su.
in allen frames sind die javascript-funktionen ordnungsgemaess
eingebunden.
----------------------------------
function changeBackground (url) {
if (document.layers) {
if (!backgroundLayer) {
backgroundLayer = new Layer(1);
}
background = url;
var l = backgroundLayer;
if (!url) {
var html = '<HTML>' + '<BODY BGCOLOR="' + document.bgColor + '"' + ' BACKGROUND="' + blankImage.src + '"></BODY></HTML>';
}
else
var html = '<HTML><BODY BACKGROUND="' + url + '"></BODY></HTML>';
l.zIndex = 0;
l.clip.width = window.innerWidth + 10;
l.clip.height = window.innerHeight + 10;
l.document.open();
l.document.write(html);
l.document.close();
l.visibility = 'show';
}
else if (document.body)
document.body.background = url;
}