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 ?

  • 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:

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


    or

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

    best regards,
    Klaus

Jetzt mitmachen!

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