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

    Math.floor non funge su firefox

    Sale a tutti
    ho questo problema che su ie funziona mentre su firefox no
    Questo è lo scirpt:

    function publON(x){
    var ElPubl=document.getElementById("publ");
    if(x==0){
    ElPubl.style.display="block";
    }
    x++;
    var alt= 300;
    var lung= 300;
    var t= Math.floor((screen.height-alt-100)/2);
    var l= Math.floor((screen.width-lung)/2);
    ElPubl.style.top=t;
    ElPubl.style.left=l;
    ElPubl.style.width=alt+"px";
    ElPubl.style.height=x+"px";
    if(x<300){
    setTimeout("publON("+x+")",1);
    }
    }
    </SCRIPT>
    <body onload="publON(0)">
    <div id="publ" style="position:absolute; display:none; z-index:1">

    NON CAPISCO IL PERCHè SU FIREFOX NON ME LO METTE A CENTRO SCHERMO.

  2. #2
    Utente di HTML.it L'avatar di Xinod
    Registrato dal
    Sep 2000
    Messaggi
    13,649

    Re: Math.floor non funge su firefox

    Originariamente inviato da techno
    ElPubl.style.top=t+"px";
    ElPubl.style.left=l+"px";

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 © 2024 vBulletin Solutions, Inc. All rights reserved.