| View previous topic :: View next topic |
| Author |
Message |
HeadleyGrange
Joined: 29 Oct 2005 Posts: 16
|
Posted: Sat Oct 29, 2005 6:42 am Post subject: Linking to an IFrame. |
|
|
OK this is kind of tricky, I don't even know if it is possible. I wan't to link a small picture like a thumbnail and open the lrger version in an IFrame on a differant page.
Lik the tumbnail is on news.html you click the little picture and it opens picture.html and shows the big picture in <!iframe>pictureframe. Make sense? |
|
| Back to top |
|
 |
|
|
ReFredzRate 1000+ Club

Joined: 20 Aug 2004 Posts: 2186 Location: Netherlands
|
Posted: Sat Oct 29, 2005 7:47 am Post subject: Re: Linking to an IFrame. |
|
|
I'm not entirely sure, but if you make the link like the follow it should work:
<A HREF="page.html" TARGET="iFrameName">
You should then make the iFrame source like this:
<IFRAME NAME="iFrameName">
I think that should do the trick, but on the other hand, I haven't done this in a very long time. I might have forgotten how it exactly works and made a mistake in this.
Welcome to DEVPPL! Hope you're here to stay! |
|
| Back to top |
|
 |
HeadleyGrange
Joined: 29 Oct 2005 Posts: 16
|
Posted: Sat Oct 29, 2005 7:49 am Post subject: Re: Linking to an IFrame. |
|
|
Thank for the help i will try it in a moment, ive been doing webpages here and there for a couple years and usually i can figure out how to do somthing if i am stuck but this is just picking me apart... lol, i'll let you know if it works. thanks.
nope dosn't work just opens the picture in its own window... this sucks.
is what i need is it to open the whatever.html and then load the picture in the iframe, is that possible? |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3612 Location: Sweden
|
Posted: Sat Oct 29, 2005 12:23 pm Post subject: Re: Linking to an IFrame. |
|
|
I've tested this code, and it works:
| Code: |
<html>
<body>
<a href="image.jpg" target="pencil">
<img src="image.jpg" alt="" width="20" height="20" border="0" />
</a>
<iframe name="pencil" width="400" height="200"></iframe>
</body>
</html> |
|
|
| Back to top |
|
 |
HeadleyGrange
Joined: 29 Oct 2005 Posts: 16
|
Posted: Sat Oct 29, 2005 8:54 pm Post subject: Re: Linking to an IFrame. |
|
|
| i don't think u are understanding the iframe is NOT on the same page as the thumbnail it is on a DIFFERANT page, i need the bigger picture to be displayed in an iframe on the DIFFERANT page not the same one as the thumbnail, make sense? |
|
| Back to top |
|
 |
ReFredzRate 1000+ Club

Joined: 20 Aug 2004 Posts: 2186 Location: Netherlands
|
Posted: Sat Oct 29, 2005 9:22 pm Post subject: Re: Linking to an IFrame. |
|
|
instead of using this:
TARGET="blah"
try using:
TRAGET="blah#iFrame"
Does that work? รต_o |
|
| Back to top |
|
 |
HeadleyGrange
Joined: 29 Oct 2005 Posts: 16
|
Posted: Sat Oct 29, 2005 9:41 pm Post subject: Re: Linking to an IFrame. |
|
|
| dude it worked!!! lol, thanks now i have a smaller problem... lol i need it to not open a new window i tried target="_top#pictureframe.html#pitcureframe" but that didn't work... any ideas? |
|
| Back to top |
|
 |
ReFredzRate 1000+ Club

Joined: 20 Aug 2004 Posts: 2186 Location: Netherlands
|
Posted: Sat Oct 29, 2005 9:45 pm Post subject: Re: Linking to an IFrame. |
|
|
Crap... I don't know about that man. Let's wait till Razz (webmaster) comes around this topic again  |
|
| Back to top |
|
 |
HeadleyGrange
Joined: 29 Oct 2005 Posts: 16
|
Posted: Sat Oct 29, 2005 9:51 pm Post subject: Re: Linking to an IFrame. |
|
|
| nevermind it didn't work... sorry i already had picturetest.html pointing to use pictureframe.html in the iframe i just took it out and it didn't work... sorry, i'm so lost this sucks!... lol |
|
| Back to top |
|
 |
|