Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
If you check the tour in members showcase, Culture and the frog, you`ll see that it may be done with swfadress.
I learn the URL Rewriting like SWFAddress, do you think we can use it or do you have a solution ??
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
<script type="text/javascript">
// <![CDATA[
if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var so = new SWFObject("krpano.swf?pano=view.xml", "krpanoSWFObject", "100%", "100%", "9.0.28","#FFFFFF");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","always");
so.addParam("wmode","window");
//so.addVariable("pano", getQueryParamValue("pano"));
// pass all external parameters
var q = document.location.search || document.location.hash;
if(q)
{
var params = q.substring(1).split("&");
for(var i=0; i<params.length; i++)
{
var param = params[i];
var istgl = param.indexOf("=");
var pname = param.substring(0,istgl);
var pval = param.substring(istgl+1);
if (pname == "krpanologo")
{
// shortcut to hide the logo
pname = "plugin[krpanologo].visible";
}
so.addVariable(pname, pval);
}
}
so.useExpressInstall('swfobject/expressinstall.swf');
so.setAttribute('xiRedirectUrl', window.location);
if ( so.write("krpano") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
}
else
{
document.getElementById("krpano").innerHTML = '<table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Adobe Flash Player 9 needed<br><br><br><a href="http://www.adobe.com/go/getflashplayer/" target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" BORDER="1"></a><br>...click here to download...<br><br><br><br></center></td></tr></table>';
}
// ]]>
</script>
|
doesn't update the browser address bar, I don't saw it
Dieser Beitrag wurde bereits 5 mal editiert, zuletzt von »jpdeglet69« (26. Januar 2011, 11:41)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »jaydee« (26. Januar 2011, 12:12)
Jaydee,Hi, jpdeglet69
Please, review scene.mode.xml code and documentation.
In the XML code, pano2 is defined as root pano, that is why file:///h:/test/scene.mode.html and file:///h:/test/scene.mode.html#/pano2 is the same linkage to the second pano. And that is why pano has not been reloaded.
To make a long story short, at this time, plugin maps an external xml file with the pano (or scene with the pano) to the specific url, so it can be shared with others. There is no support for mapping url to particular pano view properties. I'm working on this feature now.
Offline examples denostrates all of the plugin features. Why are you need an online demo?