Pamokos

Siuntiniai

Jūsų puslapiui

New Tutorials Uždrausti dešinį palės klavišą (be įspėjimo)

Autorius: Svecias  Data: 2005-04-29 23:36:36 
Lygis: Pradedantiems  Pamatė: 870 
Versija:    

Šį scenarijų įdėkite tarp <head> ir </head> žymenų:



<script language="JavaScript1.2">

if (window.Event)

document.captureEvents(Event.MOUSEUP);


function ntm()

{

event.cancelBubble = true

event.returnValue = false;


return false;

}


function nrc(e)

{

if (window.Event)

{

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;

}


}

if (document.layers) {

document.captureEvents(Event.MOUSEDOWN);

}

document.oncontextmenu = ntm;

document.onmousedown = nrc;

document.onmouseup = nrc;

//-->

</script>


Reklama

Ieško namų!

Draugų nuorodos

Statistika

pamokų: 472
siuntinių: 315
vartotojų: 8620
autorių: 66
naršo: 2 + 6

Keiskis.lt