You are here: Random Image > Put this on your site

Put the Random Image on your site

There are two ways to put the Random Image on your own Web site.

SOAP client

For those interested in SOAP Web services, a WSDL is available for consumption in your favourite programming language. If you're so inclined, check out the sample SOAP client in PHP.

Javascript

If you're not in the mood for SOAP, or if cut and paste is more your bag, use the following javascript snippet:

<script language="JavaScript" src="http://www.ghettodriveby.com/client/js/"></script>

You can also provide some variables. If you'd like an image for a specific word rather than a random word, or you'd like specific dimensions for your image, tack them onto the URL:

<script language="JavaScript" src="http://www.ghettodriveby.com/client/js/?word=monkey&x=100&y=100"></script>

Browse the alphabet: A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z