Forums Archive Index > SmartMenus 5 > problems frames subdirectories
Date: 4 Jan 2006 4:07 pm
hello!
i have a problem and spent hours for resolving them.
i want to use more or less a mix of the sample navigations:
the one with frames with links centered and the otherone with subdirectories.
i have the site here:
--> http://members.catv4u.at/t/trumme/ROOT/
the "Home" link opens Hotmail (Target: top)
The "Termine" link should open one side of a subdirectory in the bottom. It works, but when i click on this link, the navigation becomes inactive. i would have to work it as the example with the subdirectories: there the links are still activated after choosing a site in the bottom.
Maybe somebody could help me? maybe you could send me an answer with the right code for the site (termine.html).
thanks
walter
wtrummer{@}hotmail.com
Date: 4 Jan 2006 5:50 pm
Hello and welcome to the forums!
Well, here's what you have missed:
1) Open the 'navigation/s_loader.js' file and edit it like this:
s_The_Arrays_Source=ROOT+'navigation/s_arrays.js';// the source of the menu definitions
s_Script_DOM_Source=ROOT+'navigation/s_script_dom.js';// the source of your script
s_Script_NS4_Source=ROOT+'navigation/s_script_ns4.js';
s_Script_OLD_Source=ROOT+'navigation/s_script_old.js';
s_Any_Add_On_Source=ROOT+'navigation/s_fs_addon.js';// if you need any add-on
2) Open the 'navigation/s_arrays.js' file and make sure you have set all your links using the ROOT variable. E.g. like this:
{U:ROOT+'sites/aktuelles/termine/termine.html',T:'Termine'},
Your 'navigation/top.html', 'navigation/bottom.html' and 'sites/aktuelles/termine/termine.html' pages ARE set up correctly so you don't have to touch them.
Please let me know if you still have any problems after you make these changes.
Cheers!
Date: 7 Jan 2006 5:52 am
hello and thank you for your reply!!
i changed the files but now the dropdown menue doesn't appear.
here is the page if you like to see it:
--> http://members.catv4u.at/t/trumme/ROOT/
if i click on the main menue like (home or termine), the menue dissappears completely.
i zipped all files if you would like to see them:
--> http://members.catv4u.at/t/trumme/ROOT/ROOT.zip
thank you for helping me. i like to use the menue for my school. until now I have a navigation that works, but it needs java runtimes and that is not very useful for all visitors.
so long, thank you
walter
wtrummer{@}hotmail.com
Date: 9 Jan 2006 11:29 am
I took a look. You will just have to add the ROOT variable in the "navigation/bottom.html" file.
Just add it like this:
<script type="text/javascript" language="JavaScript">
<!--
function s_show(){return false}
function s_hide(){return false}
if(window.event+''=='undefined')event=0
ROOT='../'
//-->
</script>
Please note that this variable MUST exist on all pages that will be loaded in your bottom frame and are supposed to have menus.