PDA

View Full Version : Quick Html Question



Kobe
11-06-2006, 08:12 PM
We are doing a project for school, and I need to make a simple website...

It's been so long, and I don't remember how to make it, so when you click the click in the frame on the left side, it will open up in the middle

I remember the target="main" or w/e you want, but it is just openining in a new window...

Can anyone help

http://img139.imageshack.us/img139/2843/helpwa5.jpg

crazedmodder
11-06-2006, 09:45 PM
htmlgoodies.com owns

You have to name your frames:
"<FRAMESET>

<FRAMESET COLS="50%, 50%">
<FRAME NAME="A" SRC="cell_1.htm">

<FRAMESET ROWS="50%, 50%">
<FRAME NAME="B" SRC="cell_2.htm">
<FRAME NAME="C" SRC="cell_3.htm">
</FRAMESET>

</FRAMESET>

Okay, great... you've named the cells. See the "NAME=" commands I snuck in the FRAME SRC commands above? Good. Now that you have the cells named, you can make any hypertext link inside of them targeted. Basically, you're going to add a TARGET command to the usual <A HREF>. Let's say this example hypertext link is in cell_a above:

<A HREF="http://www.cbs.com" TARGET="C">"

http://www.htmlgoodies.com/tutorials/frames/article.php/3479241

Now looking at your code I don't really understand how you created your frames (I don't work with frames usually), but this should point you in the right direction.