panorama software,virtual tour software
Alternate Text
Joined: 2008-05-10
Send Msg:
Posts: 590
2008-06-08
#1

Javascript Pop Ups

If anyone is interested I have used a handy bit of javascript to create a webpage pop up which can incorporate a video clip, Image etc.

Using the Actions>>execute script

Type in the following

newwindow=window.open("http://www.holidaynerja.co.uk/combi.htm",'popupwindow',
  'width=400,height=375,left=300,top=100');

Replace http://www.holidaynerja.co.uk/combi.htm with your choice of webpage and you can play around with the width and height dimensions to encapsulate the page to suite.

Use the following javascript in your webpage to create the close window button -

<form method="post"><input
type="button" value="Close Window"
onclick="window.close()"></form>

If anyone has any other useful code I would be interested to know.

 

 


Apartment rentals Nerja

Villa rentals Nerja

Accommodation Nerja

Alternate Text
Joined: 2008-05-10
Send Msg:
Posts: 590
2008-06-08
#2
Also the "left" and "top" dimensions position the pop up on the screen

Apartment rentals Nerja

Villa rentals Nerja

Accommodation Nerja

Alternate Text
Joined: 2006-08-14
Send Msg:
Posts: 33
2008-06-09
#3

Great script! You have given me a great idea to add additional client value!!

 


Jeff
www.enviropix.com
Alternate Text
Joined: 2002-06-12
Send Msg:
Posts: 2239
2008-06-10
#4

Thanks for those code snippets

Loved the movie... Nerja Costa del Sole.  Must be the East side of Spain.

We have been to Spain  2 or 3 times for holiday.


/s/
Dave
Forum Moderator for
EasyPano - Panoweaver
Pano2VR


Visit 360texas.com