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.shadowhacker.net/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.shadowhacker.net/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.
<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!
and comment and share to your friends here!




0 reactions:
Post a Comment