Sie sind nicht angemeldet.

rouillip

Anfänger

  • »rouillip« ist der Autor dieses Themas

Beiträge: 39

Wohnort: Paris

Beruf: developer

  • Nachricht senden

1

Sonntag, 11. Dezember 2011, 09:36

Krpano and javascript on Glaxy tab

I have a file tour.html embedding Krpano tour.xml file to manage the various scenes.

Each scene have an "info" button which set to visibility : visible a layer (<div id='info'>) defined in the tour.html. This is done by a javascript function included in tour.html,

function voir() {
e=document.getElementById('info');
e.style.visibility="visible";
}


When visible the layer include a "close" button which permit to hide the layer, via a javascript function included in tour.html

<a href="javascript:cacher()><img src="close.png"></a> or <img src="close.png" onClick="cacher()">

function cacher() {
e=document.getElementById('info');
e.style.visibility="hidden";
}

This works very well in Firefox, Safari, iphone, ipad, but not great with chrome (problems with the buttons not working)

When i try to play it on my galaxy tab, the "info button" works well, it open (show) the layer but the "close" button doesn't works and i cannot close (hide) the layer

Is it something special with the Galaxy navigator ( i suppose some kind of chrome mobile) wihich should be no compatible with Krpano ?

2

Mittwoch, 14. Dezember 2011, 18:18

Hi,

the mixing/overlapping of html and flash elements is not possible by default (although in some browsers like Firefox its partially working)

use the Flashplayer wmode=opaque setting to make that possible everywhere,
e.g. by:

Quellcode

1
viewer.addParam("wmode","opaque");

or

Quellcode

1
 embedpano({swf:"krpano.swf",xml:"pano.xml",target:"panocontent",wmode:"opaque"});


best regards,
Klaus