" wird.
|
|
Source code |
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
<!DOCTYPE html>
<html>
<head>
<title>Navigations Test</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<table class="maintable">
<tr>
<td align="center" class="image">
<a href="#" target="_blank"><img src="pano_folder/spacer.gif" class="" width="150" height="60" border="" alt="" /></a>
</td>
<td width ="75%" align="Center" class="image">
<img src="pano_folder/spacer.gif" class="" width="450" height="60" border="" alt="" />
</td>
<td align="center" class="image">
<a href="#" target="_blank"><img src="pano_folder/spacer.gif" class="" width="150" height="60" border="" alt="" /></a>
</td>
</tr>
</table>
<table>
<script src="swfkrpano.js"></script>
<div id="pano" class="pano" align="center">
<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>
<!--Navigationsbilder Beginn-->
<tr>
<td align="center" class="image">
<img src="pano_folder/maerkplatz.jpg" class="image" width="100" height="85" onclick="loadpano('bild1.xml');" />
<br/>Bild 1
</td>
<td align="center" class="image">
<img src="pano_folder/spacer.gif" class="image" width="100" height="85" onclick="#" />
<br/>Bild 2
</td>
</tr>
<!--Navigationsbilder Ende-->
<script type="text/javascript">
if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var so = new SWFObject("krpano.swf","krpanoSWFObject","100%","100%","9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addVariable("xml", "test.xml");
if ( so.write("pano") )
{
var wheelfix = new SWFkrpanoMouseWheel(so);
}
}
else
{
document.getElementById("pano").innerHTML = '...Flashplayer needed...';
}
</script>
</div>
</table>
<script type="text/javascript">
// <![CDATA[
function krpano()
{
return document.getElementById("krpanoSWFObject");
}
function loadpano(xmlname)
{
krpano().call("loadpano(" + xmlname + ", null, MERGE, BLEND(1));");
}
// ]]>
</script>
</body>
</html>
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
<krpano onstart="ifnot(haveexternalinterface, error('ExternalInterface (Javascript Interface) not avaiable![br]Check your Flashplayer security settings:[br]http://krpano.com/docu/localusage/'));">
<action name="bild1">
zoomto(3.0,smooth(3,3,10));
wait(0.7);
tween(view.hlookat, 0.089006, 10.0);
tween(view.vlookat, 0.025460, 10.0);
tween(view.fov,0.099928, 10.0);
</action>
</krpano>
|
This post has been edited 1 times, last edit by "CMFA" (Apr 3rd 2012, 4:21pm)
Warum löst Du das nicht ganz einfach mit der krpano-eigenen stage-Funktion? Wäre kaum mehr als ein Einzeiler und hätte da fakto das gleiche Ergebnis wie das von Dir gepostete Beispiel
|
|
Source code |
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
<!DOCTYPE html>
<html>
<head>
<title>Navigations Test</title>
<link rel="stylesheet" type="text/css" href="skin/style.css" />
</head>
<body>
<table class="maintable">
<tr>
<td align="center" class="image">
<a href="#" target="_blank"><img src="pano_folder/spacer.gif" class="" width="150" height="60" border="" alt="" /></a>
</td>
<td width ="75%" align="Center" class="image">
<img src="pano_folder/spacer.gif" class="" width="450" height="60" border="" alt="" />
</td>
<td align="center" class="image">
<a href="#" target="_blank"><img src="pano_folder/spacer.gif" class="" width="150" height="60" border="" alt="" /></a>
</td>
</tr>
</table>
<table>
<script src="swfkrpano.js"></script>
<div id="pano" class="pano" align="center">
<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>
<!--Navigationsbilder Beginn-->
<tr>
<td align="center" class="image">
<img src="pano_folder/maerkplatz.jpg" class="image" width="100" height="85" onclick="lookto(0.000000,0.000000,1.000000, 10.0);" />
<br/>Ausgangsansicht
</td>
<td align="center" class="image">
<img src="pano_folder/maerkplatz.jpg" class="image" width="100" height="85" onclick="lookto(0.089006,0.025460,0.099928,10.0);" />
<br/>Märkischer Platz
</td>
<td align="center" class="image">
<img src="pano_folder/spacer.gif" class="image" width="100" height="85" onclick="lookto(0.114604,0.078475,0.099928, 10.0);" />
<br/>Schleusenspucker
</td>
</tr>
<!--Navigationsbilder Ende-->
<script type="text/javascript">
if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var so = new SWFObject("krpano.swf","krpanoSWFObject","100%","100%","9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addVariable("xml", "xml/rath.xml");
if ( so.write("pano") )
{
var wheelfix = new SWFkrpanoMouseWheel(so);
}
}
else
{
document.getElementById("pano").innerHTML = '...Flashplayer needed...';
}
</script>
</div>
</table>
<script type="text/javascript">
// <![CDATA[
function krpano()
{
return document.getElementById("krpanoSWFObject");
}
function getlookat()
{
var hlookat = Number( krpano().get("view.hlookat") );
var vlookat = Number( krpano().get("view.vlookat") );
var fov = Number( krpano().get("view.fov") );
document.getElementById("hlookat").innerHTML = hlookat.toFixed(2);
document.getElementById("vlookat").innerHTML = vlookat.toFixed(2);
document.getElementById("fov").innerHTML = fov.toFixed(2);
}
function lookto(toh, tov, fov)
{
krpano().call( "lookto(" + toh +"," + tov + "," + fov + ")" );
}
function lookat(fov)
{
krpano().set("movevectorz", fov);
}
// ]]>
</script>
</body>
</html>
|
|
|
Source code |
1 |
onclick="lookto(0.114604,0.078475,0.099928, 10.0) |
|
|
Source code |
1 2 3 4 5 6 7 |
<action name="bild1"> zoomto(3.0,smooth(3,3,10)); wait(1.0); tween(view.hlookat, 0.089006, 10.0); tween(view.vlookat, 0.025460, 10.0); tween(view.fov,0.099928, 10.0); </action> |
|
|
Source code |
1 |
lookto(0.114604,0.078475,0.099928, linear(10.0)); |
|
|
Source code |
1 |
lookto(0.114604,0.078475,0.099928, smooth(50,50,100)); |
|
|
Source code |
1 |
lookto(0.114604,0.078475,0.099928, tween(easeOutQuad,10)); |
|
|
Source code |
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
<!DOCTYPE html>
<html>
<head>
<title>Navigations Test</title>
<link rel="stylesheet" type="text/css" href="skin/style.css" />
</head>
<body>
<table class="maintable">
<tr>
<td align="center" class="image">
<a href="#" target="_blank"><img src="pano_folder/spacer.gif" class="" width="150" height="60" border="" alt="" /></a>
</td>
<td width ="75%" align="Center" class="image">
<img src="pano_folder/spacer.gif" class="" width="450" height="60" border="" alt="" />
</td>
<td align="center" class="image">
<a href="#" target="_blank"><img src="pano_folder/spacer.gif" class="" width="150" height="60" border="" alt="" /></a>
</td>
</tr>
</table>
<table>
<script src="swfkrpano.js"></script>
<div id="pano" class="pano" align="center">
<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>
<!--Navigationsbilder Beginn-->
<tr>
<td align="center" class="image">
<img src="pano_folder/maerkplatz.jpg" class="image" width="100" height="85" onclick="lookto(0.000000,0.000000,1.000000, 10.0);" />
<br/>Ausgangsansicht
</td>
<td align="center" class="image">
<img src="pano_folder/maerkplatz.jpg" class="image" width="100" height="85" onclick="lookto(0.089006,0.025460,0.099928,10.0);" />
<br/>Märkischer Platz
</td>
<td align="center" class="image">
<img src="pano_folder/spacer.gif" class="image" width="100" height="85" onclick="lookto(0.114604,0.078475,0.099928, 10.0);" />
<br/>Schleusenspucker
</td>
</tr>
<!--Navigationsbilder Ende-->
<script type="text/javascript">
if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var so = new SWFObject("krpano.swf","krpanoSWFObject","100%","100%","9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addVariable("xml", "xml/rath.xml");
if ( so.write("pano") )
{
var wheelfix = new SWFkrpanoMouseWheel(so);
}
}
else
{
document.getElementById("pano").innerHTML = '...Flashplayer needed...';
}
</script>
</div>
</table>
<script type="text/javascript">
// <![CDATA[
function krpano()
{
return document.getElementById("krpanoSWFObject");
}
function getlookat()
{
var hlookat = Number( krpano().get("view.hlookat") );
var vlookat = Number( krpano().get("view.vlookat") );
var fov = Number( krpano().get("view.fov") );
document.getElementById("hlookat").innerHTML = hlookat.toFixed(2);
document.getElementById("vlookat").innerHTML = vlookat.toFixed(2);
document.getElementById("fov").innerHTML = fov.toFixed(2);
}
function lookto(toh, tov, fov)
{
krpano().call( "lookto(" + toh +"," + tov + "," + fov + ")" );
}
function lookat(fov)
{
krpano().set("movevectorz", fov);
}
// ]]>
</script>
</body>
</html>
|
This post has been edited 1 times, last edit by "CMFA" (Apr 19th 2012, 5:21pm)
|
|
Source code |
1 |
... onclick="lookto(0.000000,0.000000,1.000000, 10.0);" /> |
|
|
Source code |
1 2 3 4 |
function lookto(toh, tov, fov)
{
krpano().call( "lookto(" + toh +"," + tov + "," + fov + ")" );
}
|

nein, nur die Aufrufe sind falsch,Ist meine grundsätzliche Umsetzung falsch?
ändere deine lookto Javascript Funktion z.B. zu:und wie kann ich das Problem nun richtig beheben?
|
|
Source code |
1 2 3 4 |
function lookto(toh, tov, fov, speed)
{
krpano().call("lookto(" + toh +"," + tov + "," + fov + ", tween(easeOutQuad,"+speed+"))");
}
|