PDA

View Full Version : my popup swf from html is not consistent



burekass
11-23-2006, 12:50 PM
Hi,
I want to open swf file from html with a fixed size:
I have a swf file in my html page with btns in it. One btn for example(in the flash I wrote:

on (release) {
getURL("JavaScript:popup_protools();");
}
In the html I wrote the next script to call the function:

<SCRIPT LANGUAGE="JavaScript">
function popup_protools() {
window.open('protools.swf','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=120,height=120,left=200,top=200');
}
</script>
Then I put this code:

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //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);

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
I have many swfs to open, sometimes it's open correct in fixed size, like in the banner of the girl or the one with the car, at the bottom. But mostly it's open it in a much bigger window then the swf, even I wrote the exact dimentions. Why?
Here is the link:http://www.geocities.com/rangreiss/
I'm talking about the banners page.
Thanks.