Answer the question
In order to leave comments, you need to log in
Why doesn't SWFObject work?
I got the site, I did everything, but I can’t solve the problem with the "3D tour", because not strong in javascript. If possible, explain to me on the fingers what's what. I am attaching the HTML source:
<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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question