Click to See Complete Forum and Search --> : Bone Head On Links


LeeGee
02-20-2003, 01:37 PM
Bone Headed on Links

I am learning HTML and JavaScript and have been able to accomplish quite a bit.

I have been able create menus that link to sites on the web with no problems.

Here is where I am getting confused …I have 6 folders on my “C” drive setup as

follows: folder 1 named “www01”
folder 2 named graphics01 is inside folder 1

folder 3 named “apps01”
folder 4 named graphics01 is inside folder 3

folder 5 named “apps02”
folder 6 named graphics01 is inside folder 5

folders 1,3, and 5 are each at the same directory level.


I have htm’s in folders 1, 3, and 5, and gif’s in folders 2, 4, and 6.

I want to select an htm in folder 1 and use a graphic folder 2.

I want to select a link from the htm in folder 1 that activates an htn in
Folder 3 (this htm requires a graphic in folder 4).


I then want to select a link from the htm in folder 3 that activates an htn in
Folder 5 (this htm requires a graphic in folder 6).

Finally here is the question … what should the href(s) statements look like.
I do not what to reference drive C if I do not have to since everything
resides on the same drive.

Thanking you in advance

LeeGee

PeOfEo
02-20-2003, 07:41 PM
I think it would just be <a href="apps01/grphics01/yourfilehere.format">Click me Im your file</a>
But why do you wan to do things like this in your c drive? You are making a "web" site right? Or are you just making a hypertextlink page to access files on your computer?

spufi
02-21-2003, 11:10 AM
Let's see if I have this correct.

Looking at HTML page in folder 1 and needing a gif in folder 2

<img src="graphics01/image.gif">

Linking from folder one to folder number three.

<a href="../apps01/page.html">Apps01</a>

Looking at HTML page in folder 3 and needing a gif in folder 4

<img src="graphics01/image.gif">

Linking from folder three to folder number five.

<a href="../apps02/page.html">Apps02</a>

Looking at HTML page in folder 5 and needing a gif in folder 6

<img src="graphics01/image.gif">


I'm assuming that's basically what you want and if I'm missing something you get a good enough idea to figure out how to handle what's missing. I would also suggest using better names. graphics01 doesn't really say much about the graphics and since you use the same name three times, you can set your self up for placing the gif files in the wrong place. Same for the usage of apps01 and apps02. Make the names descriptive so they have some actual meaning.

LeeGee
02-21-2003, 01:09 PM
Thanks for the helping hand ... I appreciate you folks!

Keep up the good work.

LeeGee