Posted: Wed May 28, 2003 6:51 pm Post subject: [tutorial] JavaScript- A Mix of Codes
PRINTING YOUR WEBSITE
(this goes in your head)
code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin function textprint(text) {
text=document
print(text)
} // End -->
</script>
(this goes in your body)
code:
<FORM>
<INPUT NAME="print" TYPE="button" VALUE="Print this Document!" ONCLICK="textprint()">
</FORM>
Sponsor Sponsor
void
Posted: Wed May 28, 2003 6:58 pm Post subject: (No subject)
NO RIGHT CLICK ON MY PAGE
code:
Put the following script in the head of your page:
<script language="Javascript1.2">
am = "BITCH, DONT TOUCH THAT BUTTON AGAIN!";
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>
JSBN
Posted: Wed May 28, 2003 7:02 pm Post subject: (No subject)
here's 10 bits
+10
void
Posted: Wed May 28, 2003 7:04 pm Post subject: (No subject)
thanks.....???...wow....you dont need to gimme bits if you dont think my tutorials good...coz thats some stuff that i copied out of my old sites.....and i didnt really put in the effort to deserve bits...but dont take them back