Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Math.floor su fireox

  1. #1

    Math.floor su fireox

    Salve a tutti
    ho questo roblema su uno scriptper posizionare n layer a centro pagina con IE funziona enssio mentre con firefox non funge
    illyer mi compare nel'angolo in alto a sinista,questo è lo script;

    function StaffClick(dato, x){
    var w=400;
    var h=400;
    var l= Math.floor((screen.width-w)/2);
    var t= Math.floor((screen.height-h)/2);
    var ElDiv= document.getElementById(dato);
    if(x==0){
    for(z=1;z<2;z++){
    document.getElementById("STF"+z).style.display="no ne";
    }
    ElDiv.style.left=l;
    ElDiv.style.top=t-100;
    ElDiv.style.display="block";
    }

  2. #2
    codice:
    function StaffClick(dato, x){
        for(var
            l       = (screen.width - 400) >> 1,
            t       = (screen.height - 400) >> 1,
            z       = 1,
            ElDiv   = document.getElementById(dato);
            x && z < 2;
            z++
        )
            document.getElementById("STF"+z).style.display="none";
        ElDiv.style.left    = l + "px";
        ElDiv.style.top     = (t - 100) + "px";
        ElDiv.style.display = "block";
    };
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

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