I am trying to use one of ur menus. I customized them and everything works... except online. When I surf to my webpage I get the following error: "StartTop is not defined" and I cant see the menu (while I can see it off-line). What am I doing wrong?
I am trying to use one of ur menus. I customized them and everything works... except online. When I surf to my webpage I get the following error: "StartTop is not defined" and I cant see the menu (while I can see it off-line). What am I doing wrong?
Which menu? Are you using multiple scripts?
Refer to the forum stickies about how to lay out your post and then report back.
A link is in bold red in my signature.
cr3ative
A retired member, drop me a line through my site if you'd like to find me!
cr3ative media | read the stickies
HV Menu v5.5
I get the message: StartTop is not defined
var M_StrtTp=StartTop,M_StrtLft=StartLeft;
....
function ClcTrgt(){
var TLoc=Nav4?FrstLoc.document.layers[TargetLoc]omYes?FrstLoc.document.getElementById(TargetLoc):FrstLoc.document.all[TargetLoc];
StartTop=M_StrtTp;
StartLeft=M_StrtLft;
if(DomYes){
while(TLoc){StartTop+=TLoc.offsetTop;StartLeft+=TLoc.offsetLeft;TLoc=TLoc.offsetParent}}
else{ StartTop+=Nav4?TLoc.pageY:TLoc.offsetTop;StartLeft+=Nav4?TLoc.pageX:TLoc.offsetLeft}}
Funny thing is, Offline it works fine
Last edited by koenbosquet; 11-16-2004 at 01:44 PM. Reason: not in english...
This may be because the menu.js (or similar) file can't be found by the script.
Check your online paths.
cr3ative
A retired member, drop me a line through my site if you'd like to find me!
cr3ative media | read the stickies
Hi, I was having the same error message.
I'm using Menubuilder and the webpage loads fine when on the local HD
I have 2 java scripts
The first hold the variable values and the second hold the functions.
I copied the variable in to the script that hold the functions but I still get the error but at a different line number. This would imply that the script is being read.
Any help would be welcome or if someone can tell me another program that I can use to create the menu.
Thanks
Hi Niceguy:
Unfortunately if you have 2 JavaScripts on the same page, that's most likely the cause of the problem- a script conflict. You'll need to try removing one of them to see if that changes anything.
Bookmarks