Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 1 times, last edit by "Tuur" (Nov 17th 2010, 6:23pm)
oke got that working..
but..
mmm...
i try this:
<plugin name="info" url="btn_info.png" visible="true" keep="true" align="center" x="0" y="0" scale="1" onclick="set(plugin[info].visible,false)" devices="desktop" />
<plugin name="info2" url="btn_info.png" visible="true" keep="true" align="center" width="80%" height="prop" onclick="set(plugin[info2].visible,false)" devices="iphone | ipad | android | mobile | tablet" />
it seems not to work...
and
i like to trigger an action in the onstart intro(); but i want to happen that only when device is desktop else load1();

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<script>
var viewer = createPanoViewer({swf:"krpano.swf", id:"krpanoSWFObject", target:"krpanoDIV"});
//viewer.useHTML5("whenpossible"); // incomment to use the HTML5 krpanoJS viewer always when possible (Safari5)
if( viewer.isDevice("iPhone|iPod|Android") )
viewer.addVariable("xml", "krpano_mobile.xml");
else
viewer.addVariable("xml", "krpano.xml");
viewer.embed();
</script>
|