links to sub folder and back

This is a discussion on "links to sub folder and back" within the Web Page Design section. This forum, and the thread "links to sub folder and back are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 12th, 2006, 16:30
New Member
Join Date: Nov 2006
Location: North East
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to toefunky
links to sub folder and back

Hello all
newbie here looking to learn how to build a website from scratch and needing help. Im currently working my way through my first quals for web design EDCC advanced level and find myself stuck


The first section is ok
Section one create a site structure
1. Create a folder for web site
2. Create a folder for 2 site sections within the main folder and name them according to the section
3. Create an image folder

Think Ive got this section right, in fact I no I have lol

Section 2 Create a skeleton website ( think I got this one right as well )
1. Create a home page and call iit index and place in main folder
2 Create two sections pages, giving then the same name as their folder and place them in their folder

Section 3 Create a Navigation Structure
Now this is where Im struggling I understand how to make a link <a HREF=”one.html”>
But I can seen to make a link back from the folders to the main folder
  • Create a set of links to both sections and home page and place on all pages
  • Teat links
I have one main folder and 3 sub folders called one, two, images so what I would like to no is what is the code for the link from say folder one back to index page for page two in folder 2

Cheers and many thanks for any help
Reply With Quote

  #2 (permalink)  
Old Nov 13th, 2006, 10:08
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: links to sub folder and back

To start with, it would need to be a very big site to justify pages going in their own folders. This is not normally the way. you would typically have your pages in the same directory with an images diretory below that.

However, if you have to stick with this approach, the best way forward would probably to use absolute addressing instead of the more usual relative.

This means all your page links would need to be of the type;

<a href='http//:www.mysite.co.uk/directory/page.html'...

and your images referencd in a similar way;

<img src='http//:www.mysite.co.uk/images/theimage.jpg'>

Like I say, this is not how things are normally done.
Reply With Quote
  #3 (permalink)  
Old Nov 14th, 2006, 01:08
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: links to sub folder and back

You can also link to ../images/ which would be like going from "pages" to images in the following setup:

/home/documents/pages
/home/images
Reply With Quote
  #4 (permalink)  
Old Nov 16th, 2006, 06:17
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
Re: links to sub folder and back

think of your codeing like this...
../ = backing out of a folder main<-images
/ =entering a folder main->images

say like you have a page but you need to link a file to it but this page is 3 subfolders deep. then you have to use ../../../ that il take you out of 3 folders. Example:

../ ../ ../ (what this is basicly saying is
main(file here)file.wmv<-sub1<-sub2<-sub3(page here)

get it?

and if you need to go into a file without exiting the folder you in but going into another folder then your code would look like

main/sub1/sub2/sub3/file.jpg
main(page here)->sub1->sub2->sub3->file.jpg

now do you get it? Its simple. long but simple.
Reply With Quote
  #5 (permalink)  
Old Nov 16th, 2006, 09:08
Junior Member
Join Date: Nov 2006
Location: London
Age: 22
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: links to sub folder and back

Use dynamic links... "../linklocation" as opposed to static "http://linklocation"

This means if you move the site it will still function fine, also lets you run it off a cd
Reply With Quote
Reply

Tags
link

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
DMOZ no longer showing in back links? ChainsawDR Search Engine Optimization (SEO) 4 Jun 6th, 2008 16:08
[SOLVED] Back links? thewebkid Starting Out 19 Dec 17th, 2007 13:36
Back Links and PR cocoonfx Search Engine Optimization (SEO) 11 Jun 29th, 2007 23:46
script to list folder contents as links taras JavaScript Forum 0 May 26th, 2007 09:59


All times are GMT. The time now is 08:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43