I am a complete newbie to krpano and not a programmer to boot. I have been using FPP and had the iframe thing worked out. Now I am screwed. Don't have any idea how to do this. I read the thread and still don't know what to do.
I do, however have the same situation. All tours are hosted on our servers and we want to keep it that way. I need a full packet of code and some help screwing it together to get my old clients' tours working in krpano.
Example:
Cupecoy Condo Virtual tour page in FPP
This is the code from the client's page:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<table cellspacing="0" cellpadding="3" width="100%" border="0">
<tr>
<td style="text-align:left">
<span id="ctl00_ContentPlaceHolder1_lblDescription">To see other views and experience the dramatic impact of the full-screen virtual tour, please click on the |FULLSCREEN| icon in the image below. The small images on the navigation bar link to other panoramas. Zoom with the wheel on your mouse. If you have no wheel, find the |ZOOM| icon in the full-screen mode.
</span>
<p ”) used on a non-void HTML element. Ignoring the slash and treating as a start tag." class="error">/>
</td>
</tr>
<tr>
<td id="ctl00_ContentPlaceHolder1_cellVideo" align="center">
<!--Video Start-->
<iframe src ="http://www.venueview.com/panorama/h6/iframe_600x325.html" width="600" height="325" scrolling="no" frameborder="no"> <p>Your browser does not support iframes. View the video at its source: <a href="http://www.venueview.com/panorama/h6/iframe_600x325.html"> http://www.venueview.com/panorama/h6/iframe_600x325.html</a></p></iframe><br><br><br><br><br><br>
<!--Video End-->
</td>
</tr>
</table>
|
This is the target file on our server:
|
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
|
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”><head>
<title>H6 The Cliff at Cupecoy On the 'Gold Coast' of St Maarten</title>
<style>
<!--
/* hide from ie5 mac */
html {
height: 100%;
}
#flashcontent {
height: 325;
text-align: center;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
padding-top: 0px;
}
-->
</style>
<script type="text/javascript" src="base/swfobject.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15665095-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="flashcontent">
This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player 9.</a> Please, visit <a href="http://www.adobe.com/go/getflashplayer/">adobe.com</a> to install it
</div>
<script type="text/javascript">
var so = new SWFObject("base/fpp/pano.swf", "vv_pano", "600", "325", "6.0.65", "#323741");
so.addVariable("xml_file","base/_setup_h6.xml");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
</script>
</body>
</html>
|
I need to get help translating the whole mess so I can swap the FPP tour for the krpano tour without changing the code on the client site (if possible).
This is killing me since I have managed to translate my pans/tilts/zooms and timing from FPP to krpano with less trouble than I expected (many thanks to Klaus for the critical sequencing code) but I thought the iframe would be easy. OOPS!
HELP!!!!!
Stephen