PDA

View Full Version : [Help] Linking the pages



Chromz
23-12-2008, 03:12 PM
Hi, basically I'm not good at coding so yeah. I started a site, I got the layout code, hosting. So basically I want to make another page. For example;

mysite.com/index - then I want this is link to my other page

mysite.com/help

do I copy the same copy as the index, but change the information in the middle it-self.

Like www.habbox.com (http://www.habbox.com), then I go on http://habbox.com/index.php/news/habbo-uk for example. Do I keep the layout source and the navigation the same then just change the main content and link them up?

Thanks, I hope people under :p

56i,
23-12-2008, 03:42 PM
www.w3schools.com (http://www.w3schools.com) is were you will go now.

Decode
23-12-2008, 04:12 PM
Just use the full address for the images so instead of


<img src="image.gif" />

It woluld be

<img src="http://yoursite.com/image.gif" />



www.w3schools.com (http://www.w3schools.com) is were you will go now.

Lol? You just copyed Dan's post from another thread http://www.habboxforum.com/showpost.php?p=5303396&postcount=2
I doubt you even know anything about coding.

Yonder
23-12-2008, 05:06 PM
Hi, basically I'm not good at coding so yeah. I started a site, I got the layout code, hosting. So basically I want to make another page. For example;

mysite.com/index - then I want this is link to my other page

mysite.com/help

do I copy the same copy as the index, but change the information in the middle it-self.

Like www.habbox.com (http://www.habbox.com), then I go on http://habbox.com/index.php/news/habbo-uk for example. Do I keep the layout source and the navigation the same then just change the main content and link them up?

Thanks, I hope people under :p


Thats one of the ways doing it yes.

Edit the index page then once you have done it you could click save as, save it as example.htm. Then add a link to the nav to the new pages. Not best way but for a beginer i guess it will do!

Chromz
23-12-2008, 06:04 PM
www.w3schools.com (http://www.w3schools.com) is were you will go now.
Link to the actual tutorial.

Just use the full address for the images so instead of


<img src="image.gif" />

It woluld be

<img src="http://yoursite.com/image.gif" />




Lol? You just copyed Dan's post from another thread http://www.habboxforum.com/showpost.php?p=5303396&postcount=2
I doubt you even know anything about coding.
Er what?


Thats one of the ways doing it yes.

Edit the index page then once you have done it you could click save as, save it as example.htm. Then add a link to the nav to the new pages. Not best way but for a beginer i guess it will do!
What's the other ways? And which one is commonly used and the easiest?

HabbDance
23-12-2008, 06:19 PM
For this, you can use iframes. An example is:


<iframe id="name" name="name" src="home.htm" width="100%" height="500px"></iframe>

home.htm is the page that will be displayed. To link to the box:


<a href="#" target="name">Text or image</a>


er.. yeah.

Chromz
23-12-2008, 06:23 PM
For this, you can use iframes. An example is:


<iframe id="name" name="name" src="home.htm" width="100%" height="500px"></iframe>

home.htm is the page that will be displayed. To link to the box:


<a href="#" target="name">Text or image</a>


er.. yeah.
So where do I enter the contents for the other page?

HabbDance
23-12-2008, 06:24 PM
just put the iframe in your main box or wherever

then use the link to a new page, without your whole source code, then it should open in the box with the iframe in it

Chromz
23-12-2008, 06:47 PM
Is the blue parts what you can change?

HabbDance
24-12-2008, 02:07 AM
indeed they are :D

CANNIBALEX
09-01-2009, 05:03 AM
I'm not quite sure what you're asking here. Do you want to set up a simple hyperlink? That would be:


<a href="yoursite.com/help">Click Here to go to help</a>

Or are you asking how to re-direct the url so when you type

yoursite.com it takes you to yoursite.com/help ? In which case you would use Meta tags in your HEAD section of html.


<meta HTTP-EQUIV="REFRESH" content="0; url=yoursite.com/help.html">

I hope this helped in some way.

x

Want to hide these adverts? Register an account for free!