View Full Version : semi-transparent scrollbars in iframe??


genoa
05-15-2003, 02:41 AM
is that possible?? I figured it might use some kind of filter .. but i don't know what :p

rinoa_heartily
05-15-2003, 08:03 AM
Put this somewhere IN your style sheet and Body on the page or scrollbar you want transparent:

BODY {background-color:#whatever colour ; filter: alpha(opacity=number how transparent you want it)}

and this one in your Iframe Code:

allowtransparency="true"


example:

<iframe frameborder="0" border=0 width=540 height=497 src="main.html" name="iframe" style="position:absolute; top:35px; left:660px" allowtransparency="true"></iframe>


this makes the page and scrollbar transparent!

hope it helped!

Xiphias
05-15-2003, 11:20 AM
Or do this in your head tags:
<style type="text/css">
iframe {background-color:#whatever colour ; filter: alpha(opacity=number how transparent you want it);}</style>

and this one in your iFrame code:

<iframe frameborder="0" border="0" width="540" height="497" src="main.html" name="iframe" style="position: absolute; top: 35px; left: 660px" allowtransparency="true"></iframe>

genoa
05-18-2003, 07:27 AM
oh.. ic .. but what if my background is a pattern??

jazzberry
05-19-2003, 07:33 PM
then the scroll bar will be transparent and the background will show through your scroll bar i guess, lol

genoa
05-20-2003, 03:05 AM
ic ic .. thanx :p