per aprire popup centrata
SCRIPT SU PER PULSANTE FLASH
Script su HTMLcodice:on (release) { getURL("java script:apriPopupCentrata('tuapagina.htm', 'HTML', 750, 350, 'status=no, toolbar=no,scrollbars=auto')"); }
codice:<SCRIPT language=JavaScript type=text/JavaScript> <!-- function apriPopupCentrata(nome, titolo, lar, alt, feat){ var wdt = screen.width; var hgt = screen.height; var x = Math.round( (wdt / 2) - (lar / 2) ); var y = Math.round( (hgt / 2) - (alt / 2) ); window.open(nome, titolo, 'width=' + lar + ',height=' + alt + ',left=' + x + ',screenX=' + x + ',top=' + y + ',screenY=' + y + ',' + feat); } //--> </SCRIPT>
chiaramente javascript va scritto tutto unito

Rispondi quotando