well, to disable right click:
Code:
<script language="JavaScript1.2">
f unction disabletext(e){
return false
}
function reEnable(){
return true
}
//if the browser is IE4+
document.onselectstart=n ew Function ("return false")
//if the browser is NS6
if (window.sidebar){
document.on mousedown=disabletext
documen t.onclick=reEnable
}
</scrip t>
Code to disable Print and Save As:
Code: ( text )
1.
<script language="JavaScript">
2.
<! --
3.
function noway(go) { if
4.
(document.all) { if (event.button == 2) { alert(popup); return
false; } } if (document.layers)
5.
{ if (go.which == 3) { alert(popup); return false; } } } if
(document.layers)
6.
{ document.captureEvents(Event.M OUSEDOWN); }
document.onmousedown=noway;
7.
// -->
8.
</script>
no right click for source code..
Code: ( text )
1.
<script language="JavaScript1.1">
2.
<!--
3.
var debug = true; function
4.
right(e) { if (navigator.appName == 'Netscape' && (e.which == 3
|| e.which
5.
== 2)) return false; else if (navigator.appName == 'Microsoft
Internet Explorer'
6.
&& (event.button == 2 || event.button == 3)) { alert('This Page
is fully
7.
protected!'); return false; } return true; }
document.onmousedown=right; if (document.layers)
8.
window. captureEvents(Event.MOU SEDOWN); window.onmousedown=right;
9.
//-->
10.
</script>
Disa ble Copy and Paste.
Add the following html code to your BODY tag:
Here is how your BODY tag may look once implimented:
Code: ( text )
1.
<body bgcolor="#FFFFFF" ondragstart="return false"
onselectstart="return false">
Code: ( text )
1. ondragstart="return false" onselectstart="return false"
Answered by
Romi
, an ibibo Master,
at
4:41 PM on July 02, 2008