Lasse thnaks for your reply.
My provider is zonnet.nl but it isn't a free one.
Indeed I am using a redirection service (zoneedit.com).
As far as I know, they don't use one big frame with my page in it.
It's simply a name record in DNS.
By the way "erik-jan.net" doesn't exist anymore. is an old redirection
which I forgot to delete.
My problem is with another domain name (
www.laurenskamerkoor.net)
It's temporary offline now.
I have made my menu with AllWebMenus Pro
When I look in the source I cannot find the line window.top.mainframe
so I don't know where to change it in parent.frames['mainframe']"
This is the source code:
//----------DHTML Menu Created using AllWebMenus PRO ver
3.1-#500---------------
var awmMenuName='lkkmenu';
var awmLibraryPath='/awmData-lkkmenu';
var awmImagesPath='/awmData-lkkmenu';
var awmSupported=(navigator.appName +
navigator.appVersion.substring(0,1)=="Netscape5" || document.all ||
document.layers || navigator.userAgent.indexOf('Opera')>-1)?1:0;
if (awmAltUrl!='' && !awmSupported)
window.location.replace(awmAltUrl);
if (awmSupported){
var awmMenuPath;
if (document.all) mpi=document.all['awmMenuPathImg-lkkmenu'].src;
if (document.layers)
mpi=document.images['awmMenuPathImg-lkkmenu'].src;
if (navigator.appName +
navigator.appVersion.substring(0,1)=="Netscape5" ||
navigator.userAgent.indexOf('Opera')>-1)
mpi=document.getElementById('awmMenuPathImg-lkkmenu').src;
awmMenuPath=mpi.substring(0,mpi.length-16);
var nua=navigator.userAgent,scriptNo=(nua.indexOf('Gec ko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1)));
document.write("<SCRIPT
SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>");
var n=null;
awmzindex=1000;
}
var awmSubmenusFrame='mainframe';
var awmSubmenusFrameOffset;
var awmOptimize=0;
function awmBuildMenu(){
if (awmSupported){
awmImagesColl=['lkk-sub.gif',10,10,'lkk-sub2.gif',10,10];
awmCreateCSS(1,2,1,'#B6DFF5','#000F82',n,'bold 14px
Arial',n,'none',1,n,2,0)
awmCreateCSS(0,1,0,n,'#000F82',n,n,n,'outset',2,'# C0C0C0',0,0);
awmCreateCSS(1,2,1,'#000F82','#B6DFF5',n,'bold 14px
Arial',n,'none',1,n,2,1)
awmCreateCSS(0,2,1,'#B6DFF5','#000F82',n,'bold 14px
Arial',n,'none',1,n,2,1)
awmCreateCSS(0,2,1,'#FFFFFF','#7A96DF',n,'bold 14px
Arial',n,'none',1,n,2,1)
awmCreateCSS(1,2,1,'#000F82','#B6DFF5',n,'bold 14px
Arial',n,'none',1,n,2,0)
awmCreateCSS(0,2,1,'#B6DFF5','#000F82',n,'bold 14px
Arial',n,'none',1,n,2,0)
awmCreateCSS(0,2,1,'#FFFFFF','#7A96DF',n,'bold 14px
Arial',n,'none',1,n,2,0)
var s0=awmCreateMenu(0,0,0,6,1,0,0,5,0,1,23,0,0,1,0,"& nbsp 
Laurens Kamerkoor  ","",n,1,1,1,0,n,n);
it=s0.addItem(2,3,4,"Inleiding",n,n,"","",n,n,n,"i nleiding.htm","mainframe");
it=s0.addItem(2,3,4,"Koorleden",n,n,"","",n,n,n,"k oorleden.htm","mainframe");
it=s0.addItem(2,3,4,"Repertoire",n,n,"","",n,n,n," repertoire.htm","mainframe");
it=s0.addItemWithImages(5,6,7,"Nieuws",n,n,"",n,n, n,0,0,0,0,1,n,"",n,n,n,n,n);
it=s0.addItem(2,3,4,"Links",n,n,"","",n,n,n,"links .htm","mainframe");
it=s0.addItem(2,3,4,"Gastenboek",n,n,"","",n,n,n," gastenboek.htm","mainframe");
it=s0.addItem(2,3,4,"Contact",n,n,"","",n,n,n,"con tact.htm","mainframe");
it=s0.addItem(2,3,4,"Inloggen",n,n,"","",n,n,n,"in loggen.htm","mainframe");
s0.pm.buildMenu();
}}
Lasse Reichstein Nielsen <lr*@hotpop.com> wrote in message news:<k7**********@hotpop.com>...
eb*****@erik-jan.net (Erik-Jan Bakker) writes:
When I upload the webpage to my host provider and approach the
index.htm the page is loaded correctly and the javascript menu
buttons appears correctly.
But when I click on one of the menu button I got the message Error in Page:
"window.top.mainframe is null or not an object"
Which provider do you use? Do you have a redirection service?
Some free web providers put frames around your pages, and some
redirectors are simply one big frame with your page inside it.
In both cases, "top" will not refer to your frameset, but to theirs.
Directing my browser to "erik-jan.net" shows a single redirection
frame pointing to "internl.net/users/ejbakker" (which doesn't exist).
Try changing the offending line from "window.top.mainframe" to
"parent.frames['mainframe']" (I prefer to use the explicit name
for the frames collection, but "parent.mainframe" probably works
too in most browsers).
It looks like that the frameset definition is loaded after the javascript.
Impossible, if the frame running the javascript is in a frame inside
the frameset.
/L