Dear Sudhan,
I don't know any
VB script which does this. But you can include this Javascript in the head tag. This will prevent thr menu appearing when any element on the page is clicked.
<script language="JavaScript1.1">
function right(e)
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{
alert('This Page is fully protected!');
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</script>
----------------------------------------------------------------
I am including this in my pages. I got this from
www.dynamicdrive.com some 3 years back.
But this is of little use in "REALLY" protecting your images. There are other methods to take away your image. Some of them are :
1) Save the page. REmove Javascript from head.
2) Disable Javascript and try.
3) View the source and get the full path to the image. Type that in the browser. right click the image and save.
You may prevent this by windows authentication on the images folder.
4) Just click "print screen". Go to paint. Paste the page. Cut only necessary portion. Make it to JPG image.
So, I am using an applet nowadays to prevent taking screen shots. (You can get a number of such applets from
www.hotscripts.com). This will require JVM to be installed on browser.