Results 1 to 1 of 1

Thread: my popup swf from html is not consistent

  1. #1
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default my popup swf from html is not consistent

    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:
    Code:
    on (release) {
     getURL("JavaScript:popup_protools();");
    }
    In the html I wrote the next script to call the function:
    Code:
    <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:
    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.
    Last edited by burekass; 11-23-2006 at 12:53 PM. Reason: forgot something

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •