Download the files in zip format, and copy the contents to the same folder where your web page is.
Insert the following line into the head of your page:
<script type="text/javascript" src="bubbletrail.js"></script>
You can accept the defaults or assign new values to these variables:
Max size of a bubble.
bubbletrail.size= 10;
Max position jitter.
bubbletrail.size= 50;
Define average z order position of image.
Drag the example image over this section to see it working.
This section is on a relative positioned layer with z-index of 9.
See how the mouse trail images can go behind the text.
bubbletrail.zindex= 5
Max life of a bubble in milliseconds.
bubbletrail.life= 1000;