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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fullscreen+center 1

Status
Not open for further replies.

sm57

Programmer
Oct 26, 2003
3
0
0
US
I have a client requesting that when his logo is clicked, his browser window goes to full screen mode and a locked, presized pop up window launches in the center of the screen ----- whoa.

Can anybody help.

sincerely,
non programming guru
 
Here, give this a whirl. If thats not what your looking for be a bit more specific or give me a link example.


<!-- TWO STEPS TO INSTALL FULLSCREEN WINDOW:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

<!-- Begin
function openFullscreen(page) {
var yes = 1;
var no = 0;

var menubar = no; // The File, Edit, View Menus
var scrollbars = no; // Horizontal and vertical scrollbars
var locationbar = no; // The location box with the site URL
var directories = no; // the &quot;What's New&quot;, &quot;What Cool&quot; links
var resizable = no; // Can the window be resized?
var statusbar = no; // Status bar (with &quot;Document: Done&quot;)
var toolbar = no; // Back, Forward, Home, Stop toolbar

windowprops = &quot;width=&quot; + (screen.width-10) + &quot;,height=&quot; + (screen.height-50) + &quot;,top=0,left=0&quot;;

windowprops += (menubar ? &quot;,menubars&quot; : &quot;&quot;) +
(scrollbars ? &quot;,scrollbars&quot; : &quot;&quot;) +
(locationbar ? &quot;,location&quot; : &quot;&quot;) +
(directories ? &quot;,directories&quot; : &quot;&quot;) +
(resizable ? &quot;,resizable&quot; : &quot;&quot;) +
(statusbar ? &quot;,status&quot; : &quot;&quot;) +
(toolbar ? &quot;,toolbar&quot; : &quot;&quot;);

window.open(page, 'fullPopup', windowprops);
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>
<form>
<input type=button value=&quot;Open Fullscreen Page&quot; onClick=&quot;openFullscreen(' </form>
</center>

<p><center>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top