Jump to content
Sign in to follow this  
gaby

Script Pentru Dezactivarea Click-ului Dreapta

Recommended Posts

Aveti o pagina in care doriti dezactivarea click-ului dreapta?

Nimic mai simplu, tot ce trebuie sa faceti este sa inserati acest script in pagina dorita.

<script>if (document.all) { document.oncontextmenu = function () {return false;} } else { document.captureEvents(Event.KEYDOWN); if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=right; } else { document.captureEvents(Event.MOUSEUP); document.onmouseup=right; } } document.onkeydown=nobutton; function right(e) { if (document.layers) { if (e.which>1) {return false;} } else if (document.getElementById) { if (e.button==3) { e.preventDefault(); return false; } } return true; } function nobutton() { (document.all) ? kCode=event.keyCode : kCode=e.which; if (kCode==93) {return false;} return true; } document.oncontextmenu = function(){return false} </script>

Share this post


Link to post
Share on other sites

Salut..Intradevar merge acest script..am pus pe forum si pe portal..dar totusi am o intrebare..am ceva bannere pentru parteneriat..si am codul html sub banner..cum fac ca acol sa mearga click dreapta..qa sa poata sa copieze..

Share this post


Link to post
Share on other sites

Salut, scuze de intarziere (BAC-ul :crazy:). Cu acest script nu se poate face ceea ce doresti tu, si nici alta solutie nu prea vad :-?

Poate doar sa aplici doar unor bucati (div-uri, tabele) din site script-ul :-?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×