 |
 |
help with FRAMES?
|
 |
|
 |
|
Senior User
Join Date: Oct 2001
Location: Indiana
Status:
Offline
|
|
I would like to have a link (in a script) open from the left frame into the right frame.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status:
Offline
|
|
That's pretty easy, just make sure the link has a TARGET= line, like this:
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"><A HREF="1.html" TARGET="name of frame">Link</A> </pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">
<small>[ 07-27-2002, 02:29 PM: Message edited by: ReggieX ]</small>
|
|
The Lord said 'Peter, I can see your house from here.'
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2001
Location: Indiana
Status:
Offline
|
|
thanks for the quick response, I was sure it was easy...I will give it a try.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2001
Location: Indiana
Status:
Offline
|
|
what do you mean when you say "name of frame" do you mean the local file name like "main.html"
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status:
Offline
|
|
The name of the frame is the name you gave it in the <FRAMESET> tag.
Just a quickie example:
We'll say that this is your home.html, and it has a frameset defined like so:
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
<FRAMESET ROWS="3">
<FRAME SRC="1.html" NAME="one" SCROLLING="auto" NORESIZE>
<FRAME SRC="2.html" NAME="two" SCROLLING="no" NORESIZE>
<FRAME SRC="3.html" NAME="three" SCROLLING="no" >
</FRAMESET></pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">The 1.html has the link, and you want to target the middle frame in your link. That's where you'd have this code:
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
<A HREF="newpage.html" TARGET="two">Link</A>
</pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">So now the 2.html page is replaced in the middle frame by newpage.html
<small>[ 07-27-2002, 05:54 PM: Message edited by: ReggieX ]</small>
|
|
The Lord said 'Peter, I can see your house from here.'
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2001
Location: Indiana
Status:
Offline
|
|
THANKS!!!! THAT WORKED LIKE A CHARM!
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jul 2002
Location: Tronna
Status:
Offline
|
|
Cool! Always glad to help.
Reg
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|