Search Field Guide
Advanced Search
MT Gov Logo
Montana Field Guide

Montana Field Guides

Link to the Field Guide

If you would like to display photos from our Field Guide on your own site, you can place the following code snippet in your page.  This will display a random image from our Field Guide each time the page is refreshed and provide a link directly to that species page.

<script src='https://FieldGuide.mt.gov/RandomImage.asp?maxw=306&maxh=202'></script>

Will produce something like:

The parameters you can include are:

  • maxw - Maximum Width of the image (default is 300 px wide)
  • maxh - Maximum Height of the image
  • filter - "A" for just animals, "P" for just plants (default is both)
  • soc - "true" if you want just the Species of Concern, (default is false)
  • inv - Options:
    • "ALL" = All except Biocontrol Species
    • "AIS" = Aquatic Invasive Species
    • "NOX" = Noxious Weeds
    • "FPEST" = Forest Pests
    • "APEST" = Agricultural Pests
    • "BIOC" = Biocontrol Species

Examples:

All Species
<script src='https://FieldGuide.mt.gov/RandomImage.asp'></script>
Just Animals
<script src='https://FieldGuide.mt.gov/RandomImage.asp?filter=A'></script>
Just SOC Animals
<script src='https://FieldGuide.mt.gov/RandomImage.asp?filter=A&soc=true'></script>
Plants with a Max Width and Height set
<script src='https://FieldGuide.mt.gov/RandomImage.asp?filter=P&maxw=250&maxh=100'></script>
All Invasive Species
<script src='https://FieldGuide.mt.gov/RandomImage.asp?inv=ALL'></script>
Aquatic Invasive Species
<script src='https://FieldGuide.mt.gov/RandomImage.asp?inv=AIS'></script>
Noxious Weeds
<script src='https://FieldGuide.mt.gov/RandomImage.asp?inv=NOX'></script>