Home > Web Front-end > JS Tutorial > Awesome jQuery Space Mouse DOM Shooter

Awesome jQuery Space Mouse DOM Shooter

尊渡假赌尊渡假赌尊渡假赌
Release: 2025-03-05 00:44:17
Original
123 people have browsed it

Want to turn your web browser into a spaceship battleground? This fun trick lets you blast away at web pages using a tiny mouse-controlled ship!

Awesome jQuery Space Mouse DOM Shooter

Simply paste the following JavaScript code into your browser's address bar and press Enter. A triangular spaceship will appear in the top left corner.

Controls:

  • W: Move Up
  • A: Move Left
  • D: Move Right
  • Spacebar: Shoot

Destroy Your Favorite (or Least Favorite!) Websites!

Here's the code. Try the first option first; if it doesn't work, try the second.

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);
Copy after login

Alternative (jQuery):

jQuery(document).ready( function() {
    jQuery.getScript('http://erkie.github.com/asteroids.min.js');
});
Copy after login

Have fun obliterating those websites!

The above is the detailed content of Awesome jQuery Space Mouse DOM Shooter. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template