Hi out there!
My question:
I have a swf. file and need to create a index.html site to open the swf file in browser. Does anybody has the code to emmbed my main_1.swf file and make it full screen?
Thanks in advance for your support.
ANB
Printable View
Hi out there!
My question:
I have a swf. file and need to create a index.html site to open the swf file in browser. Does anybody has the code to emmbed my main_1.swf file and make it full screen?
Thanks in advance for your support.
ANB
Put the following between the <head> tags in index.html
Then open your flash page in a link:PHP Code:
<script language="JavaScript">
<!--
function openwin(url,name,features) {
window.open(url,name,features);
}
// -->
</script>
In main.htm (the embedded swf etc.) put the following in the <head> tags:PHP Code:
<a href="JavaScript: openwin('main.htm','newwindow','width=800, height=600,scrollbars=no,toolbar=0,status=0,resizable=yes, menubar=0, location=0')">
PHP Code:
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //Updated by PVII. Reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
if(navigator.appName=="Microsoft Internet Explorer") { self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight); }
//-->