panorama software,virtual tour software
Alternate Text
Joined: 2006-12-13
Send Msg:
Posts: 37
2008-01-16
#1

Resizing Browser window for Flash Tour

Hi Guys,

I have created some tours and the config files are as follows: What I need to do is edit this file so as to only open a Browser Window, just large enough, to display the tour. I do not want a large white space surrounding the tour when running.

Hope you can help

<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>Virtual Tour By 360virtual-tours.net</title>
 <style type="text/css">
 /* hide from ie on mac */
 html {
 height: 100%;
 overflow: hidden;
 }
 
 #flashcontent {
 height: 50%;
 }
 /* end hide */
 
 body {
 height: 100%;
 margin: 0;
 padding: 0;
 background-color: #FFFFFF;
 }
 </style>
 </head>
 <body leftMargin="0" topMargin="0" rightMargin="0" bottomMargin="0">
 <script type="text/javascript" src="swfobject.js"></script>
 <div id="flashcontent">
 To view virtual tour properly, Flash Player 9.0.28 or later version is needed.
 Please download the latest version of <a title="http://www.adobe.com/go/getflashplayer" target="_blank">Flash Player</a> and install

it on your computer.
 </div>
 
 <script type="text/javascript">
 // <![CDATA[
 var so = new SWFObject("twviewer.swf", "sotester", "750", "450", "9.0.28", "#FFFFFF");
 so.useExpressInstall('expressinstall.swf');
 so.addParam("allowNetworking", "all");
 so.addParam("allowScriptAccess", "always");
 so.addParam("allowFullScreen", "true");
 so.addParam("scale", "noscale");
 so.addVariable("lwImg", "VenueCymru_360Catseyes.gif");
 so.addVariable("lwBgColor", "255,0,0,0");
 so.addVariable("lwBarBgColor", "255,232,232,232");
 so.addVariable("lwBarColor", "255,117,117,117");
 so.addVariable("lwBarBounds", "150,360,450,8");
 so.addVariable("iniFile", "config_VenueCymru.xml");
 so.write("flashcontent");
 // ]]>
 </script>
 </body>
 </html>

 

Thanks RS360VT


R Scutt
360virtual-tours.net
Alternate Text
Joined: 2006-11-04
Send Msg:
Posts: 156
2008-01-16
#2

I usually do the browser window resizing in the link they click to view the tour.

Example,

<a title="#" onClick=javascript:window.open("http://www.cajunpalms.com/temp/cajun_palms_index.html",'_blank','status=yes,top=0,left=0,width=400,height=240');><img src="http://www.cajunpalms.com/temp/index.jpg" border=0></a>


Roadkill
Alternate Text
Joined: 2006-12-13
Send Msg:
Posts: 37
2008-01-16
#3

Hi Ron,

Would this also woek for Flash Tours?

I am setting up an autorun CD, using Autorun Max, for the client. So I presume the (http://......... would have to change to reflect the file location on the Autorun CD file structure.

 

Thanks for the prompt response....

 

Richard


R Scutt
360virtual-tours.net
Alternate Text
Joined: 2006-11-04
Send Msg:
Posts: 156
2008-01-16
#4
I never tried autorun CD, using Autorun Max. Smooth does though I think, maybe he can chime in when he gets a minute :)
Roadkill