25 users online (2 members and 23 guests)  


  Results 1 to 2 of 2

Related

  1. Need help with a popup code    Forum: HTML Forum
    Replies: 0
  2. popup help    Forum: HTML Forum
    Replies: 3
  3. code for popup    Forum: Javascript Forum
    Replies: 1
  4. Popup Window    Forum: HTML Forum
    Replies: 2
  5. Popup window to fit?    Forum: HTML Forum
    Replies: 1
  1. #1
    burekass's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2006
    Posts
    4

    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.


  2. #2
    burekass's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2006
    Posts
    4

    Re: my popup swf from html is not consistent

    somebody told me I shoudn't call to swf file but to put it inside html page and then call the html page. Well it's better, the swf doesn't grow more then it's supose to, for example (the only one I've changed) in the banners page, there is a green banner. But still the html page open much bigger then the swf. better but still bad!
    go in the banners page. link: http://www.geocities.com/rangreiss/
    thanks a lot.



Tags for this Thread