#1
|
||||
|
||||
Different Kinds of JavaScript Codes!!
hehehe...First of all, Thank you for viewing this thread! Please do comment and tell me if you have some problems. I will TRY to help you. So, let me explain. This is how you use the codes. You take a code you find on here, you copy & paste it into your web-address bar (Which should currently say something like...http://victoryroads.net/thread/) Press enter, and it "preforms" a trick! If you like these codes, please post containing some of your javascript codes. If there is a space between java and script, please remove the space. What I have found so far: Code: Code:
javascript: contentBodyEditable="true".DesginMode="message" I actually found that last one on accident...While trying to remember this one: Code: Code:
javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0 Code: HTML Code:
javascript: alert('message here'); --------------------------------------------------------------------- This is a code Yoshi648 (Admin) found/made (all credits go to him ) Code:
javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0); After you press enter, a triangle should appear near the top left of your screen. Control it like the ship from Asteroids using the arrow keys to steer and Space to shoot. Watch everything you shoot at go bye-bye. Your score appears in the bottom-right of the screen and you can press ESC to leave (though if you want to use the webpage normally, ya may want to refresh ). Yoshi648's original thread: http://www.victoryroad.net/showthread.php?p=151524 --------------------------------------------------------------------- Alrite!! Now I'll show you a code I found on a website called javascriptfreecode.com Code:
<!-- this script got from www.javascriptfreecode.com-Coded by: Krishna Eydat --> <SCRIPT LANGUAGE="JavaScript"> var message="Function Disabled!"; /////////////////////////////////// function clickIE() {if (document.all) {alert(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {alert(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") // --> </script> <font face="Tahoma"><a target="_blank" href="http://www.javascriptfreecode.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font> Next. I hope you enjoyed them Heres a rare unique one: Code:
javascript: confirm('Your computer can been infected by a deadly virus, you need more virtual memory. Press Yes to continue this procces'); alert('Continuing anyway'); In case you have any request on tutorials or codes, please don't ask. I am not a JavaScript expert. Last edited by Leo Breacker; April 5, 2011 at 06:06:52 PM. |
|