|
-
Dec 13th, 2002, 01:07 PM
#1
Thread Starter
Lively Member
Clear Background
Hi
I'm trying to make a clear background on my page. I'm doing this as I am using an Iframe to load the other pages into the main one, and want a 'background' image behind the Iframe. However, I have run into a problem. I cant get it to work.
Any ideas how to do it? I've tried using a CSS, and I'm sure this is the way to go, but I cant get it to work
Cheers in advance,
James
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 02:16 PM
#2
Frenzied Member
Not quite sure what you mean... you want the image to show through the iframe?
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 02:18 PM
#3
Thread Starter
Lively Member
lol. damn. Why couldnt I have put it as simply as that? yup. Hit the nail right on the head 
James
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 02:22 PM
#4
Frenzied Member
I don't think this is possible... as it is a seperate frame. (But I have done what has been concidered impossible many many times).
Is the data appearing in the iframe supposed to show? (I ask because I use iframes to do processing and when the app is live I just set display:none; in the style)
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 02:26 PM
#5
Thread Starter
Lively Member
Yeh, I want the image to show through the iframe, but with the text on top, so that the image is almost like a watermarked image. I want to do it THIS way because it cuts down loading times on each page - I'm trying to keep each page as small as possible
James
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 02:33 PM
#6
Frenzied Member
try allowtransperancy="true"
http://msdn.microsoft.com/library/de...ansparency.asp
may be what you are looking for
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 02:47 PM
#7
Thread Starter
Lively Member
hmm... I cant get it to work, but I'm sure its something that I'm mucking up.. do you mind taking a look at the site?
www.darkflight.com/Planned
thanks for your help,
James
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 02:56 PM
#8
Frenzied Member
I havent gone completely through it but what is it that you want to show through the iframes?
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 02:58 PM
#9
Thread Starter
Lively Member
The code for the iframe and the image is this:
<iframe src="/Planned/main.htm" allowTransparency="true" name="content" scrolling="auto" height="100%" width="100%"><img src="images/blurr3.jpg" width="100%" height="100%"></iframe>
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 03:07 PM
#10
Frenzied Member
try changing
<BODY STYLE="background-color:" allowTransparency="true">
to
<BODY STYLE="background-color: transparent">
in main.htm
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 03:11 PM
#11
Thread Starter
Lively Member
Nope.... the image still doesnt show through........ (Am I being a pain in the arse or what)
Lol.
Seriously, thanks a lot for your help 
James
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 03:26 PM
#12
Thread Starter
Lively Member
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 03:29 PM
#13
Frenzied Member
Sorry it took so long to respond... I kept getting "unable to find server" or whatever on VBF... let me check some more.
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 03:33 PM
#14
Frenzied Member
two ideas...
just for kicks try opening the iframe w/o the page to see if the image is showing.
<iframe allowTransparency="true" name="content" scrolling="auto" height="100%" width="100%"><img src="images/blurr3.jpg" width="100%" height="100%"></iframe>
or try taking out the allowtransparency from the iframe
<iframe src="/Planned/main.htm" name="content" scrolling="auto" height="100%" width="100%"><img src="images/blurr3.jpg" width="100%" height="100%"></iframe>
Michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 03:40 PM
#15
Thread Starter
Lively Member
Neither of them display the image in the background....
Without the page loading, there's just a white background
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 03:43 PM
#16
Frenzied Member
why not just add the image to the background of main.htm?
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 03:46 PM
#17
Thread Starter
Lively Member
I may end up having to do that
Its all down to loading times -
The more I put on each page, the longer it takes to load. If I keep just the one image on the background, it only has to load once. It also cuts down on the code needed to keep the image stationary in the background.
Thanks,
James
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 03:48 PM
#18
Frenzied Member
howabout adding the image to the background style of the iframe?
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 03:50 PM
#19
Thread Starter
Lively Member
How would I do that..?
Sorry for the ignorance.... lol.... Not too good with Iframes at the best of times
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 13th, 2002, 03:54 PM
#20
Frenzied Member
no problem... sorry i didn;t post it at first 
Code:
<iframe src="main.htm" allowTransparency="true" name="content" scrolling="auto" height="100%" width="100%" style="background-image: url(images/blurr3.jpg)"></iframe>
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 03:56 PM
#21
Thread Starter
Lively Member
-
Dec 13th, 2002, 03:58 PM
#22
Frenzied Member
cool sorry it took so long to get there
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 13th, 2002, 03:59 PM
#23
Thread Starter
Lively Member
lol
's ok
I gotta go now, but I'll add ya in the morning
Cheers once again,
James
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|