Sie sind nicht angemeldet.

1

Dienstag, 22. Februar 2011, 09:53

multiple instance of krpano swf in one html page

hi,

I'de like to have multiple small pano in one html file. I don't manage to do that. I think i need multiple instance of swf krpano files ?

what shall i duplicate and rename in the standard code to have multiple swf objects ?
I must say that i use KRprotect to create my swf.
-------------------------------------
<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="http://visites.csnb.fr/swfkrpano.js']swfkrpano.js[/url]"></script>
<script type="text/javascript">
// <![CDATA[
var swf = createswf("first-pano.swf", "krpanoSWFObject", "170px", "70px");
swf.embed("krpanoDIV");
// ]]>
</script>
</div>
--------------------------------------

When i create another var swf2 = createswf("second-pano ...
i doesn't show anything and the first pano doesn't load anymore.

thank's for help

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »ribouldingue« (22. Februar 2011, 15:26)


2

Dienstag, 22. Februar 2011, 20:21

I don't believe that can be technically done on one page. You could use an iframe and have a different page load there though.

Just a thought.

3

Dienstag, 22. Februar 2011, 21:23

Hi Jarred,

Today you're a little dizzy it seem *g* *rolleyes* ;-) *thumbup* ...

Ribouldingue,

Have a look at the javascript-interface\js-sync examples that comes inside the Krpano download... they are a perfect example of multiple instance of krpano swf in one html page...

Have fun ;-) !!.

SAlut.

4

Dienstag, 22. Februar 2011, 21:51

Sorry, I must have been thinking of something else. In fact, now I do remember even seeing two panos sync'ed together on the same page. Dooohh!!!!
Anyway, my apologies.

Jarred

5

Sonntag, 27. Februar 2011, 22:20

Have a look at the javascript-interface\js-sync examples that comes inside the Krpano download... they are a perfect example of multiple instance of krpano swf in one html page...
Ok, I've never seen the folder javascript-interface\js-sync
I meen I allways thought every sub filder of the krpano download was just the code of an example linked to krpano.html
so I did not browse in the subfolder to search for something else than the example in the krpano.html


well thank's for answer !
every questions should have this kind of solution...
bye bye
- the dizzy man -