Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filling entire screen without toolbars 2

Status
Not open for further replies.

longjohnsilvers

Technical User
Apr 11, 2002
11
US
Is there a way to open Dream weaver site without the Internet Explorer interface. I have developed a CBT and would like it to fill the entire screen without the toolbars at the top.
 
Surely you could do it with JavaScript?

Head :

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval(&quot;page&quot; + id + &quot; = window.open(URL, '&quot; + id + &quot;', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1024,height=780,left = 35,top = 35');&quot;);
}
// End -->

Change the width and height to fit...

then use
<a href=&quot;javascript:popUp('#URLHERE')&quot;>
to open the page...
that should open without the toolbar e.t.c.
hope that helps,
J

 
Do you want this? (check the link, the links on the page are not working, if you get stuck with the screen press ALT+F4)


If you do,
Put this in the head:

<script language=&quot;JavaScript&quot;>
<!--
function popit(theURL,winName,features) {
window.open(theURL,winName,features);
}
//-->
</script>

and this in the body tag:

onLoad=&quot;popit('your_page.htm','','fullscreen=yes,titlebar=0,toolbar=false,scrollbars=no,width=790,height=570,screenX=0,screenY=0')&quot;

This will open a new window without the frame (for 800x600 resolution) you can change the values for other resolutions.

Hope it'll help ;-) Have Fun...

Sharky99 >:):O>
 
Fight! Fight! Derren
[Mediocre talent - spread really thin]
 
I don't want to argue with you but you're off on this one, it's far from being the same thing.

First it's positioned to the right place

Second it's fullscreen

Third it's really frameless (or borderless whatever it's called)

If you're sceptic at least take a look at it:


you'll see i'm not wrong (or i'm right) ;-)


Don't worry i'm not mad, i do make mistakes myself.

Darren, you're a riot starter LOL Have Fun...

Sharky99 >:):O>
 
Thanks very much for your advice.

This site is wonderful for beginners.
However, I am having trouble getting it to work. I have entered the code suggested by Sharky99. I'm sure it is probably the way I am entering the code. Since I am not a programmer it is very easy for me to make mistakes. Could you give me a little guidance as the the exact placement of the lines, especially the part that goes into the body. Is the body part in html or Java? Sometimes when I enter it it shows up in my document. Help!
 
Follow Sherky99's code, it is just what you are after. Put this code just before the
Code:
</head>
tag in your html:

Code:
<script language=&quot;JavaScript&quot;>
<!--
function popit(theURL,winName,features) {
  window.open(theURL,winName,features);
}
//-->
</script>

Then, where you can see the body tag &quot;
Code:
<body>
&quot; the second part of the code needs to be put within the. So the body tag will look like this:

Code:
<body onLoad=&quot;popit
('your_page.htm','','fullscreen=yes,titlebar=0,toolbar=false
,scrollbars=no,width=790,height=570,screenX=0,screenY=0')&quot;>

Then you can adjust the values of the width, height, x and y to suit your needs. Remeber to put a close button on the page though, or someone will email a brick through your mailbox!

Sherky99: just how advisable is it to read the threads very, very carefully before launching off a sarcastic &quot;I said that&quot; comment!![wink][wink]

Derren
[Mediocre talent - spread really thin]
 
Thanks for taking care of this, Darren ;-)

I was out of town so couldn't follow up on this thread, thanks again.
Have Fun...

Sharky99 >:):O>
 
Thanks very much for you response. This worked great. I can't tell you how much I appreciate you taking the time to share your knowledge. It means so much to we beginners.
 
Like I said in my earlier post, opening the file in full screen worked great except one little problem. For some reason it opens multiple copies of the same file. So many open that they fill up the bar at the bottom. Depending on which computer you open it in it could be hundreds. Any suggestions?
 
Make sure that you do not refer back to your splash
page. If your splash page is index.html then you want
to open your full screen as index2.html. I made this mistake before and opened allot of windows.
 
I'm not sure what you mean. What are you referring to when you say splash page. Excuse my ignorance. I am new to this world.
 
You need your first page to call your second page that
you want to open &quot;fullscreen&quot;. when you enter the site
the first page is recognized as index.html. In your index
page you have your code to open your page fullscreen. You
need to refer to another page like index2.html or what
ever you want. If in your index.html page you try to call
your index.html page you will just loop and open windows.
Lot of windows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top