Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to add this to it, too, but I don't see how I can do that using my current header tag. The no right click JS needs to be in the header section.print start_html(-head=>[Link({-rel=>'StyleSheet', -href=>'main.css', +-type=>'text/css'})], -title=>"Welcome to my site!", -meta=>{'robots' +=>'nofollow'});
script language="Javascript1.2"> // (C) 2003 CodeLifter.com // Source: CodeLifter.com // Do not remove this header // Set the message for the alert box am = "This function is disabled!"; // do not edit below this line // =========================== bV = parseInt(navigator.appVersion) bNS = navigator.appName=="Netscape" bIE = navigator.appName=="Microsoft Internet Explorer" function nrc(e) { if (bNS && e.which > 1){ alert(am) return false } else if (bIE && (event.button >1)) { alert(am) return false; } } document.onmousedown = nrc; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (bNS && bV<5) window.onmousedown = nrc; </script>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to print CGI header
by Corion (Patriarch) on Feb 22, 2006 at 16:10 UTC | |
|
Re: how to print CGI header
by marto (Cardinal) on Feb 22, 2006 at 16:08 UTC | |
|
Problems with JavaScript from copy/paste sites
by dorward (Curate) on Feb 22, 2006 at 17:18 UTC |