Help - Search - Members - Calendar
Full Version: iframe
Forums > Resource Center > Webmasters' Corner > Resolved Topics
Smarmosaur
mmk, if I have an iframe on my website, is it possible to go from something like this:
click to enlarge


to this:
click to enlarge



incase you haven't figured out what i'm talking about: the links. the first page is just those links in the iframe. on the second page (when you click one of those said links), it opens that page in the iframe, but also the links outside of the iframe, without re-loading the entire page.

if it's possible, how can i do it?

if it's not possible, any suggestions? rolleyes.gif
venti-anemoi
I believe it's something like....

CODE
<a href="url" target="frame">link</a>
Smarmosaur
that's not what i'm talking about. that's obviously how to get the iframe to work. i know how to get the content in the iframe when you click a link, but how do you load something outside of the iframe when you click a link, as well as the main content in the iframe? i just used the links as an example. i want to be able to have my links in the iframe by default (i know how to do this), but when i click one, i want the contents of the link inside the iframe, as well as the other links outside of it. catch my drift? :]
SharperMyspace
You can only change the content on the inside of the iframe.
venti-anemoi
Oh, sorry. I wasn't clear on what you were asking.

To be honest, I don't think you can do that. Because when you "change the outside of the iframe," you're essentially changing whatever page you're on / going to a new page. It would be basically linking to another page that has a different frame in it, but I'm not sure if that's what you're looking for.

Perhaps you could use the code that people use to offer different themes for their sites? I don't know what that is, though, sorry.... although I think that wouldn't change the content in your frame, either.
Melissa
I'm pretty sure you can only change what's inside the iframe.

If you used php instead of iframes, you can get the effect that you're looking for.
Smarmosaur
ah. ok. i didn't think it was possible with iframes, but i thought i would go ahead and ask anyways, but i thought of something else to do. thanks for all the input. :]
close?
Lariat
- Topic Closed -

PM a moderator if you'd like this reopened.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.