
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:
- 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 - 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.
- 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);
- 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)
- 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!
Word Count:
213
Back to 