sammywahoo
08-22-2001, 10:06 PM
I know this is very common and such. But I need a slightly more complicated version.
I want something that will disable right click, but I don't want the scary alert. I think that it is kind of rude. Does anyone know a way so that it will simply change the text displayed in the status bar instead of the alert? I tried replacing the part with
alert ( 'blah blah blah');
with
window.status( 'blah blah blah' );
but it didn't work. :( Does anyone know how to make it work? Thanks for any help! :)
nmjudy
08-23-2001, 08:46 PM
I found some cut and paste code at this URL that might work for you.
http://www.dhtmlshock.com/site-navigation/RightClickMenu/default.asp
You can customize what you want a right click menu to say without the annoying noisy alert box....like links or a message. See their sample for ideas. I know you can also disable the right click without having any alert box....just can't recall what that is off the top of my head. When someone right clicks, nothing happens....no alert, message or anything.
nmjudy
08-23-2001, 08:55 PM
I found a script that you can cut and paste for the silent alert for right click.
http://www.dynamicdrive.com/dynamicindex9/noright3.htm
djedditt
03-13-2003, 04:58 PM
This code disables the right click,
If you click the right button,
No alert pops up. =)
But,
nothing will be displayed in the status bar. ='(
Maybe this is good too.
Simply add the following code to the <BODY> section of your web page:
<script language=JavaScript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
-djedditt-
Do NOT bring up old threads! --Moderator