Достался сайт, всё сделал, но не могу решить проблему с "3D туром", т.к. не силён в javascript. По возможности объясните мне на пальцах что к чему. Прикрепляю исходник HTML:
<script type="text/javascript" src="swfobject.js"> </script>
<div id="flashcontent" style="height: 540px;width: 700px;margin: 0 auto;" onmousewheel="return false;">
To view virtual tour properly, Flash Player 9.0.28 or later version is needed.
Please download the latest version of <a href="http://www.adobe.com/go/getflashplayer" target="_blank">Flash Player</a> and install it on your computer.
</div>
<script type="text/javascript">
var jsReady = true;
function isJsReady() {
return jsReady;
}
function pageInit() {
jsReady = true;
}
function thisMovie(movieName) {
return document.getElementById(movieName);
}
function changeSceneOnLoad(){
var panoid=window.location.search.split("&")[0];
if(panoid.indexOf("firstscene") != -1)
{
panoid = panoid.split("=")[1];
}
if(panoid)
{
if(thisMovie("sotester").twAPI){
setTimeout(function(){thisMovie("sotester").twAPI("switchToScene", panoid);},500);
}else{
setTimeout(changeSceneOnLoad,1000);
}
}
}
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject ("/flash/twviewer.swf", "sotester", "100%", "100%", "9.0.0", "#FFFFFF");
so.addParam("allowNetworking", "all");
so.addParam("allowScriptAccess", "always");
so.addParam("allowFullScreen", "true");
so.addParam("scale", "noscale");
so.addParam("wmode", "direct");
//<!-%% Share Mode %%->
so.addVariable("lwImg", "");
so.addVariable("lwBgColor", "255,255,255,255");
so.addVariable("lwBarBgColor", "255,255,255,255");
so.addVariable("lwBarColor", "255,0,255,0");
so.addVariable("lwBarBounds", "-240,-120,480,8");
so.addVariable("lwlocation", "7");
so.addVariable("lwShowLoadingPercent", "true");
so.addVariable("lwTextColor", "255,0,0,0");
so.addVariable("iniFile", "config_Project3.bin");
so.addVariable("progressType", "0");
so.addVariable("swfFile", "");
so.addVariable("percentType", "0");
so.addVariable("sizeFile", "filesize.txt");
so.addVariable("href", location.href);
so.addVariable("lwbounds", "<!-%% videobounds %%->");
so.write("flashcontent");
changeSceneOnLoad();
// ]]>
</script>