panorama software,virtual tour software
Alternate Text
Joined: 2010-12-17
Send Msg:
Posts: 61
2012-03-27
#1

preloader for each scene

hi I would like to have a preloader for each scene; the proble is that in one scene I have two video and whe you run the scene some bottons doesnt work till a few seconds; does why i would like a preloader scene for each one.
How could I do that?

Alternate Text
Joined: 2008-11-10
Send Msg:
Posts: 315
2012-03-27
#2

Maybe something like this will help

Here is a sample of the code it will generate

<script language="JavaScript">"
function preloader()
{
      // counter    
      var i = 0;

      // create object    
      imageObj = new Image();
     
      // set image list    
      images = new Array();
images[0]="http:\\webnamehere.com\your files location ...\your pano name1.jpg"
images[1]="http:\\webnamehere.com\your files location ...\your pano name2.jpg"
images[2]="http:\\webnamehere.com\your files location ...\your pano name3.jpg"
images[3]="http:\\webnamehere.com\your files location ...\your pano name4.jpg"
images[4]="http:\\webnamehere.com\your files location ...\your pano name5.jpg"
images[5]="http:\\webnamehere.com\your files location ...\your pano name6.jpg"
  

 // start preloading
      for(i=0; i<=6; i++)
       {
           imageObj.src=images;
       }
}
</script>


Lee Scott - Nikon D3/D300/D5000 - |shaved Nikkor 10.5 mm| Manfrotto 055XPROB tripod /322RC2 Grip - Mrotator TCS |CS5 | PW7 & TW6.5 Pro
----
To err is human ... to not try is just plain lazy
Alternate Text
Joined: 2010-12-17
Send Msg:
Posts: 61
2012-03-28
#3
thanks a lot
and where I have to put javascript?

Alternate Text
Joined: 2008-11-10
Send Msg:
Posts: 315
2012-03-28
#4
You would put it in the beginning of the file you'd call the index.htm
Your TW creates 2 htm files one has this code in it
"Note"
"1. Please click the following hyperlink to view virtual tour."
"2. How to embed this virtual tour in my web page?" etc...

Well you put it in other file after the <meta - Tag and <title>
Before the following
"<script type="text/javascript" src="swfobject.js"></script> "

Do you have a link to the site your talking about?

Lee Scott - Nikon D3/D300/D5000 - |shaved Nikkor 10.5 mm| Manfrotto 055XPROB tripod /322RC2 Grip - Mrotator TCS |CS5 | PW7 & TW6.5 Pro
----
To err is human ... to not try is just plain lazy