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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...