Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: web page in sub folder menu wont work
p51mustang
Newbie

Posts: 1
Registered: 10/22/2007
Member Is Offline
posted on 6/13/2008 at 02:58 PM Reply With Quote
web page in sub folder menu wont work


I am placing my html pages in a directory and the nav menu_files (renamed: main_nav) in the root folder and the nav will not show up. However, the menu does show up it the page is in the same directory as the nav script. Why?

This is my root
General
res_test.html

main_nav
menu.js
(all other files, menu_green.css, etc.)

The script below is what is on my html page and in the javascripts.

Path for menu.js
var TMenu_path_to_files='main_nav/';

html page head
<link rel="stylesheet" href="../main_nav/menu_green.css">
<link href="../main.css" rel="stylesheet" media="screen">
<script language="JavaScript" src="../main_nav/menu.js"></script>
<script language="JavaScript" src="../main_nav/items.js"></script>
<script language="JavaScript" src="../main_nav/template.js"></script>
</csimport>

in the body

<script language="JavaScript" name="Nav bar">
new menu (MENU_ITEMS, MENU_TPL);
</script>

Thanks for your help,
Chris
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 9/22/2008 at 09:29 PM Reply With Quote

relative paths resolve to different locations depending on where you use them.

use the absolute paths:
var TMenu_path_to_files='/main_nav/';

<link href="/main_nav/main.css" rel="stylesheet" media="screen">

etc.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Functionality demos Functionality demos
Multiple
Cross-framed
Select-boxes
Effects
Design demos Design demos
Icons & arrows
Idea!
Hi there!
Matrix
MS Style
XP Style
Dots
3D-Buttons
Product Documentation Documentation
Documenation Page
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004