white background using the fixaspectresize

  • Hi every one

    It may be a stupid question for many of you but.... I'm getting crazy *wacko* .

    Now I'm not a great expert of html coding and I find the sample difficult to understand.

    Anyhow I did change my background color in the html code from black to white,easy so far, after I did implement the fix aspect resize to my xml file.

    Now what happen is that it seam that this function has its own background color which is black.

    Does any one know how to change it in to white??????

    Thanks

  • the body background is white, but you have a flash background to. Which for krpano is black.

    You can change this too,

    by default this is the code in your html:

    <script type="text/javascript" src="swfkrpano.js"></script>

    Code
    <script type="text/javascript">
    
    
    	var swf = createswf("krpano.swf");
    	swf.passQueryParameters();
    	swf.embed("krpanoDIV");
    
    
    </script>

    createswf supports 5 parameters

    1: path to krpano swf
    2: id of krpano swf (default is krpanoSWFObject)
    3: width default 100%
    4: height defailt 100%
    5: background-color default #000000 (black)

    so all you have to do to change the code to

    Code
    <script type="text/javascript">
    
    
    	var swf = createswf("krpano.swf","krpanoSWFObject","100%","100%",#FFFFFF);
    	swf.passQueryParameters();
    	swf.embed("krpanoDIV");
    
    
    </script>
  • Hy Zephyr, sorry for the late replay I just got to try your code today.

    There is one problem: In my HTML code I cannot find the part

    Quote

    <script type="text/javascript">

    var swf = createswf("krpano.swf");
    swf.passQueryParameters();
    swf.embed("krpanoDIV");

    </script>

    Now I did try to play and change my script tag but with the only result of turning every things white.

    Here is my HTML code, why is it different? and do you know how to change the script tag?

    Thanks

    *smile* *smile* *smile*

    Daniel25

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!