Results 1 to 23 of 23

Thread: Clear Background

  1. #1

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116

    Exclamation 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)

  2. #2
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  3. #3

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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)

  4. #4
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  5. #5

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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)

  6. #6
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  7. #7

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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)

  8. #8
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  9. #9

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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)

  10. #10
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  11. #11

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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)

  12. #12

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    Any more ideas?



    James
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

  13. #13
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  14. #14
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  15. #15

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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)

  16. #16
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  17. #17

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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)

  18. #18
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  19. #19

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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)

  20. #20
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  21. #21

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    WOW cheers mate




    you are DEFINITELY going in the credits - it worked



    lol


    Thankyou SO much :


    James
    I
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

  22. #22
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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.

  23. #23

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    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
  •  



Click Here to Expand Forum to Full Width