Hi,
For search engines to be able to crawl the contents of textfields inside a virtual tour, I'd like to let krpano grab the contents of a div-element and put it in a data-element. I thought this code (line 8) would do it, but it seems it doesn't:
Code
<div id="pano">
<script>
var viewer = createPanoViewer({swf:"tour/engine/krpano.swf", target:"pano"});
viewer.addVariable("license","tour/engine/license.xml");
viewer.addParam("allowFullScreen","true");
viewer.addParam("allowScriptAccess","always");
viewer.addVariable("xml", "tour/tour.xml?t=" + new Date().getTime());
viewer.addVariable("data[divname].content", document.getElementById('divname').innerHTML);
viewer.embed();
</script>
</div>
<div id="divname">
<h1>Title</h1>
<br>
<p>Text</p>
</div>
Alles anzeigen
Does anyone have any suggestions?
Thanks!