View Full Version : Linking to a site made with frames


moxyfruvous
04-09-2005, 02:51 AM
I want to make a link to a page that has frames. However, I want the page to open with a different page in the main window than defined in the framedef. I would just change the page in the framedef, but I still want that page to be my homepage. I don't know how to explain it. Here, I'll try this:

I have a page like this:

<FRAMESET ROWS="25%,75%">
<FRAMESET COLS="20%,80%">
<FRAME SRC="header2.htm">
<FRAME SRC="header.htm">
</FRAMESET>

<FRAMESET COLS="20%,80%">
<FRAME SRC="menu.htm">
<FRAME SRC="homepage.htm" NAME="win-main">

</FRAMESET>
</FRAMESET>

I want it to open like that (with the homepage in the main window) for every link that set up that goes to that page. However, let's say that I have a link that's posted on someone else's webpage, and I want the frames page to open up with a "WELCOME" page in the main window. So it'd almost be like making the code for the framedef this:

<FRAMESET ROWS="25%,75%">
<FRAMESET COLS="20%,80%">
<FRAME SRC="header2.htm">
<FRAME SRC="header.htm">
</FRAMESET>

<FRAMESET COLS="20%,80%">
<FRAME SRC="menu.htm">
<FRAME SRC="welcome.htm" NAME="win-main">

</FRAMESET>
</FRAMESET>

But, I don't want to do that. I only want a different frame in the main window from one certain link. Is it possible/are there anchor attributes to do this? Something like, <A HREF="framedef.htm" TARGET="..."> and then add a HREF for the target...? Ah, I don't know. I've just confused myself with this post. Thanks for anyone who tries to help, or at least tries to understand what I'm rambling on about. ;)

moxyfruvous
04-09-2005, 02:58 AM
I'm so sorry. Can this be moved? I thought I was in the "Frames" forum. And apparently I was too slow to edit my post.

pb&j
04-09-2005, 02:59 AM
create a new html page with the framedef coding you desire.
for the one link, link to that new framedef page.

moxyfruvous
04-09-2005, 03:04 AM
Okay. I'm working with a really stubborn boy, and he wanted to avoid making another page at all costs. So that's the only way? Thank you!

Oh, and thank you for moving my post. First impressions are (as you can probably tell) my stong point.

pb&j
04-09-2005, 03:21 AM
yes, the only way i know of unless you want to get into PHP coding and have full control over all pages involved.

and no problem for moving the topic. thats what i do.