What is the code for....

liunx

Guest
Ok, I seen this code on Bravenet's HTML tutorials, and suddenly it's gone and I didn't bother to copy it or anything, so now I'm an idiot, but I'd love to have it on my site. I've seen several sites that use it, but I don't know what it's called...<br />
<br />
It's where you have one basic page and if you click a link the stuff in the middle changes but the page stays the same...<br />
<br />
An example is: <!-- m --><a class="postlink" href="http://www.buoy.com/~bonfire/index2.htm">http://www.buoy.com/~bonfire/index2.htm</a><!-- m --><br />
<br />
If you go there and click on a link, the stuff in the middle changes, but the rest of the site stays the same. How is this done? I know it's just an HTML code.<br />
<br />
Thanks in advance.<!--content-->that website uses frames (<!-- m --><a class="postlink" href="http://www.w3schools.com/html/html_frames.asp">http://www.w3schools.com/html/html_frames.asp</a><!-- m -->)<!--content-->Ok that's what I thought, but I looked up all kinds of stuff on frames and nothing turned out to be what I wanted which is what that site is.<br />
<br />
If frames do what I wanted, then I guess I just have to figure the stuff out. But so far it isn't looking like it.<br />
<br />
Thanks, I think I may have it figured out now.<br />
<br />
Much appreciation!<!--content-->Ok, here's my question now that I got that figured out.<br />
<br />
How would I get a link in say the first frame to open up in the second frame like on that site?<br />
<br />
Cause I'd like to have all of my pages open on just one page, so I could maybe stream some audio without people losing the audio by searching around on the site...<br />
<br />
EDIT: I just added the code that link you gave me offers to my site, and it isn't working. So I don't know what to do. I thank you for your help though.<!--content-->Originally posted by BeefyBooyawn <br />
<br />
How would I get a link in say the first frame to open up in the second frame like on that site?<br />
<br />
<br />
<br />
you would put the link target to the second frame.<br />
eg. <a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.yoursite.com/page1.html" target="framenamegoeshere">linktext</a><br />
<br />
so like on the ac/dc website link section:<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"accanews.html" target="mainFrame"> to open the news page in the main frame<!--content-->Originally posted by BeefyBooyawn <br />
<br />
EDIT: I just added the code that link you gave me offers to my site, and it isn't working. So I don't know what to do. I thank you for your help though. <br />
<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/present/frames.html#h-16.1">http://www.w3.org/TR/REC-html40/present ... tml#h-16.1</a><!-- m --> may explain it better.<br />
<br />
or maybe this (<!-- m --><a class="postlink" href="http://www.idocs.com/tags/frames/frames_famsupp_5.html">http://www.idocs.com/tags/frames/frames_famsupp_5.html</a><!-- m -->) is simpler.<!--content-->I thank you much, but nothing seems to be working. I'll get it figured out. Thanks again.<!--content-->here's what it should look like:<br />
index.html page---><br />
<br />
<html><br />
<head></head><br />
<frameset rows="300,300"><br />
<frame name="top" src=http://www.webdeveloper.com/forum/archive/index.php/"top.html"><br />
<frame name="bottom" src=http://www.webdeveloper.com/forum/archive/index.php/"bottom.html"><br />
</frameset><br />
</html><br />
and an example on the top page ---><br />
<html><br />
<head><br />
<title>the top page</title><br />
</head><br />
<body><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"newpage.html" target="bottom">a new page</a><br />
</body><br />
</html><!--content-->Well that there is probably my problem. I'm doing this in HTML, not PHP. Oh well, it was a good idea, but the more I looked at it, the more my site probably wouldn't benefit from it. Thanks again.<!--content-->no problem. frames suck anyways. :p<!--content-->
 
Back
Top