/    Sign up×
Community /Pin to ProfileBookmark

iframe questions

[size=0]I have the iframe up, no problem. But I’m trying to get links to put the page up inside the iframe. It doesn’t work. If I have a website up that has an iframe layout, my page will come up in that website’s iframe. If there are no other iframe layouts it comes up in a new window. What am I doing wrong here?

Also…I changed the opacity of the iframe so it’s translucent…but that also changed the opacity of everything inside the iframe, the text and images. Is there a way to make the text and images have 100% opacity while the iframe has 40% opacity?[/size]

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@Da_WarriahJul 20.2003 — you mean something like this?

<a href="page1.html" target="iframe">test</a>

<a href="page2.html" target="iframe">test</a>

<a href="page3.html" target="iframe">test</a>

<iframe name="iframe"></iframe>

if you target the links to be loaded into the iframe called, in this case, "iframe", then they should load inside it...

im not quite sure what the point of changing the opacity would be...you could always make it "invisible" by putting frameborder="0" in the <iframe> tag...but otherwise, i dont think theres any way to have the page inside at full opacity...
Copy linkTweet thisAlerts:
@MinouauthorJul 20.2003 — [size=0]That's the HTML I had before...except now a new window comes up. I don't know why it's like this...[/size]
Copy linkTweet thisAlerts:
@Da_WarriahJul 20.2003 — double-check to make sure the iframe name hasnt been changed...otherwise it will look for some sort of target called "iframe", and when it doesnt find it, it will open a window it calls "iframe"...
Copy linkTweet thisAlerts:
@MinouauthorJul 21.2003 — [size=0]A friend of mine showed me what was wrong with the whole link problem today. However...is there anything to be done about the opacity?[/size]
×

Success!

Help @Minou spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...