Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [tutorial] JavaScript- A Mix of Codes
Index -> Graphics and Design, Web Design -> (X)HTML Tutorials
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
void




PostPosted: 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
Sponsor
sponsor
void




PostPosted: 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




PostPosted: Wed May 28, 2003 7:02 pm   Post subject: (No subject)

here's 10 bits
+10
void




PostPosted: 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 Laughing
Display posts from previous:   
   Index -> Graphics and Design, Web Design -> (X)HTML Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: