View previous topic :: View next topic |
Author |
Message |
Witchy Mama
Joined: 02 Apr 2004 Posts: 14
|
Posted: Mon Jul 05, 2004 6:47 am Post subject: link targeting |
|
|
ok well I am working on a new layout which includeds iFrames, >>click here<<, anyway I want to know how I would be able to make it so that when you click on the archives (which are in the smaller frame) it will open in the blog section (the larger iframe).
Oh yeah and in the smaller frame is it repeating 3 times? cause it is for me, tis very odd, anyone know how to fix that?...[/url] |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 441 Location: Oslo, Norway
|
Posted: Mon Jul 05, 2004 3:12 pm Post subject: |
|
|
Have you named the iframes? Then it's easy, just:
Code: | <a href="http://www.sigg3.net" target="nameofiframe">Sigg3 dot net</a> |
If you haven't named it, it should look like this:
<iframe name="sigg3" blah blah blah>NO-Frames_Message</iframe> _________________ Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
Witchy Mama
Joined: 02 Apr 2004 Posts: 14
|
Posted: Tue Jul 06, 2004 2:11 am Post subject: |
|
|
ok so I just put that code around the [quote]<?php include("b2archives.php") ?> |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 441 Location: Oslo, Norway
|
Posted: Tue Jul 06, 2004 8:12 am Post subject: |
|
|
Let's say your mainframe is called "main", and your littleiframe is called "small". By default (unchangeable I guess) the index itself is called _parent, but don't mind that.
If the link to the archives is in _parent, just add a target="main" to your link-tags.
AHA!
I just noticed:)
You don't link the b2archives include. you make a new file called archives.php for instance, containing the <include> command ( See my own example: http://www.sigg3.net/archives.php ), which is the file you'll link to..
You can't target an include, 'cause it's like an iframe (only alot better). _________________ Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
|