CSS Sprite Links

I am trying to use CSS sprites, and confused about how to link the sprite.

Before:

<img src="http://buddha.fm/activity.png">

After:

<img src="http://buddha.fm/

.sprite-activity{ background-position: 0 0; width: 144px; height: 20px; }

">