View Full Version : Transparent IFrames
Kismet 03-18-2003, 08:54 PM I've already searched the forums for related topics. I've tried suggested codes but nothing is working for me.
I tried putting <IFRAME NAME="Frame1" SRC="iframe_content.htm" ALLOWTRANSPARENCY="true"> in the page of the iframe. And in my iframe code, I tried putting <BODY STYLE="background-color:transparent"> .
I tried <IFRAME width=200 height=320 src="pindex.htm" name="Hmiddle"
style="border:1 #000000 solid" style="filter:alpha(opacity=50)"> </IFRAME> and that somewhat worked but not really what I'm looking for. I use dreamweaver and on my page, the code is highlighted in yellow because it says that it's marked invalid because it contains a duplicate arttribute.
So, if anyone else knows of something else, please let me know. I'm thinking of just cutting out the piece in my image and putting that in the iframe.
Oh, I also am looking for a transparents scrollbar. Some people suggested http://www.jennyspage.net/transscroll.html but that didn't work either!
aero_misao 03-19-2003, 04:04 AM hmm..
what browser and what version of it are you using?
i think, transparent iframes work for ie5+...
hmm...not sure on that though...
the allowtransparency=true code worked for my site...
so, try checking out your browser.. :) k?
peace
MaGiCSuN 03-19-2003, 08:47 AM Yep that's why i hate that code. I tonly works with 5.5+ and some people who are lucky also see it at version 5.0
you could try upgrading your browser www.microsoft.com and download an 'update' but you can also have your site userfriendly and slice the background for the iframe ;)
Love,
Mirna
Kismet 03-19-2003, 11:05 PM I have version 6.0 for IE
MaGiCSuN 03-20-2003, 03:16 PM you add this:
<BODY STYLE="background-color:transparent">
on your IFRAME page, so i guess that 's the page that opens into the iframe. Try putting the code above on the page where the <iframe> code is on.
Love,
mirna
selphie 03-22-2003, 07:52 AM This works perfect for me, in the iFrame code add this:
ALLOWTRANSPARENCY="true" style="filter:chroma(color:COLOR YOU WANT TRANSPARENT)"
There it is, should work. :P
Kismet 03-22-2003, 03:22 PM Thanks, I'll try it. Originally posted by MaGiCSuN
you add this:
<BODY STYLE="background-color:transparent">
on your IFRAME page, so i guess that 's the page that opens into the iframe. Try putting the code above on the page where the <iframe> code is on.
Love,
mirna
Kismet 03-22-2003, 03:50 PM I meant to quote you that I tried this. I did and it didn't work. Dreamweaver also highlighted it and said it was an extra end tag. *shrugs* It looks like all of you are posting the same codes, and if no one else has something new, I'll try to play around more with these.
Originally posted by selphie
This works perfect for me, in the iFrame code add this:
ALLOWTRANSPARENCY="true" style="filter:chroma(color:COLOR YOU WANT TRANSPARENT)"
There it is, should work. :P
laura189 03-23-2003, 07:43 PM Hi, I copied this code from another thread. It won't let you reply and i didn't want to start a new thread.
How do i add the code to resize the iframe? and how do i take off the border?
I searched the forum, but couldn't find anything.
IFRAME NAME="Frame1" SRC="iframe_content.html"
ALLOWTRANSPARENCY="true">
Thanks :)
Laura
Sheila 03-24-2003, 08:44 AM Originally posted by laura189
How do i add the code to resize the iframe? and how do i take off the border?
Add width="your width" height="your height" to your iframe code to resize it. To take off the border add border=0 frameborder=0 framespacing=0 to the iframe code.
http://www.lissaexplains.com/frames.shtml
laura189 03-24-2003, 10:00 AM Thank you so much!!! :)
I want to use Iframes ,on my homepage, in a way that whenever I click on a link outside that frame, it loads it into the iframe. Is it possible...If yes. Then what should I do??
Anatidae 07-08-2003, 11:27 AM Originally posted by kaus
I want to use Iframes ,on my homepage, in a way that whenever I click on a link outside that frame, it loads it into the iframe. Is it possible...If yes. Then what should I do??
I'm not sure what you mean, but I think targetting your links is what you're after.
If you are following Lissa's code:
<iframe src="inline.html" name="inlineframe" width="your width" height="your height" style="border: 5 solid #ff33cc"></iframe>
You have a spot where you name your iframe. If you wanted to target link to an iframe named "inlineframe" for example, your link would look like:
<a href="pagename.htm" target="inlineframe">Click!</a>
What you need to add is the bolded part, I think.
Hope this helps. ;)
MaGiCSuN 07-08-2003, 06:53 PM don't bring up old threads. This thread was like 2,5 months old. And please read the rules if you are a new member. Thank you
Love,
Mirna
|