Visualizzazione dei risultati da 1 a 2 su 2

Discussione: pup up

  1. #1

    pup up

    salve

    devo fare dei pop-up a grandezza variabile width e height

    fino ad adesso usavo il seguente codice


    ...<head >...
    <script type="text/javascript">
    <!--
    var stile = "top=10, left=10, width=694, height=478, status=no, menubar=no, toolbar=no scrollbar=no";
    function Popup(apri) {
    window.open(apri, "", stile);
    }

    ...</head> ...

    ...W borghezio...

    cosa devo fare per dare ai pop up dimesioni diverse?
    LEGA NORD

  2. #2
    Utente di HTML.it L'avatar di garlick
    Registrato dal
    Dec 2001
    Messaggi
    385
    prova così

    <script language="JavaScript">

    function apri(url, w, h) {
    var windowprops = "width=" + w + ",height=" + h;
    popup = window.open(url,'remote',windowprops);
    }

    </script>

    Borghezio Asino



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.