Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function messageCredit(){
- alert("MoveJS By;TheSmooth");
- }
- function createVar(){
- var up = false, down = false;
- }
- function upClickBoth(){
- document.addEventListener("keydown", function (evt) {
- if (evt.keyCode == 87||evt.keyCode==38){up = true;}
- }};
- function downClickBoth(){
- document.addEventListener("keydown", function (evt) {
- if (evt.keyCode == 83||evt.keyCode==40){down = true;}
- }};
- function testVar(){
- if(up=true){
- alert("great");
- }
- if(down=true){
- alert("great");
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement