This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Full screen with no scrollbars





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Full screen with no scrollbars
lucianb

2004-08-12, 7:15 am

I use this code when a button is clicked in flash
on (release) {

getURL("javascript:openNewWindow('main.html','thewin','fullscreen=yes,toolbar=no
,scrollbars=no') ");
}
and a code in the html page

<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</SCRIPT>
okay so, when i click the button, main.html opens in full screen but i still
have a scrollbar on the right, even though in the code of the button i
specified no scrollbars "scrollbars=no".
I'm really suck. Any ideas how i can get rid of the scrollbar?
I asked the same thing in the flash forums but they said that i might find the
answer here.

Thanks

jojo

2004-08-12, 7:15 am

Not really a good idea to remove the scrollbars, you could add
scoll="no" to the body tag of the opening page to do what you want though.

That code isn't valid btw so no idea how it performs X browser or X OS.


--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------
jojo

2004-08-12, 7:15 am

jojo wrote:

> Not really a good idea to remove the scrollbars, you could add
> scoll="no" to the body tag of the opening page to do what you want though.
>
> That code isn't valid btw so no idea how it performs X browser or X OS.
>
>


scroll="no" may work better ;)

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------
lucianb

2004-08-12, 7:15 am

well, it is a good idea, beacuse i want to open a flash movie in full screen
and it will have an exit button, but how to open it in full screen without
scrollbars? the code that i posted works for me, it opens in full screen but
with scrollbars. I have IE 6, win XP.
Do you know any other way how to do it?

thanks

lucianb

2004-08-13, 7:14 am

Basically, what i need is a button (in a flash movie - swf) when clicked to open a html page in full screen with no scrollbars.
and i would be happy if it worked with ie and maybe netscape.

lucianb

2004-08-13, 12:15 pm

i found this, it works but still i have scrollbars, http://www.actionscript.org/tutoria...een/index.shtml
Gary White

2004-08-13, 12:15 pm

lucianb wrote:

>Basically, what i need is a button (in a flash movie - swf) when
>clicked to open a html page in full screen with no scrollbars.
>and i would be happy if it worked with ie and maybe netscape.



The code you posted should work in IE/Windows. I think that's the best
you're going to do.


Gary
lucianb

2004-08-13, 12:16 pm

it works , but i have a scroll bar, which i do not want to have.

how can i remove it???
Gary White

2004-08-13, 7:17 pm

"lucianb" <webforumsuser@macromedia.com> wrote in message
news:cfik5s$5u0$1@forums.macromedia.com...
> it works , but i have a scroll bar, which i do not want to have.
>
> how can i remove it???



Dunno. Using scrollbars=no works for me.

Gary


lucianb

2004-08-14, 7:14 am

Can u make an example for me and put it online, with scrollbars=no does not
work here. i have ie6 and xp. thanks a lot.
and btw how can i open a html page so u can't see it, for example height=0 and
width=0?? and then u autoclose it.
thanks.

WoW-Player

2004-08-14, 12:14 pm

This is a newbie question but i would like to know how to turn scroll bars on
in one of my frames (Navigation frame). I am running Windows XP and Dreamweaver
MX2004 if that makes a difference. Even better if someone knows how to make the
entire site have scrolls bars for all the frames (As a total not a scroll bar
for each frame just one big scroll bar for the entire site). Thanks allot for
your help.

Link to my site:

http://www3.telus.net/public/amartine/

It's for a game I just started it last night have next to nothing of
web-design knowledge so I would really appreciate your help,

Thanks allot

WoW-Player

Gary White

2004-08-14, 12:14 pm

lucianb wrote:

>Can u make an example for me and put it online, with scrollbars=no does not
>work here. i have ie6 and xp. thanks a lot.


You're right. It works until you use the fullscreen. When you use
fullscreen, the scroll bar comes back. Sorry.


> and btw how can i open a html page so u can't see it, for example height=0 and
>width=0?? and then u autoclose it.


You cannot.


Gary
Gary White

2004-08-14, 12:14 pm

"WoW-Player" <webforumsuser@macromedia.com> wrote in message
news:cfkohp$1da$1@forums.macromedia.com...
> This is a newbie question but i would like to know how to turn

scroll bars on
> in one of my frames (Navigation frame). I am running Windows XP and

Dreamweaver
> MX2004 if that makes a difference. Even better if someone knows how

to make the
> entire site have scrolls bars for all the frames (As a total not a

scroll bar
> for each frame just one big scroll bar for the entire site). Thanks

allot for
> your help.



You'll have a better chance of getting an answer by starting a new
thread for this question instead of having it buried here in this one.

Gary


WoW-Player

2004-08-14, 11:15 pm

I did thanks allot
magicMan_204

2004-08-14, 11:15 pm

I was in a hurry and saw your thread. I've got some script that I used to send
to friends all the time when they had a similar need. It appears the only
difference is that I used to set that parameters for the browser window in the
Html document rather than trying to pass them from Flash. I didn't get a chance
to test the fullscreen. Try this method.
magicMan

1. In Flash Mx, attach the following script to a button:

on (release) {
getURL("Javascript: popUp('myOtherDoc.html')");
}

2. In Flash, under Publish Settings, select formats: Flash and HTML. In the
html settings,
select "Flash only".

3. Let's say your flash file, from step 2, is called "companyInfo.fla". In
step 2, you should have generated
2 files, companyInfo.swf and companyInfo.html. Go to companyInfo.html and
insert the following with the
<Head> section:

<script language="JavaScript">
<!--
function popUp(page) {
myNewWin = window.open(page, 'winName',
'scrollbars=yes,width=440,height=300');
myNewWin.focus();
}
//-->
</script>

5. Again, you're done. You can also change the width and height parameters to
suit your needs. And,
of course, you need to have a file called "myOtherDoc.html" to open (in the
same folder).

lucianb

2004-08-15, 7:15 am

i used your code
<script language="JavaScript">
<!--
function popUp(page) {
myNewWin = window.open(page, 'winName', 'scrollbars=no, fullscreen=yes');
myNewWin.focus();
}
//-->
</script>

and still i had the bloody scollbars. i can't belive it.
anyone any other ideas?
thanks.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews