This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

>
General Forum
This Forum is Locked
Author
Comment
Javascript help???

I'm using the cascading menu from the mini tools section... when I enter my own links in(at the bottom of the script) it somehow makes the hyperlink my home-address plus whatever URL I type in... ex: heres the bottom part of the mentioned script(disregard the asterisks/stars)
{<*script language="JavaScript">
//Link[nr] = "position [0 is menu/1 is item],Link name,url,target (blank|top|frame_name)"
var Link = new Array();
Link[*0] = "0|Home";
Link[*1] = "1|Home|*http://www.geocities.com/leoleoxxy/home.html|";}
Now when I save the page and view it in the browser, if i scroll over the link "home," the web address it shows is "http://www.geocities.com/leoleoxxy/'http://www.geocities.com/leoleoxxy/home.html'" and of course when I click on it it brings me to an error page...
I've scoured through the script a thousand times looking for something that might refer to my homepage.
I'm not really familiar with javascripting either so I was wondering if anyone could help me... I could send you the full script or maybe someone knows how to reset the script so that it doesnt put my homepage link in front of every URL i type into it.

Browser: leoleoxxy,4

Re: Javascript help???

Oh! NOT a PageBuilder site. Sure sounded like it. But I did not find the menu.

However, the problem seems to be easy to solve. If, when you enter your own links, " it somehow makes the hyperlink my home-address plus whatever URL I type in"...

Well, instead of
"http://www.geocities.com/leoleoxxy/home.html"
simply type
"home.html"

Re: Re: Javascript help???

Well, thanks for the sugestion... actually I didnt build any of it with the actual pagebuilder tool... and when I tried typing in just the end part of the url, it still tried to go to
"http://www.geocites.com/leoleoxxy/'home.html'"
see the little quotes? that is exactly the URL that transferred to the address bar when I clicked the link before it said "error, not found" also when i scroll over the link it says it in the bottom of the browser...
any more ideas

Browser: leoleoxxy,4

Re: Re: Re: Javascript help???

My guess is that you have some extra characters in your specification that you not noticing. Check for some extra or missing quote marks. The lines that you specify the menu in should only have a starting and ending quote mark. There should be none in between.

Below is a clip of the code I used on a test page. I took it straight off of the web, pasted it in, and it worked just fine. I made some additions at the bottom so that you can see how it's suppose to work. The URL of the test page is http://www.k7mem.bravehost.com/cascading_menu.html .




Also make sure that each Link entry has a different number in the brackets. The reference at the end that says startup(5); determines which menu item start in the open form. Comment it out if you don't want any of the menu items to start open.