Forum: Q & A

Thread: Fullscreen but cant get back to web page any ideas ?

back to threads list | this thread is closed
Search the forums:
Author  Message 
daveographer

Posts: 41
Location: United Kingdom
Registered: 29 Oct 2005
Fullscreen but cant get back to web page any ideas ?
Posted: 15 Jul 2007 at 10:08 GMT
Hi all

I have managed to create a full screen pano but when you click off it, it doesnt go back to the original web page?

Apart from this problem i am rather happy with my first full screen, yes there is slight paralax but all in all i must say im rather proud.

If you go to www.wirral360.com you will see bottom left a link that says "New fullscreen coming soon" this is only a test and i will of course be re-doing my entire site so please hold back the laughs.

After viewing my full screen i click the x top right and it just leaves a blank page how do i get it to default back to the page before i clicked on it?

Many thanks Dave
alert moderator
DorinDXN

Posts: 1692
Location: Timisoara, Romania
Registered: 14 Nov 2006
Re: Fullscreen but cant get back to web page any ideas ?
Posted: 15 Jul 2007 at 11:00 GMT
updated: 15 Jul 2007 at 11:01 GMT
Hi Dave, I'll post back here a new html code for your fullscren page, I can't blame much the old one (I saw some missed </script> and such) , becouse I've posted that some days ago smile

I'll be back in an hour at the most.

Dorin
alert moderator
John Houghton

Posts: 2308
Location: Hitchin, United Kingdom
Registered: 17 Jan 2005
Re: Fullscreen but cant get back to web page any ideas ?
Posted: 15 Jul 2007 at 11:54 GMT
It works fine for me as it is. IE7 on WinXP Home.

John
alert moderator
DorinDXN

Posts: 1692
Location: Timisoara, Romania
Registered: 14 Nov 2006
Re: Fullscreen but cant get back to web page any ideas ?
Posted: 15 Jul 2007 at 12:18 GMT
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title></title>
<!--
window.moveTo(0,0);
window.resizeTo(window.screen.availWidth,window.screen.availHeight);
window.focus();
//-->
<style type="text/css" title="Default">
body, div, h1, h2, h3, span, p {
font-family: Verdana,Arial,Helvetica,sans-serif;
color: Black;
}
body {
font-size: 10pt;
background : #000000;
}
td,tr,table {
font-size: 10pt;
border : 1 Black;
border-left-style : solid;
border-bottom-style : solid;
border-top-style : solid;
border-right-style : solid;
border-left-width : 1;
border-right-width : 1;
border-top-width : 1;
border-bottom-width : 1;
border-color : #777777;
background : #eeeeee;
}
h1 {
font-size: 18pt;
}
h2 {
font-size: 14pt;
}
</style>
</head>
<body bgcolor="#ffffff" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<p align="center">
<SCRIPT type="text/javascript" src="detectvr.js">
</SCRIPT>
<SCRIPT type="text/javascript">
viewerparameters("devalvr","fullscreen","1");
writecode("pano.mov","pano.mov","","","","100%","90%");
</SCRIPT>
<noscript>
<b>Please enable Javascript!</b>
</noscript>
<br><img src="scala.jpg" width="530" height="24"> <a

href="javascript:{window.opener='x';window.close);}">Close this window</a>
</p>
</body>

</html>


You must change pano.mov with your file name of the pano

also please change

<a href="Panoramas/RoyalLiverpoolGolf/rlg2.htm">

with

<a href="Panoramas/RoyalLiverpoolGolf/rlg2.htm" target="_blank">


in your webpage where is the link to fullscreen

With this new code from fullscreen you exit in windowed and then close the window by click on the link at bottom.

I want also to implement a javascript timer to check at every 3 seconds and automatically close the new opened window when you exit from fullscreen but in this amount of time I couldn't managed to read .fullscreen flag from javascript, maybe Fiero could help us.

Dorin
alert moderator
DorinDXN

Posts: 1692
Location: Timisoara, Romania
Registered: 14 Nov 2006
Re: Fullscreen but cant get back to web page any ideas ?
Posted: 16 Jul 2007 at 6:09 GMT
updated: 16 Jul 2007 at 6:25 GMT
Hi, Fiero did help us, he sent to me this

-----------8<-------------

I tested this code, to check each 1000 milliseconds if the fullscreen was closed:

<SCRIPT type="text/javascript">
viewerparameters("devalvr","fullscreen","1");
writecode("pano.mov","pano.mov","","","","100%","90%");

var firstfullscreen=0;
if(writePluginVR==1) // DevalVR is used
{
setTimeout("CheckFullscreenDevalVR()", 1000);
}

function CheckFullscreenDevalVR()
{
var closewindow=0;

ref=getRef("PANORAMAID");
if(ref)
{
if(ref.fullscreen==1) firstfullscreen=1;
if(firstfullscreen==1 && ref.fullscreen==0)
{
closewindow=1;
}
}
if(closewindow==1)
{
window.close();
}
else setTimeout("CheckFullscreenDevalVR()", 1000);
}

</SCRIPT>


You can test this page with IE www.devalvr.com/paginas/soporte/closefullscreen/i...

-----------8<-----------------

with this code when you exit from fullscreen it automaticallly closes that window


Dorin
alert moderator