View Full Version : How did they do this? - Help!

01-02-2006, 04:26 AM

If you go there ^ and click on a button on the navigation bar. And see how the entire page doesnt reload just the middle.

How did they acomplish that?

And more inportantly how can i do that on my site?

01-02-2006, 04:31 AM

01-02-2006, 04:35 AM
whats iframes?

01-02-2006, 05:10 AM

01-02-2006, 05:13 AM
Ok but whats the code that makes it when u click a button it appears in the middle?

01-02-2006, 05:20 AM
youd give the iframe a name then set the target of the anchor to it.

like this.

<a href="page.html" target="iframe">Link</a>

<iframe name="iframe" src="introframe.html"></iframe>

01-02-2006, 05:25 AM
ok sayy for example i wanted it to go in the middle of my site and its called news.php and its in the public html.

its at www.thinkhabbo.jndhost.com

01-02-2006, 05:50 AM
Someone plz!

01-02-2006, 05:51 AM
i dont understand your question,

and you gotta give people more than 25 minutes to give you answers

01-02-2006, 05:57 AM
look at my site


i want a link that when pressed the hole page doesnt load just the middle section. Which would be the news section. so the code would be?

01-02-2006, 02:45 PM
Hi Marvin,
To accomplish that, use *iframes*.

Put an iframe in the middle section of your page.

<iframe name="yourinitialpage.htm" name="news"> (you can add other attributes of frame if you want to). To learn advance attributes of frames go to > http://www.yourhtmlsource.com/frames/advancedframes.html

The *name* attribute of the frame is like an identifier (ID).

Let's say the filename of your news page is *news.htm* or watever the ext.

<iframe name="news.htm" name="news"></iframe>

Let's say you've a linked called *Sports* and when you click on this link the page will open in the iframe section.

<a href="sportsnews.htm" target="news">Sports</a>

Hope that helps.


01-04-2006, 07:49 AM
Thanks that helped but.

Ok So my main page is index.php
and the middle is news.php and another one is guides.php

So i want a link that when pressed it doesnt reload an entire new page just the middle as shown at my site www.thinkhabbo.vze.com

But however i try it just does not work!

Could someone help me with a code please.

01-04-2006, 07:55 AM
People are telling you what to do. You need to start reading what they tell you. Change THIS

<IFRAME SRC="news.php" WIDTH=480 Height= 410 SCROLLING=yes frameborder="0"></iframe><br>
to this

<IFRAME SRC="news.php" WIDTH=480 Height= 410 SCROLLING=yes frameborder="0" name="main"></iframe><br>
Now your links should look like THIS

<a href="guides.php" target="main">Guides</a>
Notice the TARGET in the link and the NAME in the iframe code.