Featured Microbes

This is a simple javascript project that I built to display a random "Featured Microbe" on my website. It is really not very complicated. The javascript defines an array, which is then populated with information about fifty different microbes. A random index number is selected each time the page is loaded, and the corresponding information is plugged into the html document. This code is styled using the associated css file.

FILES

All of the files for this gallery are available in my GitHub repo at https://github.com/weebeasties/featured_microbe.

DEPLOYING

To use these resources on your own site, the process is pretty simple.

  1. Place a copy of microbes.css in your /css folder.
  2. Place a copy of microbes.js in your /js folder.
  3. Place the /microbes folder and it's images into your /images folder.
  4. Copy the html from webpage_code and paste into the correct parts of your web page.

That's it! The gallery should now appear in your page. Feel free to tweak the css to fit the look and feel of your page. You can also edit the js file to add, delete, or modify the entries. Have fun!