PDA

Click to See Complete Forum and Search --> : Open full screen



DOAcharlie
07-27-2000, 04:59 PM
I am having trouble opening my swf in full screen. To bypass this I've published my movie to html as a cheat. What code do I have to incorporate into my index.html to start my intro in full screen.

Thanks

shockwaver
08-09-2000, 08:05 AM
put this into the html doc. dont forget the part in the body tag.
</head>
<script LANGUAGE="Javascript">
<!-- //

function intro()
{
if ((navigator.appVersion.indexOf("Mac")!=-1) &&
(navigator.userAgent.indexOf("MSIE")!=-1) &&
(parseInt(navigator.appVersion)==4))
{
skip()
}
else
{
popup()
}

}
function skip()
{
location.href="1_page.html";
}
function popup()
{
version = parseFloat(navigator.appVersion.substring(navigato r.appVersion.indexOf('.')-1,navigator.appVersion.length));
if (version >= 4)
version = parseFloat(navigator.appVersion.substring(navigato r.appVersion.indexOf('.')-1,navigator.appVersion.length));
if (version >= 4)

{
if (navigator.appName=="Netscape")
{

location.href="1_page.html";

}
if (navigator.appName=="Microsoft Internet Explorer")
{
window.open("2_page.html","screen","fullscreen=yes");
}
}
else
{
location.href="1_page.html";
}


}
// -->
</script>


<body LINK="#000000" BGCOLOR="#000000" onLoad="intro()">