You are not logged in.

rouillip

Beginner

  • "rouillip" started this thread

Posts: 39

Location: Paris

Occupation: developer

  • Send private message

1

Sunday, December 11th 2011, 9:36am

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

Wednesday, December 14th 2011, 6:18pm

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:

Source code

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

or

Source code

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


best regards,
Klaus