NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Is this possible in JavaScript?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-08-2003, 08:01 AM THREAD STARTER               #1 (permalink)
NamePros Member
 
Mp)Tarh's Avatar
Join Date: Aug 2003
Location: Ontario, Canada
Posts: 98
Mp)Tarh is an unknown quantity at this point
 



Is this possible in JavaScript?


Does anyone know how to set the current window to fullscreen with JavaScript? I want the current window to be fullscreen WITHOUT opening a new window...
__________________
Yeah... I knew that. What?
Mp)Tarh is offline  
Old 08-08-2003, 09:54 AM   #2 (permalink)
NamePros Member
Join Date: Jul 2003
Posts: 68
crEA-tEch is an unknown quantity at this point
 



if this is for a website going going public why wud u want to annoye your visiter making the window auto-maximise? I'd probably close the page if it did that?

nick
__________________
M-Factor
crEA-tEch
crEA-tEch is offline  
Old 08-08-2003, 12:30 PM THREAD STARTER               #3 (permalink)
NamePros Member
 
Mp)Tarh's Avatar
Join Date: Aug 2003
Location: Ontario, Canada
Posts: 98
Mp)Tarh is an unknown quantity at this point
 



Fullscreen mode is optional so there is no forcing involved. Anyway, I figured out how to do it myself.

var screensettings = "small"

function screenchange()
{
if (screensettings == "small")
{
if (document.layers)
{
if (top.window.innerWidth == screen.width)
{
alert("Window cannot be maximized when entering fullscreen mode.");
} else {
screensettings = "big";
fullscreen()
}
} else {
if (top.document.body.offsetWidth == screen.width)
{
alert("Window cannot be maximized when entering fullscreen mode.");
} else {
screensettings = "big";
fullscreen()
}
}
} else {
screensettings = "small";
restore()
}
}

function fullscreen()
{
if (document.layers)
{
top.window.resizeTo(screen.width+20,screen.height+ 300);
top.window.moveTo(-10,-100);

} else {
top.window.resizeTo(screen.width+20,screen.height+ 300);
top.window.moveTo(-10,-100);
}
}

function restore()
{
if (document.layers)
????: NamePros.com http://www.namepros.com/programming/15098-is-this-possible-in-javascript.html
{
top.window.resizeTo(200,200);
top.window.moveTo(0,0);
} else {
top.window.resizeTo(200,200);
top.window.moveTo(0,0);
}
}
__________________
Yeah... I knew that. What?
Mp)Tarh is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:13 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger