homepage Welcome to WebmasterWorld Guest from 54.237.95.6
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
menues without frames
chrman




msg:565402
 1:47 pm on May 5, 2001 (gmt 0)

I have a little dilemma i'm hoping to find a simple solution to.

I am working on a project with a menu across the top which i am doing in javascript.
The menu is quite large and so doing it in a frame is not deiserable as the frame would take up half the screen, and we do not want to have to scroll the frame to see the menu. So frames are out.
BUT, the problem i have now is that it looks like i have to include (and modify) the code for each page of the document. There are over 200 pages in multiple nested folders which means a TON of work and testing.
Is there a way to not use frames and not to have to code every page independantly?
Some sort of frame that contains the code, but can overlap the frame below so i can keep it small?

 

theperlyking




msg:565403
 2:02 pm on May 5, 2001 (gmt 0)

two options:

*If its javascript you can write one .js file including the code then use <script src="whatever.js> on each page.

*If you can you could use server side includes to include a file containing the menu on each page.

Both would mean you only have one menu to update no matter how many pages you have.

chrman




msg:565404
 3:54 pm on May 5, 2001 (gmt 0)

here is a novice question if i ever heard one
how do you create a .js file?
I've searched a half dozen sites for tutorials and stuff and came out blank.

theperlyking




msg:565405
 5:55 pm on May 5, 2001 (gmt 0)

If i'm guessing right there are a couple of solutions:

Use full paths to the links instead of relative (e.g "/foo/bar/page.html" instead of just "page.html")

Look into using the base href tag to give your page the base for its links.

Good luck :)

chrman




msg:565406
 7:39 pm on May 5, 2001 (gmt 0)

I am still having problems. Maybe i should bemore specific on my problem
I cannot use a absolute reference since this product is going to be distributed on a CD-Rom and not posted on the web (until later)
I cannot know what the user's driver letter will be which means i cannot use an absolute designation.
Is there a way to force it into thinking a specific folder is the absolute reference?
The root folder is called DSS, in that folder is the index page and the menu.js files. I need to reference all links to the DSS folder to get the correct path. Is this even possible?

typophile




msg:565407
 4:22 pm on May 7, 2001 (gmt 0)

I don't know the intricacies of script includes or the other things mentioned above but when I build sites in dreamweaver that include javscript navigation menus I make the whole menu a library item that dreamwever will allow you to modify and update site-wide. This may not solve your absolute vs. relative links problem but I find it reduces my coding time immensely.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved