PDA

Click to See Complete Forum and Search --> : Is there a script ?


dollazo
April 10th, 2002, 05:29 AM
Would anyone perhaps have a html or java code around somewhere that when a web user right clicks on a web page a message of your choice is shown and then if the user right clicks again then the browser is automatically closed.

If anyone has a code like this or similar to this, please let help me know.

Thank You
Dollazo

Lenny316
April 10th, 2002, 07:28 AM
what you want is a "javascript" script. go to a javascript site (eg www.a1javascripts.com) and theres listings of all kinds of scripts.

valhallen
April 10th, 2002, 10:49 PM
here is the code to display a msg when someone right clicks on a web-page



<script language=JavaScript>
<!--

/*
Disable right mouse click Script
For full source code to this script and 100's more, visit
http://www.dynamicdrive.com
*/

var message="Function Disabled";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
else if (document.layers||document.getElementById) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>

as for shutting down the browser on the second click - soz dunno

v_Ln

silentstalker
April 11th, 2002, 01:29 AM
Hey I have a question as well, I dont know if anyone can answer or not, but for all you advance coders out there...

I only know HTML and haven't researched this too much yet. But, does anyone know a script to kill banner ads on a page?

dollazo
April 12th, 2002, 08:10 AM
Thank You for all your help

blackh0le
April 16th, 2002, 12:02 AM
But, does anyone know a script to kill banner ads on a page?

http://hackingtruths.box.sk/banns.htm

has banner blocking tricks for tripod, freeservers, geocities, angelfire, namezero and some more. dont know if they still work or not.