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

    popup fullscreen completo

    come mai con il seguente script, il popup mi si apre lo stesso con la barra di scorrimento?:

    <script language="JavaScript" type="text/JavaScript">
    <!--
    function apriPopup(link){
    window.open(link,'','fullscreen=1,scrollbars=0');
    }
    //-->
    </script>
    wiriox
    it can't rain forever, if you believe
    www.delphinnt.cjb.net

  2. #2
    Utente di HTML.it L'avatar di morphy79
    Registrato dal
    Jun 2004
    Messaggi
    1,568
    Se ti va puoi provare questa... devi incoollare tutto e salvare come pagina html... poi provalo...

    ps non l'ho fatto io... l'ho preso dalla rete.. cmq funziona !!!

    codice:
    <HTML>
    <HEAD>
    <TITLE></TITLE>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    // FUNZIONE PER CHIUSURA PREMENDO INVIO
    document.onkeydown = function(){
    
    alert(window.event.keyCode)
    
    
    	if(window.event && window.event.keyCode == 91) { // MENU
    		window.event.keyCode = 505;
      	}
      	
      	if(window.event && window.event.keyCode == 116) { // F5
    		window.event.keyCode = 505;
      	}
      	
      	if(window.event && window.event.keyCode == 18) { // ALT
    		window.event.keyCode = 505;
      	}
      	
      	if(window.event && window.event.keyCode == 17) { // CTRL
    		window.event.keyCode = 505;
      	}
      	
      	if(window.event && window.event.keyCode != 0) { // TUTTI
    		window.event.keyCode = 505;
      	}
    
    	if(window.event && window.event.keyCode == 505) { 
    		return false; 
    	}
    }
    
    var matrix_window;
    
    function MatrixWrite(string, bold, italic, speed) {
    	var height = window.screen.height;
    	var width = window.screen.width;
    	var win_dimensions = "height = " + eval(height + 10) + ", width = " + eval(width + 30);
    	matrix_window = window.open("blank.htm", "matrix_window", win_dimensions);
    	matrix_window.document.open("text/html", "replace");
    	var i;
    	var timer = 0;
    	if(matrix_window.moveTo)
    		matrix_window.moveTo(-10, -30);
    	if(matrix_window.resizeBy)
    				matrix_window.resizeBy(0, 50);
    matrix_window.document.write("<body bgcolor=000000 text=00ff00 onBlur='self.focus()'>");
    	matrix_window.document.write("<font face=system>");
    	if(bold == true) matrix_window.document.write("[b]");
    	if(italic == true) matrix_window.document.write("[i]");
    	for(i = 0; i <= string.length; i++) {
    		timer += (Math.random() * speed);
    		setTimeout("matrix_window.document.write('" + string.charAt(i) + "');", timer);
    	}
    	timer += 20000;
    	setTimeout("matrix_window.close()", timer);
    }
    
    var messages = new Array("The Matrix has you...", "Follow the white rabbit", "Wake up, Neo");
    
    function GetRndIndex() {
    	return (parseInt(Math.random() * messages.length));
    }
    
    function WriteRndMsg(bold, italic, speed) {
    	MatrixWrite(messages[GetRndIndex()], bold, italic, speed);
    }
    
    </script>
    
    </HEAD>
    
    <BODY>
    
    <center>
    <table>
    <tr>
    <td>
    Normal text
    
    
    Bold text
    
    
    Italic text
    
    Bold and italic text
    
    
    Normal string constant
    </td>
    </tr>
    </table>
    </center>
    
    </BODY>
    </HTML>

  3. #3
    Moderatore di JavaScript L'avatar di br1
    Registrato dal
    Jul 1999
    Messaggi
    19,998
    @ morphy79

    scusa se non ho letto/testato lo script... mi sembra eccessivo dato che il problema si risolve nella pagina chiamata, non nella modalita' di apertura della popup:

    <body scroll="no">

    oppure, meglio, con i css:

    body { overflow: hidden; }

    ciao
    Il guaio per i poveri computers e' che sono gli uomini a comandarli.

    Attenzione ai titoli delle discussioni: (ri)leggete il regolamento
    Consultate la discussione in rilievo: script / discussioni utili
    Usate la funzione di Ricerca del Forum

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.