Close button

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
mika.od
Posts: 2
Joined: Thu Nov 22, 2018 5:09 pm

Close button

Post by mika.od » Thu Dec 27, 2018 9:28 am

Hi,

I'm looking for creating un button that close on mouse click the window of the navigator in which is the virtual tour itself.

For explain, in my website gallery my virtual tours are opened in a new window. A close button will make the navigation easier to return to my gallery.

As anyone a solution ?

Regards,
Mika.

User avatar
Tony
Posts: 737
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Close button

Post by Tony » Fri Dec 28, 2018 6:54 am

Hi Mika,

I presume you have an image with a link that opens a new window using _blank.

If so try this...

!. Add a new button to the skin
2. Create an action for it

Souce: Mouse Click
Action: Go to URL
URL: javascript:close();

3. Save the skin

When the new window is opened this button should close it.

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

mika.od
Posts: 2
Joined: Thu Nov 22, 2018 5:09 pm

Re: Close button

Post by mika.od » Mon Dec 31, 2018 4:41 pm

It's just perfect !

Thank you Tony. And happy no year !

User avatar
Tony
Posts: 737
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Close button

Post by Tony » Mon Dec 31, 2018 10:10 pm

Glad it worked and a Happy New Year to you too :D

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests