I got some errors and would like to have some hints on how to best implement a virtual tour inside a joomla article.
I tried
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Parc Le'h Adventures</title>
<script type="text/javascript" src="http://www.luxmap.lu/scripts/p2q_embed_object.js">
</script>
<style type="text/css" title="Default">
body, div, h1, h2, h3, span, p {
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #000000;
}
body {
font-size: 10pt;
background : #ffffff;
}
table,tr,td {
font-size: 10pt;
border-color : #777777;
background : #dddddd;
color: #000000;
border-style : solid;
border-width : 1px;
}
h1 {
font-size: 18pt;
}
h2 {
font-size: 14pt;
}
.warning {
font-weight: bold;
}
</style>
</head>
<body>
<h1>Parc Le'h Adventures</h1>
<p>
<script type="text/javascript">
<!--
if ((window.p2q_Version) && (window.p2q_Version>=2.0)) {
var flashvars="";
p2q_EmbedFlash('images/stories/videos/U1334-1.1.1_fs.swf','640','360','allowFullScreen','true','FlashVars',flashvars);
// Check to see if the version meets the requirements for playback
if (!DetectFlashVer(9,0,0)) {
document.write('<p class="warning">This content requires Adobe Flash Player Version 9 or higher. '
+ '<a href="http://www.adobe.com/go/getflash/">Get Flash<\/a><\/p>');
}
} else {
document.writeln('<p class="warning">p2q_embed_object.js is not included or it is too old! Please copy this file into your html directory.<\/p>');
}
//-->
</script>
<noscript>
<p class="warning">Please enable Javascript!</p>
</noscript>
<!-- <table cellpadding="5" cellspacing="0">
<tr>
<td><b>Description</b></td>
<td>www.aventure.lu</td>
</tr>
<tr>
<td><b>Author</b></td>
<td>CTM S.A. [www.ctm.lu]</td>
</tr>
<tr>
<td><b>Date/Time</b></td>
<td>2010</td>
</tr>
<tr>
<td><b>Copyright</b></td>
<td>CTM S.A. [www.ctm.lu]</td>
</tr>
</table> -->
</body>
</html>
The VT is defined without a path structure to allow finding independant of client directory structure.
It works here
http://aventure.lu/images/stories/video ... .1_fs.html
I already changed in the code in the joomla article to find the basic swf file
Code: Select all
p2q_EmbedFlash('images/stories/videos/U1334-1.1.1_fs.swf';
How to get this result inside a joomla article.
I would really appreciate any support.
PS. the javascript is not a must have. Its just that I used the basic pano2vr template as a beginning point.
Thanks