PC Review


Closed Thread
Thread Tools Rate Thread

Transparent Iframes and scrollbars!

 
 
Senior Member
crazyguy_2k's Avatar
Join Date: Apr 2002
Posts: 102
 
      16th Oct 2003
Hey thought ill give a little tutorial

Transparent Iframe

Place this code to where u want ur Transparent Iframe to be:

<iframe src="URL OF FIRST PAGE" FRAMEBORDER="0" width="NUMBER" height="NUMBER" name="IFRAME NAME" style="position:absolute;left:NUMBERpx;top:NUMBERpx;"
allowtransparency="true"></iframe>

Now on each of ur subpages.. add this code:

<body style=background-color:transparent>

Thats all for a transparent Iframe


Transparent ScrollBar

1. place this code in. (it is an IFrame)

<iframe src="welcome.htm" FRAMEBORDER="0" width="NUMBER" height="NUMBER" name="stuff" style="position:absolute;left:NUMBERpx;top:NUMBERpx;" allowtransparency="true" style="FILTER: chroma (color=FFFFFF)">

2. change the "FFFFFF" into another hex code color if other parts of your layout is FFFFFF. it must be a color that you didnt use for your layout.
3. now go to your css sheet and put FFFFFF (or the color you chose) in the place where you would like to be transparent. here is an example of:

<!--BODY{
scrollbar-face-color: #36243A;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #36243A;
scrollbar-darkshadow-color: #36243A;
scrollbar-shadow-color: #36243A;
scrollbar-arrow-color: #000000;
scrollbar-track-color: #FFFFFF;
}
-->

and now your done! wasnt that easy?



Hope that helps anyone!



:brow:
:P
 
 
 
 
 
Ian Ian is offline
Rocket Scientist
Ian's Avatar
Join Date: Feb 2002
Location: Manchester, UK
Posts: 16,063
 
      17th Oct 2003
Cheers

I didnt realise this was possible, so I will have to give it a try tonight!
 
 
Senior Member
crazyguy_2k's Avatar
Join Date: Apr 2002
Posts: 102
 
      17th Oct 2003
if you use Microsoft Front page though

you will have to make the sub domains and then open them in notepad and paste

<body style=background-color:transparent>

in , becuase for some reason frontpage dont like it and just deletes it

but it werks
 
 
Captain Crunchie, Retired
muckshifter's Avatar
Join Date: Mar 2002
Location: In a Hovel
Posts: 19,956
 
      18th Oct 2003
Quote:
because for some reason FrontPage don’t like it and just deletes it
Front page is NOT a good idea ... its coding is terrible ... see me for a 'lone' of Dreamweaver Matt, and then see what you can do.

 
I'm not grouchy by nature, it takes constant effort.



Flickr

Every day I beat my own previous record for number of consecutive days I've stayed alive.
 
 
Senior Member
crazyguy_2k's Avatar
Join Date: Apr 2002
Posts: 102
 
      18th Oct 2003
ok then , but i start work this monday so it wil, have to b on a week end or something
 
 
Ian Ian is offline
Rocket Scientist
Ian's Avatar
Join Date: Feb 2002
Location: Manchester, UK
Posts: 16,063
 
      18th Oct 2003
Frontpage isn't too bad - Dreamweaver is generally better though

Dreamweaver is great for complex coding and for more advanced users (if you use iframes and coding, as you are). Frontpage is ideal for people who don't know what they are doing though
 
 
Senior Member
crazyguy_2k's Avatar
Join Date: Apr 2002
Posts: 102
 
      18th Oct 2003
Quote:
Originally posted by Ian Cunningham
Frontpage isn't too bad - Dreamweaver is generally better though

Dreamweaver is great for complex coding and for more advanced users (if you use iframes and coding, as you are). Frontpage is ideal for people who don't know what they are doing though
ok thanks lol

this is realy my first site, (3rd layout though) so first off i didnt know what i was doing , i just woke up one morning and said to myself i gona make a site :crazy:

so i asked my firends what programmes to use, and one suggested frontpage, which his site looks great

so that why i used forntpage lol
 
 
Senior Member
crazyguy_2k's Avatar
Join Date: Apr 2002
Posts: 102
 
      2nd Dec 2003
Well when i used the iframe on geocities and the page builder, i just left that part out i kept it within the script but never filled andthing in or took anything out!

then once the script is inserted make the blue box thingy which contains the script the size on which u set the iframe to be and just use that as a template to where on the page the iframe would go.


hope it helps!
 
 
New Member
Join Date: Mar 2004
Posts: 1
 
      23rd Mar 2004
Nice, This is what I was looking for.

But how could you load with a link or hotspot an other page into the iframe?
 
 
New Member
Join Date: Jun 2004
Posts: 1
 
      16th Jun 2004
So far so good for a transparent IFRAME.

However, I have a slightly different need. I have created an IFRAME, but the text inside the frame is very long. So, I wanna have a scrollbar inside the IFRAME. I tried the scrolling=true option but even then, I don't see any sing of the scroll bar. The only possible means to scroll down the text is to drag the mouse.

Could you tell me how to modify my code so that even though the IFRAME becomes transparent, the scrollbar remains visible?

I am using IE and I have no problem if this feature is compatible only to IE.
 
 
 
 
Closed Thread

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent Bitmap Drawn onto Transparent control NickP Microsoft VB .NET 3 11th Jul 2007 10:27 AM
Transparent Label over transparent user control problem Efkas Microsoft C# .NET 4 22nd Nov 2004 09:20 PM
Transparent label on transparent user control =?Utf-8?B?TGFuY2UgSm9obnNvbg==?= Microsoft Dot NET Framework Forms 1 27th Oct 2004 10:06 PM
Transparent areas of png image not transparent anymore David Cuthill Microsoft Excel Misc 3 5th Aug 2004 10:17 PM
How can I make a Form transparent? In effect, assigning a transparent BackColor? Stan Shankman Microsoft C# .NET 0 3rd Apr 2004 04:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:58 PM.