Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: Fullscreen on Web |
From: | calin |
Date: | Fri, 12 May 2000 08:58:47 +0100 |
Hi Thomas. The error in your code is way more obvious than you would think.
In Javascript, unlike VBScript, each line of code should end in a semicolon
(not the lines where a function begins or ends with a "{" though.
Therefore your code should look like:
<body BGCOLOR="#419c6c" ONLOAD="winopen()" value="Open window">
<script>
<!--
function winopen(){
var targeturl="http://www.designabyte.com/braintank/fullscreen.html";
newwin=window.open("","toolbar","scrollbars");
if (document.all){
newwin.moveTo(0,0);
newwin.resizeTo(screen.width,screen.height);
}
newwin.location=targeturl;
window.location.href = "empty.html";
}
//-->
</script>
I tested it on both IE5 and NS4 and it works.
HTH,
Calin
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml
Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]