fullscreen

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

Sat Feb 02, 2008 11:33 am

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 115 times
Image Image
User avatar
thomas
Chief Gnome
Posts: 2544
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Sat Feb 02, 2008 4:06 pm

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

Sat Feb 02, 2008 5:23 pm

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 176 times
User avatar
Roy Reed
Posts: 160
Joined: Thu Apr 19, 2007 10:31 am
Location: London, UK
Contact:

Sat Feb 02, 2008 7:06 pm

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: 684
Joined: Sun Jan 06, 2008 11:03 am
Location: Sweden
Contact:

Sat Feb 02, 2008 7:34 pm

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: 160
Joined: Thu Apr 19, 2007 10:31 am
Location: London, UK
Contact:

Sat Feb 02, 2008 8:01 pm

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: 684
Joined: Sun Jan 06, 2008 11:03 am
Location: Sweden
Contact:

Sun Feb 03, 2008 9:49 am

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: 160
Joined: Thu Apr 19, 2007 10:31 am
Location: London, UK
Contact:

Sun Feb 03, 2008 10:59 am

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: 684
Joined: Sun Jan 06, 2008 11:03 am
Location: Sweden
Contact:

Sun Feb 03, 2008 1:12 pm

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