Ciao lupoz,
la funzione modificala così
e poi la richiami passando l'idcodice:<script type="text/javascript"> function commenti(id) { var w = 700; var h = 320; var l = Math.floor((screen.width-w)/2); var t = Math.floor((screen.height-h)/2); window.open("commenti.php?id_sito="+id,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l); } //--> </script>
codice:commenti(567);![]()