Some friends and I are working on the school website and ran into a bit of a hang up. We want to have our menu and banner all in one folder. Then on each page, we just want to display it from that folder, and not have to copy it to every folder.

That didn't make much sense, did it? Okay, I'll try to illustrate it.

Main Folder (with menu and banner)
|-------------------------------|
Second folder--------------Third folder

I want to have the pages in second and third folders all display stuff from the main folder.

This is the code we have for the banner.

Code:
<img width=900 height=150 position=center id="_x0000_i1037" src=banner.jpg >


If we put this in folder 2, how would we point the src= to the main folder?
What's the base url?
www.mcasd.net
<img width=900 height=150 position=center id="_x0000_i1037" src='/banner.jpg' />
Oh, just add a slash per folder? Word up
Thanks, Kerm Smile
or better yet a ../ per folder Wink

or just use the full path instead of the relative one.
You can use /location everywhere to make it relative to the domain. No need for multiple /s or ../s.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement