<SCRIPT language=javascript>
//No Right Click Script
function NSclick(e) {
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
if (e.which == 3) {
return false;
}
}
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=5) {
if (e.button == 2 || e.button == 3) {
e.preventDefault();
return false;
}
}
}
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
document.onmousedown=NSclick;
document.captureEvents(Event.MOUSEDOWN);
}
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=5) {
document.onmouseup=NSclick;
}
if (navigator.appName=="Microsoft Internet Explorer") {
document.oncontextmenu = new Function("return false;")
}
//nots
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</SCRIPT>Mozilla'da da çalışmasını sağlamak için nasıl bir kod eklemem lazım?
Java script koduna Mozilla'da çalıştırmayı nasıl ekleyebilirim?
1
●1.043
- 01-07-2010, 20:18:13
- 02-07-2010, 16:14:05