Go Shopping Cart Site Map User Panel and Admin English Home

Home > Easypano Forum    Easypano Forum has been upgraded.

Easypano Forum


Welcome Guest Register Login Search The Forum Display List of Forum Members
 All Forums
  Tourweaver
 
Subject Topic: preloader for each scene Post Reply Post New Topic
Message posted by don_pancho on March-27-2012 at 5:17am
View don_pancho's Profile Profile   Search for other posts by don_pancho Search   Quote don_pancho Quote   Send Private Message Send Msg  
don_pancho
Avatar
Standard Member
Standard Member
Spain
December-17-2010
44 Posts
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?

Message posted by leescott on March-27-2012 at 4:46pm
View leescott's Profile Profile   Search for other posts by leescott Search   Visit leescott's Homepage www   Quote leescott Quote   Send Private Message Send Msg  
leescott
Avatar
Gold Member
Gold Member
United States
November-10-2008
314 Posts

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

Message posted by don_pancho on March-28-2012 at 3:22pm
View don_pancho's Profile Profile   Search for other posts by don_pancho Search   Quote don_pancho Quote   Send Private Message Send Msg  
don_pancho
Avatar
Standard Member
Standard Member
Spain
December-17-2010
44 Posts
thanks a lot
and where I have to put javascript?

Message posted by leescott on March-28-2012 at 7:23pm
View leescott's Profile Profile   Search for other posts by leescott Search   Visit leescott's Homepage www   Quote leescott Quote   Send Private Message Send Msg  
leescott
Avatar
Gold Member
Gold Member
United States
November-10-2008
314 Posts
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

If you wish to post a reply to this thread you must first Login
If you are not already registered you must first register

Forum Jump Post Reply Post New Topic
Printer Friendly Version Printable version

Powered by: - Web Wiz Guide Discussion Forums