You are not logged in.

1

Friday, June 22nd 2012, 5:05pm

pano load click to interace

Hi guys,

Currently when I open my pano in a browser, I need to click on the pano in order to interact. I want to remove the click and just have the pano be able to be interacted with immediately. I saw a similar question on this forum a year ago and I tried following it but my code is not working. Anyone can help?

In the HTML

Source code

1
2
<script src="swfkrpano.js"></script>
<div id="pano" style="width:100%; height:100%;">	<noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>	<script>		embedpano({swf:"krpano.swf", id:"krpanoSWFObject", xml:"MemorialHall.xml", target:"pano"});				function krpanofocus()		{			var krpano = document.getElementById("krpanoSWFObject");			krpano.focus();		}	</script>



In the XML

Source code

1
<krpano version="1.0.8.14" onstart="js( krpanofocus() );">



So when I open the error log it says javascript call krpanofocus() failed. What does js do exactly? I tried replacing js(krpanofocus()) with js(alert('im working')) to test and it gave me the same error. Thanks for the help!

This post has been edited 1 times, last edit by "annie.tallan" (Jun 22nd 2012, 5:21pm)


2

Saturday, June 23rd 2012, 12:37pm

Hi,

are you testing locally or online?

if locally, please see here:
http://krpano.com/docu/localusage/

best regards,
Klaus