Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
உங்கள் இணைய தளத்தினைச் சிறப்பாக அமைத்திட
#4
இதை அப்பிடியே கொப்பி செய்து <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>

<img src='http://www.danasoft.com/sig/ragavaa.jpg' border='0' alt='user posted image'>
Reply


Messages In This Thread
[No subject] - by sOliyAn - 10-21-2005, 11:04 PM
[No subject] - by தூயவன் - 10-22-2005, 04:15 AM
[No subject] - by ragavaa - 10-22-2005, 01:42 PM
[No subject] - by தூயவன் - 10-22-2005, 03:36 PM
[No subject] - by Rasikai - 10-22-2005, 09:47 PM
[No subject] - by AJeevan - 10-24-2005, 07:30 PM
[No subject] - by அனிதா - 10-25-2005, 09:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)