Results 1 to 12 of 12
  1. #1
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Background colors

    I've got a frame that inserts into most of the pages on my website. The code on each page that pulls this frame onto the page is:

    <center><iframe src="page_links.htm" frameborder="no" height="225"
    scrolling="no" width="600"></iframe></center>


    There is no "bodycolor" setting on the "page_links.htm" page. As such whatever is set for the body color on an individual page on the website should show up as the background to "page_links.htm" when it is inserted as a frame.

    This is actually what happens in Netscape.....it works just fine.

    However, in Internet Explorer this is not the case. On my pages with a beige background it seems to be working as it should. For an example scroll down to the bottom of:

    http://www.curvedmouldings.com/curves.html

    But, on my pages with a green background it isn't working, and the frame is showing up in the beige color. For example scroll down to the bottom of:

    http://www.curvedmouldings.com/projects1.html

    Any suggestions as to why it would work in Netscape an not Internet Explorer?

    Thanks,
    BH Davis

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Background colors

    Have a look at this.

    Using IFRAME Elements
    Regards
    John



  3. #3
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Background colors

    So, it looks like if I add the <ELEMENT ALLOWTRANSPARENCY ... > equals TRUE statement that should allow the page background color to show through. If that is correct will it have a negative impact upon Netscape?

    Also, does that get added to the top of my "page_links.htm" frame or into the code on each webpage that the frame inserts into?

    Thanks,
    BH Davis

  4. #4
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Background colors

    In Page_Links.htm change the Body to:
    <BODY style="COLOR:rgb(93,0,0); BACKGROUND-COLOR:Transparent" vLink=#0000ff aLink=#0000ff link=#0000ff >

    and in Other files such as Projects1.htm change the iframe to:

    <IFRAME src="page_links.htm" ALLOWTRANSPARENCY="true" frameBorder=no width=600
    scrolling=no height=225>

    When I tested this it worked in IE, and still worked in Firefox.
    Regards
    John



  5. #5
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Background colors

    Thank you.........thank you ........and thanks again!

    I genuinely appreciate your taking the time to test that out! I will make the change (a lot of work as there are on the order of 75 pages on the site to adjust) over the next few days if I can find the time.

    Best regards,
    BH Davis

  6. #6
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Background colors

    Change a couple to satisfy yourself it works OK first.

    Does the programme you use for your web site have a global search and replace function?

    I use Homesite and it has "Extended Replace" which will search and replace all files within a folder.
    Regards
    John



  7. #7
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Background colors

    John (is it "John"?),

    Thanks for all the help. I did a test and it solves the problem without causing other problems in Netscape.

    I just use Netscape Composer because it is right there in Netscape. I don't think it has a global search and change function.

    It looks like Homesite is an Adobe product. There is a trial download......do you know if that will have the search function?

    Thanks,
    BH Davis

  8. #8
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Background colors

    Hi again

    Whilst agreeing with John's answer, I remember the reason we put iframes in your website was to save you time and effort when your links changed.

    If you have 75 pages on your site I think we need to start cascading style sheets or referencing a style tag. I suggest this is a better option

    <head>

    ........

    <style>
    body {

    color:#5D0000;
    background-color:#FFFFFF}
    a:link {
    color: #0000ff;
    }
    a:visited {
    color: #0000ff;
    }
    a:hover {
    color: #0000ff;
    }
    a:active{
    color: #0000ff;
    }
    </style>
    </head>

    This style coding is more compliant but I shall be very very careful as the ALLOWTRANSPARENCY in iframes is a deprecated attribute in HTML now and is not supported in most modern browsers
    Jerry

  9. #9
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Background colors

    Yes it is John.

    It looks to me that the download you can get from here would have the full Search and Replace function, but I have not downloaded it to test it.
    Regards
    John



  10. #10
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Background colors

    I thought I posted this last night, but I guess it didin't register for some reason.

    Jerry.......I"m afraid you lost me with that. Is the code something to be added to the page_links.html code or each individual webpage where it calls in the frame?

    It sounds like you're saying the ALLOWTRANSPARENCY" command should be avoided because it is being phased away.

    Thanks,
    BH

  11. #11
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Background colors

    Hi there

    I have a conundrum to think through here and now that I have had a chance to think it over more I have another cunning plan. At present it appears your site has white pages and green/grey pages and you have a html page which you use inside an iframe (previously disgussed). I am fine with that <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    You have a site with 75 (ish) pages which you would like the iframe(d) page to show. You will have to make 75 changes to all your pages. Why not have 2 html pages that contain the links that sit in your iframes, one white, the other green/grey, same links.

    The code that John sent you (sorry John) is out of date and will not be recognaised by newer version browsers. So cutting through my rambling split your page sets have a white iframe html page for white pages and a green/grey iframe html page for green/grey pages and then we don't have to worry about out of date tag attributes <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    So ignore the style coding above....it is a lot to change on such a big site.
    Jerry

  12. #12
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Background colors

    Jerry,

    Thanks for the input. I actually had thought of that but wanted to see if there was a "correct" way to pull it off. Now that the "pros" have suggested that dualage_links.htm" setup I'll look at it more closely. I could pull it off by changing only the cream colored (not white actually......not that it's an isue) pages. ...... there are only about 10 of those.

    Thanks for all your help!

    BH

Posting Permissions

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