كود منع استخدام الزر الايمن ((( لمنع سرقة الصور ))) .
صفحة 1 من اصل 1•
كود منع استخدام الزر الايمن ((( لمنع سرقة الصور ))) .
ا
ولا .. بدون نافذة
ثانيا الكود بنافذة
ثالثا الكود أخر بدون النافذة
تحياتى لكم
- الرمز:
<script language="JavaScript1.2">
function ejs_nodroit()
{
return(false);
}
document.oncontextmenu = ejs_nodroit;
</script>
- الرمز:
<script language=JavaScript1.2> function ejs_nodroit() { alert('ممنوع أستخدام الزر الايمن'); return(false); } document.oncontextmenu = ejs_nodroit; </script>
- الرمز:
<script language="JavaScript1.2">
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>
تحياتى لكم
رد: كود منع استخدام الزر الايمن ((( لمنع سرقة الصور ))) .
كود منع الزر الايمن على الصور فقط ولا يمنعه على باقى المنتدى
- الرمز:
<script>
/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit [url=http://www.dynamicdrive.com]http://www.dynamicdrive.com[/url]
*/
var clickmessage="Right click disabled no way !"
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}
function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>

الصفحة الرئيسية
س .و .ج




من طرف Digit@l في الإثنين 4 يونيو - 17:57



أقسام الدعم
هام : قوانين هذا المنتدى
كيف تحمي منتداك من الهكر
كيفية طلب كلمة سر جديدة