fullscreen

Q&A about the latest versions
Post Reply
User avatar
Svendus
Posts: 687
Joined: Sun Jan 06, 2008 11:03 am
Location: Sweden
Contact:

Is it possible to combine this script?

Code: Select all

<script language="javascript" src="p2q_embed_object.js">
With this script on a website?

Code: Select all

<head>
	
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, resizable=yes, status=yes, scrollbars=yes');}
// End -->
</script>

<head>
			
<body>

<a href="javascript:void(0);" onClick="fullScreen('YOUR WEBSITE.html');">fullscreen</a>
fullscreen.txt
(311 Bytes) Downloaded 245 times
Image Image
User avatar
thomas
Chief Gnome
Posts: 2611
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

What do you mean? Add the function into the file?
MfG, Thomas
User avatar
Svendus
Posts: 687
Joined: Sun Jan 06, 2008 11:03 am
Location: Sweden
Contact:

thomas wrote:What do you mean? Add the function into the file?
The problem lies on a page like on this link
When we want to imbed the paduk.swf on the page

The script
<script language="javascript" src="p2q_embed_object.js">

Inactivates the fullscreen function on the links in top of the page

Öppna bilder som ett wmvbildspel i fullskärmsläge
H E N N I N G - P A N O R A M A

se test1 and test2 mht.zip attachments thanks :arrow:
mht.zip
(132.28 KiB) Downloaded 295 times
User avatar
Roy Reed
Posts: 168
Joined: Thu Apr 19, 2007 10:31 am
Location: London, UK
Contact:

It works for me in Firefox. Are you sure there isn't something else stopping the fullscreen function from working - popup blocker possibly?
User avatar
Svendus
Posts: 687
Joined: Sun Jan 06, 2008 11:03 am
Location: Sweden
Contact:

All right posted the link to the
test2.html from the mht.zip
Do the links function in Firefox? after imbeding the paduk.swf on the page
User avatar
Roy Reed
Posts: 168
Joined: Thu Apr 19, 2007 10:31 am
Location: London, UK
Contact:

Change the link to this and it should work:

Code: Select all

<a href="yourlink.html" onClick="fullScreen(this.href);return false;">fullscreen</a>
User avatar
Svendus
Posts: 687
Joined: Sun Jan 06, 2008 11:03 am
Location: Sweden
Contact:

Sorry Roy can’t get it
It runs but the links do not load fullscreen
To imbed the flash is all right but not on pages with other fullscreen links
What do you write under <head>
in your suggestion :?:
User avatar
Roy Reed
Posts: 168
Joined: Thu Apr 19, 2007 10:31 am
Location: London, UK
Contact:

I didn't change the code in <head> at all and it worked here locally in Firefox (I didn't check in anything else). But I have to say I wouldn't be using any technique to change the size of someone else's browser on their computer - it's very annoying. If they want to see the panorama full screen give them a Flash button that they can click themselves.
User avatar
Svendus
Posts: 687
Joined: Sun Jan 06, 2008 11:03 am
Location: Sweden
Contact:

Yes you are right the fullscreen function in flash is perfect
but the side links in the example are not pages with flash content
And the fullscreen function loads in a new window with
javascript:window.close(); Close window link :wink:
Post Reply