Pagina 1 di 6 1 2 3 ... ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 53
  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2002
    Messaggi
    541

    Blocca il tasto destro del mouse!

    Ciao ragazzi ,guardate questo sito:
    http://www.flash80.com/


    in pratica sia per IE che Mozzilla permette di bloccare il tasto destro del mouse!

    ce codiece hanno usato?

    Io conoscevo questo:

    codice:
    <SCRIPT LANGUAGE="JavaScript1.1"> 
    
    <!-- Begin 
    function right(e) { 
    if (navigator.appName == 'Netscape' && 
    (e.which == 3 || e.which == 2)) 
    return false; 
    else if (navigator.appName == 'Microsoft Internet Explorer' && 
    (event.button == 2 || event.button == 3)) { 
    alert("Spiacenti, il tasto destro del mouse e' disabilitato"); //elimina questa riga se non vuoi far comparire messaggi 
    return false; 
    } 
    return true; 
    } 
    document.onmousedown=right; 
    if (document.layers) window.captureEvents(Event.MOUSEDOWN); 
    window.onmousedown=right; 
    // End --> 
    
    </script>

  2. #2
    forse è qua in mezzo
    codice:
    
    var IE5=(document.getElementById && document.all)? true : false;
    var W3C=(document.getElementById)? true: false;
    var currIDb=null, currIDs=null, xoff=0, yoff=0; zctr=0; totz=0;
    
    function trackmouse(evt){
    if((currIDb!=null) && (currIDs!=null)){
    var x=(IE5)? event.clientX+document.body.scrollLeft : evt.pageX;
    var y=(IE5)? event.clientY+document.body.scrollTop : evt.pageY;
    currIDb.style.left=x+xoff+'px';
    currIDs.style.left=x+xoff+10+'px';
    currIDb.style.top=y+yoff+'px';
    currIDs.style.top=y+yoff+10+'px';
    return false;
    }}
    
    function stopdrag(){
    currIDb=null;
    currIDs=null;
    NS6bugfix();
    }
    
    function grab_id(evt){
    xoff=parseInt(this.IDb.style.left)-((IE5)? event.clientX+document.body.scrollLeft : evt.pageX);
    yoff=parseInt(this.IDb.style.top)-((IE5)? event.clientY+document.body.scrollTop : evt.pageY);
    currIDb=this.IDb;
    currIDs=this.IDs;
    }
    
    function NS6bugfix(){
    if(!IE5){
    self.resizeBy(0,1);
    self.resizeBy(0,-1);
    }}
    
    function incrzindex(){
    zctr=zctr+2;
    this.subb.style.zIndex=zctr;
    this.subs.style.zIndex=zctr-1;
    }
    
    function createPopup(id, title, width, height, x , y , isdraggable, boxcolor, barcolor, shadowcolor, text, textcolor, textptsize, textfamily, titlecolor ){
    if(W3C){
    zctr+=2;
    totz=zctr;
    var txt='';
    txt+='<div id="'+id+'_s" style="position:absolute; left:'+(x+10)+'px; top:'+(y+10)+'px; width:'+width+'px; height:'+height+'px; background-color:'+shadowcolor+'; filter:alpha(opacity=50); visibility:visible"> </div>';
    txt+='<div id="'+id+'_b" style="border:outset '+barcolor+' 2px; position:absolute; left:'+x+'px; top:'+y+'px; width:'+width+'px; overflow:hidden; height:'+height+'px; background-color:'+boxcolor+'; visibility:visible">';
    txt+='<div style="width:'+width+'px; height:16px; background-color:'+barcolor+'; padding:0px; border:1px"><table cellpadding="0" cellspacing="0" border="0" width="'+(IE5? width-4 : width)+'"><tr><td width="'+(width-20)+'"><div id="'+id+'_h" style="width:'+(width-20)+'px; height:14px; font: bold 12px Arial; color:'+titlecolor+'"> '+title+'</div></td><td align="right"><a onmousedown="document.getElementById(\''+id+'_s\').style.display=\'none\'; document.getElementById(\''+id+'_b\').style.display=\'none\';return false">[img]close.gif[/img]</a></td></tr></table></div>';
    txt+='<div id="'+id+'_ov" width:'+width+'px; style="margin:2px; color:'+textcolor+'; font:'+textptsize+'pt '+textfamily+';">'+text+'</div></div>';
    document.write(txt);
    this.IDh=document.getElementById(id+'_h');
    this.IDh.IDb=document.getElementById(id+'_b');
    this.IDh.IDs=document.getElementById(id+'_s');
    this.IDh.IDb.subs=this.IDh.IDs;
    this.IDh.IDb.subb=this.IDh.IDb;
    this.IDh.IDb.IDov=document.getElementById(id+'_ov');
    if(IE5){
    this.IDh.IDb.IDov.style.width=width-6;
    this.IDh.IDb.IDov.style.height=height-22;
    this.IDh.IDb.IDov.style.scrollbarBaseColor=boxcolor;
    this.IDh.IDb.IDov.style.overflow="auto";
    }else{
    this.IDh.IDs.style.MozOpacity=.5;
    }
    this.IDh.IDb.onmousedown=incrzindex;
    if(isdraggable){
    this.IDh.onmousedown=grab_id;
    this.IDh.onmouseup=stopdrag;
    }}}
    
    if(W3C)document.onmousemove=trackmouse;
    if(!IE5 && W3C)window.onload=NS6bugfix;

  3. #3
    Utente di HTML.it
    Registrato dal
    Sep 2002
    Messaggi
    541
    ...provato... pare di no

  4. #4
    Scusa la curiosità, ma a cosa ti serve disabilitare il tasto destro del mouse?

  5. #5
    Utente di HTML.it
    Registrato dal
    Sep 2002
    Messaggi
    541
    mah per svariate funzioni diciamo

  6. #6

  7. #7
    Utente di HTML.it
    Registrato dal
    Sep 2002
    Messaggi
    541
    si so ... che non serve molto ma non ti permette di copiare il testo ad esempio...

  8. #8
    Errato. Dimentichi il menù modifica del browser o la combinazione "CTRL+C". Poi?

  9. #9
    Utente di HTML.it
    Registrato dal
    Sep 2002
    Messaggi
    541
    ahh si!... allora prova su quel sito a farmi "CTRL+C" di un pezzo di testo e poi dimmi

  10. #10
    Originariamente inviato da fasa
    ahh si!... allora prova su quel sito a farmi "CTRL+C" di un pezzo di testo e poi dimmi
    Flash80 est indisponible
    en raison de la mise en ligne de sa nouvelle version.

    Veuillez réessayer dans quelques jours
    ou bien inscrivez vous a la lettre d'infos du site
    pour être prévenu de cette réouverture.



    Nous vous prions de nous excuser pour le désagrément occasionné.

    ... toutefois, le forum reste actif. Cliquez ici pour y accéder

    A très bientôt sur flash80.com !!
    Poi?

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.