Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    errore pag da cui parte pop-up

    Ciao a tutti.
    Devo far partire un pop-up automatico, così ho fatto:
    codice:
    <body onload='popup()'>
    <head>
    <?php if($row['Nick']!='') { echo"<script language='Javascript'>
    function popup()
    {
    parent.window.open('popup.php','avviso','height=350,width=500',
    'toolbar=0,menubar=0,directories=0,location=0,scrollbars=1,status=0,resizable=1');
    }
    </script>"; } ?>
    <title>Home</title>
    </head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <FRAMESET cols="75%,*" frameborder="NO" border="0" framespacing="0">
    
    <frame name="monte" src="monte1.php">
    
    <frame name="menu" noresize src="menu.php" scrolling="no">
    </FRAMESET>
    </body>
    facendo in questo modo il pop-up si apre, ma la pagina originale nn si carica più..resta bianca. Mentre invece se sposto il body dopo il tag della funzione popup(), quindi dopo head, la pagina originale si carica, ma il pop-up nn parte!!

    Come devo fa??
    grazie
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  2. #2
    Prova a mettere un pò di ordine in questo modo:
    codice:
    <head>
    <title>Home</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <?php if($row['Nick']!='') { echo"<script language='Javascript'>
    function popup()
    {
    parent.window.open('popup.php','avviso','height=350,width=500',
     'toolbar=0,menubar=0,directories=0,location=0,scrollbars=1,status=0,resizable=1'
    );
    }
    </script>"; } ?>
    </head>
    
    <body onload="javascript:popup()">
    <FRAMESET cols="75%,*" frameborder="NO" border="0" framespacing="0">
    
    <frame name="monte" src="monte1.php">
    
    <frame name="menu" noresize src="menu.php" scrolling="no">
    </FRAMESET>
    </body>
    Purtroppo non ho modo di provarlo, ma penso che così dovrebbe andare bene ...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.