You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#51 2012-02-05 09:36:44

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

Hi Galatea.. Yes, this is what the code html code that Gérald provided will do.. You do not have to set to _self. A window will open in your pano, then you click on this jpg and it will open your main page.. All you need to do is make sure you have your jpg graphic in a images folder as per the location in your html file, then use only last part of your html code.. Not the full url.. It works fine just using a jpg... You just have to play with the size of it.. to make it fit..

Destiny...

galatea wrote:

Hello Destiny, I want http://www.l-officina.net/ open in a new window.

Not in a new page but in a new window into panotour.

Inside Panotour I want to open a window to another window

thanks, good day

Galatea


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#52 2012-02-05 09:38:30

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

The html code is above. Gérald edited it for you.. and I provided another version.. its all there for you..

Destiny..

galatea wrote:

Hello Destiny

Can please write the html code?

Galatea


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#53 2012-02-05 09:44:25

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

Galatea, try using this.. its a little bit different... All you need to do is put the html address on the hotspot..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
<title>officinadue</title>
</head>
<body>
<a href="http://www.l-officina.net/">
<img style="border: 2px solid ; width: 638px;
height: 335px;" alt="" src="images/officina.png" align="left"/>
</a>
&nbsp;&nbsp;&nbsp;&nbsp; <br/>
</body>
</html>

Destiny...


galatea wrote:

Hello Destiny

Can please write the html code?

Galatea


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#54 2012-02-05 10:05:57

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

This it the html source code is used.. you can try this but you will need the Scripts folder with the java files.. These are actually automatically created in Dreamweaver.. I can send them to you if you want.. I must named the graphic "imageX.jpg" and the url is to your web site...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Destiny</title>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<a href="http://www.l-officina.net/"><img src="imageX.jpg" width="513" height="300" /></a>
</body>
</html>



Destiny


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#55 2012-02-06 09:07:04

bdd
Administrator
Registered: 2011-01-18
Posts: 622
Website

Re: Problem with HotSpot HTML

Hello,

If you want to call a JS function from a tour, this JS function should be in the tour scope.
In your exemple, I do not see any include of the shadowbox library in the HTML file of the tour.

the call to the shadowbox init, should be in the main HTML too.
In your case the shadowbox init is in the wrong HTML file. It is in the window you want to open  not in the HTML where lies the tour.

Regards,
Gérald

Offline

 

#56 2012-02-06 10:36:09

bdd
Administrator
Registered: 2011-01-18
Posts: 622
Website

Re: Problem with HotSpot HTML

What is the call you enter in PTP hotspot description ?

I do not see any function in your main HTML, that can be called in PTP.

If you look at the source code of the HTML page here : http://virtualworks.dk/tours/louisiana/big/pan1/
you'll see that there is a function "showPainting".



Code:

<script type="text/javascript">
    // <![CDATA[
        Shadowbox.loadSkin('classique', 'js/shadowbox/habillages');
        Shadowbox.loadLanguage('fr', 'js/shadowbox/langues');
        window.onload = Shadowbox.init;
        
        function showPainting(title, page)
        {
            var paintHeight = (window.innerHeight * 90) / 100;
            var paintWidth  = (window.innerWidth * 90) / 100;

            Shadowbox.open({
                player:'iframe',
                title:title,
                content:page,
                width:paintWidth,
                height:paintHeight,
                scrolling:"yes"
            });
            
            return false;
        }
        function CloseMyWindow() { top.window.close(); }
    // ]]>
  </script>

This function opens a shadowbox and takes 2 parameters : a title and "page".

The call to enter in hotspots "JS function call" field is someting like that :

Code:

showPainting(My Title, a/relative/path/to/a/page.html)

Offline

 

#57 2012-02-06 11:58:30

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

Hi Gérald

The first lines of the script in the CDATA are not relevant to me since its relates to langue and skins.. I took that part off and tried.. but no luck.. It will open the widow with no errors with or without the CDATA.. If I then click on the window it opens the contents.. I want the content to open in that window without having to click on it.. I really cannot see how the CDATA links.. My link on HTML in ptp is to open the shadowbox html file.. Since I removed the shadowbox java from that file, and put in within the main pano, the shadowbox does not transition anymore.. But if I leave it there I get errors..

Destiny


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#58 2012-02-06 13:02:57

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

Hi.. Ponie and fx.. yes.. I will be happy to help you.. When I work it all out.. oh hum.. not easy.. PAINFUL.. My knowledge of java script is not as good as most.. I just tinker with it.. I tend to do crazy things with it but don't fully understand how it all worked.. often get amazed that it worked.. LOL... My advice to you is to buy ptp so you can edit the xml.. Its the only real way to go.. Don't worry about me.. I was just getting tied and cranky over this java...

As soon as I have it all worked out I will send you an email with all the steps.. I have already sent you instructions on how to make some buttons also a few buttons to get you going.... wink

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#59 2012-02-06 13:41:43

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

Hi Gérald

I have had a look at what you suggested but fail to see how it can work.. If I put the shadowbox java in the main pano, .. One thing, the html window will not work as a stand-a-lone anymore.. I don't get the errors but it wont't go in either. Then I got thinking.. This is just one shadow window.. I want to be able to more than one in side the pano.. Therefore the shadow java has to remain inside the that html file.. Its what makes it all work.. When I open it, it works fine.. However, it will not open in ptp... If I use the CDATA to provide a link between the shadow window graphic and the pano, it wont't work... I have to use the shadow html file linked to the hotspot with is really the connection between the pano and shadowbox, but the tour doesn't like it.. I get errors.. This link show that it does work as it should..

http://www.destinyvirtualtours.com/Vide … owBox.html

However, If I remove the shadowbox java and put it in the main pano as you suggested, then this will not work. I then do not get errors with the main pano but when I put that same java into the main pano.. I will open a window.. but nothing opens in it..

I have tried to understand what you have suggested but nothing seems to work.. I kind of understand what you are suggesting. I can only use part of the CDATA code since there will be java files and skin missing...

Destiny...


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#60 2012-02-07 22:18:10

galatea
Member
Registered: 2012-01-17
Posts: 64

Re: Problem with HotSpot HTML

Hello Destiny, I tried the codes but do not work,
I published three tests with the three codes: http://viewcity.altervista.org/index.php/en/eventi
I want to do what you see in the picture I attached,

Thanks for the help

Greetings Galatea


Uploaded Images

Offline

 

#61 2012-02-07 23:53:48

galatea
Member
Registered: 2012-01-17
Posts: 64

Re: Problem with HotSpot HTML

I do not want to open an image, but
I would like to open a html page to another html page.

Offline

 

#62 2012-02-08 02:17:00

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

ok Galatea

I did some test for you.. Is this what you were wanting..

http://www.destinyvirtualtours.com/Kolo … ltour.html

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#63 2012-02-08 07:35:57

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

Sorry, you cannot go directly to that main html link, you will get errors.. You have to keep the source code very simple.  This is why you open up a thumb html page which with the basic source code and then you an open your main page when you click on that. I am sure Andrew has mentioned this to you before.. You will have to do it as I have done above....

Destiny..

galatea wrote:

I do not want to open an image, but
I would like to open a html page to another html page.

Last edited by Destiny (2012-02-08 07:36:54)


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#64 2012-02-08 11:56:16

galatea
Member
Registered: 2012-01-17
Posts: 64

Re: Problem with HotSpot HTML

I did not understand,
you can do or not?


Uploaded Images

Offline

 

#65 2012-02-08 12:04:26

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

oh hum.. Well, yes you can do it as shown in #63, but you cannot do it as you want in #62 if you want to avoid the error message and to make the link to your main page...

Destiny..

Last edited by Destiny (2012-02-08 12:13:47)


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#66 2012-02-08 12:20:13

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

Ok.. the first one you have not provided the address of the images.. The middle one looks like you have put the main page as the html which will not work and the last one you have set to _self.. The last one is the closet to what you are wanting... All you have to do with that is set the window to _blank. this will then open a new window.. You can then put a url on that page to return to the that page..

You seem to have three situations.. one close and the other two.. oh hum... but getting there.. Just do as you did for the last pano with 1 and 2.. Then make sure you link to different pages..

Destiny..

Last edited by Destiny (2012-02-08 12:21:15)


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#67 2012-02-08 13:13:10

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2355
Website

Re: Problem with HotSpot HTML

Hi... I have been playing with your source code.. and reading the krpano help... To be honest, the way you have structured this your hotspot has the main url, which is ok but I do not know how to set this to _blank.. You will have to ask Gérald about this one.. This is the closets to working how you want it.. 

All you need to do is resize the thumb image a bit bigger and fix up your url to the main page set to _blank and that will be it.. I have put many html links in ptp over these past few weeks, but I have never had this issue.. Normally it just opens to _self but yours has been developed a bit different and also goes to self but remains in the iframe, not sure why... Gérald is the expert with this...

With this you would have other html file with the main url in it.. this is where you will see it is set to _self  so you need to change it to _blank
You will have in this html file with the url to http://www.l-officina.net/ , this is the one you need to set to _blank It will then open outside of the iframe.
You can send me the file and I can fix it for you..

Destiny

Last edited by Destiny (2012-02-08 23:49:49)


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#68 2012-02-12 21:56:37

galatea
Member
Registered: 2012-01-17
Posts: 64

Re: Problem with HotSpot HTML

Hello Destiny, I could not do what I wanted, but I did something similar.
It opens an html page popups and this opens a new page with the tag Blank. For the moment I'm happy, and thank you for your disponibilitò, and for all the answers. Thanks again.

Greetings Galatea.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson