basic embedding help

  • Hi guys,.how would I change this code(produced by the droplet) to allow simple embedding of a size of say 640 x 580 ,..i added these to var swf but had problems,...I'm guessing I need changes to krpanodiv as well(from 100%), but have been unsuccessful with finding the correct parameters. Any advice or other alternatives would be appreciated,..thanks

    Rob


    <html>
    <head>
    <title>krpano.com - CUest_sphere</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <style>
    html { height:100%; }
    body { height:100%; overflow: hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFFFF; background-color:#000000; }
    a{ color:#AAAAAA; text-decoration:underline; }
    a:hover{ color:#FFFFFF; text-decoration:underline; }
    </style>
    </head>
    <body>

    <div id="krpanoDIV">
    <noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
    </div>

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

    <script type="text/javascript">

    var swf = createswf("krpano.swf","krpanoSWFObject");
    swf.addVariable("xml","CUest_sphere.xml");
    swf.embed("krpanoDIV");

    </script>

    </body>
    </html>

  • I think you just need to adjust this line...

    Code
    body { height:100%; overflow: hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFFFF; background-color:#000000; }

    ... and change this...

    Code
    background-color:#000000;

    to something like...

    Code
    background-color:#ffffff;

    ... or to whatever color you want.

    #000000 = black

    #ffffff = white

    or get creative and find some different colors here http://www.colorschemer.com/online.html

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!