Sie sind nicht angemeldet.

1

Dienstag, 25. Mai 2010, 17:41

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>

2

Dienstag, 25. Mai 2010, 17:47

Hi Rob,

Try this for example:

Quellcode

1
2
3
var swf = createswf("krpano.swf","krpanoSWFObject","640","580");
 swf.addVariable("xml","CUest_sphere.xml");
 swf.embed("krpanoDIV");


SAlut.

3

Dienstag, 25. Mai 2010, 18:33

thanks michel for the speedy help,

that resizes, but I'm still getting a black screen all around it,....do I need to adjust the settings of the krpanodiv???

rob

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »rbackhaus« (25. Mai 2010, 20:40)


Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

4

Donnerstag, 27. Mai 2010, 08:33

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

Quellcode

1
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...

Quellcode

1
background-color:#000000;


to something like...

Quellcode

1
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

5

Freitag, 28. Mai 2010, 13:05

Thanks gray,...had in my mind the black was somehow part of the viewer,.....not simply the background,...thanks again.

Ähnliche Themen