Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Info Coronavirus/Vaccinare vs Fake News

Prețul, prețurile

Anulare contract vanzare cumparar...

scoala postliceala sanitara si hi...
 Copiere 2 sau mai multe valuri cu...

La multi ani @AlexFCSB4!

La multi ani @silcar!

La multi ani @Cipry7!
 Intretinere F30 vs Audi A4 vs Mer...

drept de autor pentru o poezie

Inlocuire lichid cooler procesor ...

Baterie atv
 Proroblema cu centre de greutate

Gasire cheie in iarba

Contract nou cablu/internet fix

aparat auditiv
 

No Right-Click & Co scripts

- - - - -
  • Please log in to reply
3 replies to this topic

#1
Courage

Courage

    Founder

  • Grup: Senior Members
  • Posts: 21,236
  • Înscris: 26.11.2001
Sunt mai multe variante ale acestui script, le voi adauga pe masura ce le voi gasi.
puneti aceste scripturi intre ...

Varianta 1:

<script LANGUAGE="javascript">
// you can get more scripts from [url="http://www.softnews.ro/forum"]http://www.softnews.ro/forum[/url] - WEB Design Area
function click() {
if (event.button==2) {
alert('DO NOT STEAL!');
}
}
document.onmousedown=click
// -->
</script>

Varianta 2: - nu apare deloc meniu contextual !!!

<script>
// you can get more scripts from [url="http://www.softnews.ro/forum"]http://www.softnews.ro/forum[/url] - WEB Design Area
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event

function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false;

return false;
}

function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}

}

document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
</script>

Varianta 3: - blocheaza right-click si tastele Ctrl si Shift !

<script language="javascript">
// you can get more scripts from [url="http://www.softnews.ro/forum"]http://www.softnews.ro/forum[/url] - WEB Design Area
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("Sorry, that function is disabled");return false;}return true;}function keypressed(){alert("Sorry, that function is disabled");}document.onmousedown=right;document.onkeydown=keypressed;
</script>


#2
-=CyberMix=-

-=CyberMix=-

    Moderator

  • Grup: Members
  • Posts: 558
  • Înscris: 26.11.2001
Acesta scoate definitiv comanda Click dreapta
Se va introduce intre liniile <body> si

	 <script language=Javascript>
 
</script>


#3
r3ddr

r3ddr

    Active Member

  • Grup: Members
  • Posts: 1,903
  • Înscris: 29.11.2001
how about view/source in IE ? :o

#4
Courage

Courage

    Founder

  • Grup: Senior Members
  • Posts: 21,236
  • Înscris: 26.11.2001

Quote

Originally posted by r3ddr
how about view/source in IE ? :o

Pe asta o stiu doar utilizatorii avansati, adica aceia care ai fi interesati de codul sursa :drac:

Anunturi

Bun venit pe Forumul Softpedia!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate