View Full Version : Starting link with new root....


CuJo
06-23-2003, 07:05 PM
ok heres my problem
i have a menu bar and this is a code inside it

Menu1=new Array("Home","http://www.my url.com/php?main=web","",0,20,120,"","","","","","",-1,-1,-1,"","Home");

but when im on on the page
http://www.my url.php?main=links

then I click the link above (Menu1)
the link changes to
http://www.my url.php?main=links?main=web

and its an error....
so I was wondering how to start it as a new root...
I tryed putting "\" at the beggining but nothing....

any suggestions?

-thx

Stormx
06-25-2003, 04:42 PM
You confuse me. That can't be the whole script. PHP Arrays do not generate links. Please give us the whole source you are using

CuJo
06-28-2003, 12:36 AM
nooo, thats just part of the script....

CuJo
07-01-2003, 04:29 AM
some1 help

CuJo
07-01-2003, 04:55 AM
ok nvm the last couple messages...

how do i change this code:

var BaseHref=document.location.href.substring(0,docume nt.location.href.lastIndexOf("/")+1);

so it starts a new root instead of staying in the folder..
i tried changing the / to a \ but it didnt work....


-thx