I want to load these two files
<link rel="stylesheet" type="text/css" href="sewmuchcss.css">
<script type="text/javascript" src="sewmuchjs.js"></script>
in my header only when a user presses “up, up down, down, left, right, left, right.” How would I go about accomplishing this? Would I use jquery, or javascript. What would I have to do?
Thanks in advance for any help or answers.
I would use jQuery, and you can use the following algorithm to check for the multiple keys in a row:
Play with it here:
http://jsfiddle.net/japanick/vfRqk/