|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<script src="swfobject/swfkrpano.js"></script>
<div id="container">
<div id="panoDIV" style="height:100%;">
<script>
embedpano({target:"panoDIV",swf:"build.swf"});
embedpano.set(hotspot[0].url, "www.website.com/1.jpg");
//change the hotspot image here
</script>
|
|
|
Source code |
1 2 3 |
var viewer = createPanoViewer({target:"panoDIV",swf:"build.swf"});
viewer.addVariable("hotspot[NAME].url", "1.jpg");
viewer.embed();
|
First note - createPanoViewer() and embedpano() is technically exactly the same!What if I use
embedpano({target:"panoDIV",swf:"build.swf"});
How do addVariables() through that?
|
|
Source code |
1 2 3 |
var variables = {};
variables["hotspot[NAME].url"] = "1.jpg";
embedpano({target:"panoDIV",swf:"build.swf", vars:variables });
|
yes, it can be related to used xml structure of course!Or is this related to Kolor PTP program?
have you copied the krpano.license to the folder of the krpano.swf?I downloaded the examples from the javascript interface documentation and I get a text "license error" on my local and online server. (I might post a thread on this later or something, please ignore this for now)
|
|
Source code |
1 2 |
<!-- Generated By Kolor Panotour 1.8.0 --> <krpano version="1.0.8.14" logkey="false"> |
|
|
Source code |
1 2 3 4 |
<hotspot name="spot0" onclick="closeallobjects();if(flying == 1.0, flyback(spot0), flyout(spot0) );" url="builddata/graphics/spots/spot0.png" distorted="true" ath="44.0311" atv="-5.2106" width="84" height="8" flying_width="728" flying_height="90" backup_width="84" backup_height="8" flying="0" backup_rx="20.4057" backup_ry="0.409675" backup_rz="-2.24183" rx="20.4057" ry="0.409675" rz="-2.24183" /> |
when you want to use the 'vars' object, yes, then just you use the latest krpano viewer and embedding files.I'm currently using Kolor Pantour Pro 1.8 to generate my swf,xml, and html files. Should I use the actual
krpano Tools 1.0.8.15
when that 'build0.xml' is the first pano, then it should work,Build0.xml has the hotspot properties I want to control