This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

iframe - White Background on Loading


  1. ConnecTED
    Member

    Hi,

    I have placed an iframe code inside to the following page:

    http://www.displaycalibrations.com/lightspace_order.html

    The problem is that during the form loading, for 1-2 seconds until the form is loaded, there is a white background.

    How can i change the color of that white background to another color?

    This is the code im using for this iframe:

    <iframe onload="javascript:parent.scrollTo(0,0);" height="2150" allowTransparency="false" frameborder="0" scrolling="no" style="width:900px; padding:20px 10px 20px 20px;
    border-style:solid;
    border-width:thick;
    background-color:#1c1c1c;
    margin-top: 10px;
    margin-bottom: 30px;
    border-color:#000000;"

    src="http://www.displaycalibrations.com/machform/embed.php?id=14256" title="LightSpace Home Cinema Software">LightSpace Home Cinema Software

    Thank you in advanced for your help :)

    Posted 11 years ago #
  2. AMurray
    Pro Member

    Initially in Firefox, I didn't notice the white flash of the background as you describe, but tried this in Safari and it did do as you say. I would say that once the page downloads once, it will load the page again on subsequent visits from the browser cache and therefore a faster load time and the white B/G momentarily would be less noticeable.

    Just a guess here, but try checking your form's theme - check the background specfiically and change it to the same as your iFrame.
    i.e. background: #1c1c1c;.

    What happens (just being curious) if you use a different embed code e.g. Javascript instead of iFrame? Does it do the same thing?

    Posted 11 years ago #
  3. ConnecTED
    Member

    The same form, but with added the password request, the white background is still visible there also.

    http://www.displaycalibrations.com/eecolor_partners_order.html

    the white background, it stays white, if you open a new tab to your browser and return to the form tab about, then it returns to your selected background color.

    Posted 11 years ago #
  4. AMurray
    Pro Member

    As reply above - I don't notice the white background in Firefox but in Safari, Opera and Chrome, it does come up briefly.

    No other suggestions to offer, except as before, try changing the background in the form's theme (your reply above doesn't mention if you have done this or not).

    Posted 11 years ago #

RSS feed for this topic

Reply