2000 AD Online Forum

General Chat => Off Topic => Topic started by: Queen Firey-Bou on 16 January, 2003, 08:07:35 PM

Title: web techy brainpick question.
Post by: Queen Firey-Bou on 16 January, 2003, 08:07:35 PM
erm i thought i'd take the liberty of asking the collective board brain a webbery question.

when i built my web site i couldn't open anything up if i put it in different folders on the host server. so i bungled on, & everything including what is really 3 differnt sites, are all in one big heap. Now this works okay but gets messy. but i want to make a new area & it would be nice if i could have it seperate rather than part of the muddle ie. www.myspace.com/newbit  rather than www.myspace.com/newbit.htm
i use dreamweaver...
I just generally find path names etc hurts my iron age brain. any advice?
Title: How long have you gone without it?
Post by: petemaskreplica on 16 January, 2003, 08:14:28 PM
Apologies if this has been asked before, but...

I know there's a lot of people here who've stopped buying 2K only to return later. What I want to know is: Who was away the longest?

I drifted away in about 1997, and returned to the fold in 2001 (although I did read the odd prog here and there in between)
Title: Re: web techy brainpick question....
Post by: Art on 16 January, 2003, 08:33:49 PM
Assuming you had a folder called "your folder", and two files, one outside the folder called blah1.htm and one inside the folder called blah2.htm, to link to blah2.htm from blah1.htm  you'd use the following:

link (//../blah1.htm)

the "../" bit steps down a level in the folder structure. If you're using any images in blah2.htm that are in your root director you'll want to put "../" into the start of their src like so to make them work:



Linking to the same image from blah1.htm you'd just use



Dreamweaver should do a lot of this for you, though its always worth knowing what the underlying code does.

There is another way of handling pathing, which can be more appropriate for sites with lots of sublevels, but it doesn't tend to work so well if you've just got a site on your machine which you edit in dreamweaver as opposed to on a server.
Title: Re: web techy brainpick question....
Post by: Art on 16 January, 2003, 08:37:03 PM
And again, but remebering tthe < and > signs...

Assuming you had a folder called "your folder", and two files, one outside the folder called blah1.htm and one inside the folder called blah2.htm, to link to blah2.htm from blah1.htm  you'd use the following:

<a href="yourfolder/blah2.htm">link</a>

and then to link back again you'd use the following:

<a href="../blah1.htm">link</a>

the "../" bit steps down a level in the folder structure. If you're using any images in blah2.htm that are in your root director you'll want to put "../" into the start of their src like so to make them work:

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

Linking to the same image from blah1.htm you'd just use

<img src="image.gif">

Dreamweaver should do a lot of this for you, though its always worth knowing what the underlying code does.

There is another way of handling pathing, which can be more appropriate for sites with lots of sublevels, but it doesn't tend to work so well if you've just got a site on your machine which you edit in dreamweaver as opposed to on a server.
Title: Re: web techy brainpick question.....
Post by: Trout on 16 January, 2003, 11:13:39 PM
Trout powers waning - Nnnnngh - boredom threshold reached --- urgh -- techy talk Trout's only weakness....

AGH!

ALL HAIL ME!
Title: Re: web techy brainpick question.....
Post by: Queen Firey-Bou on 16 January, 2003, 11:14:13 PM
Thanks arthur I'll have a go at that.
Title: Re: web techy brainpick question....
Post by: critter on 23 January, 2003, 06:41:34 PM
So whats the site Mecha-Bou??

Critter
Title: Re: web techy brainpick question.....
Post by: Queen Firey-Bou on 23 January, 2003, 11:16:03 PM
well critter matey its totally & utterly un-comix related, its something to do with the wifey who does pottery n stuff in the north of scotland.
however the new bit i'm wanting to get organised asap is to do with my rallying silliness, kind of a diary of all the events we hope to finish without crashing this year...kindof "heres Bou' wrapped around a tree...& heres Bou' halfwey off a cliff"

Link: Lovely pottery

Title: Re: web techy brainpick question.....
Post by: Queen Firey-Bou on 24 January, 2003, 12:11:43 AM
Hey Arthur !!

I just set up a couple of test pages & it was easy peasy ! just popped a new folder to server, from new folder in my general directory & all the paths & links seemed to follow suit !

cool! a web site revolution is nigh.

thanks for yur help.