10-22-2005, 01:42 PM
இதை அப்பிடியே கொப்பி செய்து <Body>பகுதியில் போடவும்.
இந்த கோட்டுக்கு Right Click செய்யும் போது எவ்விதமான மெனுவோ தகவலோ வராது.
<script language=JavaScript>
<!--
//Disable right mouse click Script
function clickIE4(){
if (event.button==2){
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")
// -->
</script>
கீழே உள்ள code ஐ பயன்படுத்தினால் Right Click செய்யும் போது தகவல் தரும். அத்தகவலுக்கு பதிலாக நீங்கள் விரும்பிய தகவலை இட நிறமாக்கப்பட்ட பகுதியில் மாற்றம் செய்யவும்.
<script language=JavaScript>
<!--
//Disable right mouse click Script
var message="Function Disabled!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
இந்த கோட்டுக்கு Right Click செய்யும் போது எவ்விதமான மெனுவோ தகவலோ வராது.
<script language=JavaScript>
<!--
//Disable right mouse click Script
function clickIE4(){
if (event.button==2){
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")
// -->
</script>
கீழே உள்ள code ஐ பயன்படுத்தினால் Right Click செய்யும் போது தகவல் தரும். அத்தகவலுக்கு பதிலாக நீங்கள் விரும்பிய தகவலை இட நிறமாக்கப்பட்ட பகுதியில் மாற்றம் செய்யவும்.
<script language=JavaScript>
<!--
//Disable right mouse click Script
var message="Function Disabled!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
<img src='http://www.danasoft.com/sig/ragavaa.jpg' border='0' alt='user posted image'>

