Forum Moderators: phranque
If anyone can help me please do. My continued mental stability and intelectual aragence depend on it!
PS
For all of you that may have moral issues with traping users in a seemingly unescapeble fullscreen trap, rest assured its for personal use only.
do you have any code to post that you have tried that "almost works"?
perhaps something like this will do your trick:
<html>
<head>
<title>Full Screen</title>
<script language="JavaScript" type="text/javascript">
<!--
function fullScreen(){
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
}
//-->
</script>
</head>
<body onLoad="fullScreen()">
</body>
</html>
I can open a fullscreen window useing a code like this:
<html>
<head>
</head>
<body onLoad="window.open('indexh.html', 'index', 'fullscreen'); ">
</html>
But this will leave two windows open. I have tried combining this with onLoad="self.close()". But this will prompt the user to close the window, and thats just annoying. I've also tried to find ways to minimize the first window automatically after opening the second but failed(if anyone else can, toss it in).
I've seen others try things like this:
<script type="text/javascript">
function max()
{
var obj = new ActiveXObject("Wscript.shell");
obj.SendKeys("{F11}");
}
</script>
</head>
<body onload="javascript:max()">
But most people don't like having thier computers invaded. And this aproach will prompt you relentlessly as well as not providing a true full screen effect(you can access the adress bar and tool bars). Got any other ideas?
[edited by: Baxter30 at 1:33 am (utc) on Nov. 23, 2008]