Rocket Image

Want to destory a webpage with a rocket powered by Javascript,

Yes? Then click the button below:

Now press the  space  button to shoot at webcontent and move with the arrow keys.

Also press and hold the “B” button to find targets.

Read on to learn how to add this to your website or blog and to  your bookmark bar.

It is quite simple to add this to your website or blog. You can even add it to your bookmark bar.

NOTE: This cool javascript rocket was made by Erik Andersson.

Visit http://erkie.github.com/ and drag the graphic onto your bookmarks bar to use this on whatever webpage you want.

To add this to your website/blog:

    1. Download: (Press control + s to save if you see just see text and save as asteroids.min.js)
      http://www.articlevoid.com/misc/javascript/asteroids/asteroids.min.js
    2. Next upload the javascript file to your website/blog or hosting space. (If you dont have it you may use http://erkie.github.com/ javascript text.
    3. Use the following code:
      javascript:var s = document.createElement(‘script’);s.type=’text/javascript’;document.body.appendChild(s);s.src=’INSERT JS LOCATION HERE‘;void(0);


  1. Change INSERT JS LOCATION HERE to the location of your Javascript file with the .js extention included. (For example: http://www.articlevoid.com/misc/javascript/asteroids/asteroids.min.js)
  2. Then copy and paste code into your browser and press enter. Then use with buttons, graphics or other web tools.

Button Example:

<input type="button" name="Rocket" value="Click Me" onClick="javascript:var s = document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='INSERT JS LOCATION HERE';void(0);" />

Graphics Example:

<a href="javascript:var s = document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='INSERT JS LOCATION HERE';void(0);"<img src="IMAGE LINK" /></a>

Enjoy!

   

About the Author Gold Star Staff Member

Mohammad Permalink: http://www.articlevoid.com/?action=permalink&article=89
Author:
Website: https://mohammadg.com
About me: The webmaster of ArticleVoid. I own many other websites and I am fluent in X(HTML), PHP, Javascript, Java and C++. I spend a lot of my time online and currently own many websites. I love writing and created this website so users can share their knowledge in order to make the world just a little bit smarter!

  • authorBy:
  • writerPosted On:
  • live Published articles: 43

Comments (2)

  • refggr
    refggr (May 1, 2015 at 8:05 am)

    meh its ok

  • Brian Lee
    Brian Lee (February 17, 2016 at 11:11 am)

    good

Post Comment

Most Recent Articles from Internet Goodies Category: