Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: IFRAME Question

  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IFRAME Question

    Thought I'd ask before trying this as it may prove quite awkward with the layout of my site!

    Is it possible to make an IFRAME have a fixed background image. And then make every page that opens on it transparent

    ie using -
    background="#"

    in the <body> tag

    I know I could add the background image to each page, but I don't want it disappearing everytime a page loads.

    Have I got this correct?

    If so, could someone let me know the tags I need to use in the <IFRAME> tag.

    If anyone can give me ideas as to how I could do this please let me know. I would have tried it myself, but my site is a little too complex to test it on!

    Please help if you can
    Golden Eagle

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    You could try two Iframes one on top of the other



    <iframe src="iframe1.htm" allowtransparency="true" style="position:absolute;left:100;top:100; z-index:2"></iframe>
    <iframe src="iframe2.htm" frameborder="no" scrolling="no" style="position:absolute;left:100;top:100"></iframe>



    Unless you want to go with layers and innerText,


    or position a table with your background then have the iframe over the top with the "allowtransparency"

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks I'll give it a try!

  • #4
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    that seems like a kind of convoluted way of doing it, to me. how about putting the iframe inside of a div, making the iframe transparent, and giving the div the background?

    <div style="background-image: url('somebackground.gif');">
    <iframe allowtransparency="true">
    </iframe>
    </div>
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    it was just a few thoughts going round in my head.

    All depends how extravagant Golden_Eagle wants to be



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •