Question:

Help with website?! div, graphics?

by  |  earlier

0 LIKES UnLike

i have this website and where the navigation is like owner, site, etc how do i link them so that the link will make the content show where the main content is now which is named home.htm???? because when i click on the link it just goes straight to another page. :/

http://www.freewebs.com/pictureframesx/

thats the site, you can look at the source by right clicking, please i've been searching google for ages and nothing has helped yet.

 Tags:

   Report

2 ANSWERS


  1. You need to use an iframe for that. But using frames to show content is not good web design practice. Or, you'll need to make a copy of each page and edit the content; the disadvantage of this method is that if you ever need to update something on all pages (like adding a link to a new page), you'll need to modify every single file.

    Also, the page takes a very long time to load compared to other sites. You may want to use a smaller, more compressed image.


  2. I seem to have arrived in too late to give the answer, but hey, here it was:

    The iframe in which your content would show is named "home", so you must set an attribute for your links to show in that iframe. Any link would need to go like this:

    <a href="mypage.htm" target="home">link text</a> <- notice the target="home" part.

    Same goes whenever you want a link displayed somewhere in particular, as the default behavior is to load the page in the browser window. Try, for instance, target="_blank" should you need to make external links in new windows/tabs.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions