changing an images src value when the user scrolls jquery
<p>I'm trying to attach an event handler to the scroll event that changes the value of the image tag's src value by returning a random value from an array of src values (titles)</p>

<p>$( function(titlemagic){</p>

<pre><code>var titles =[
</code></pre>

<p>//ive omitted the actual array contents in consideration of post length</p>

<pre><code>            ];  
</code></pre>

<p>var rand = Math.ceil(100*Math.random())</p>

<p>$('#id').attr('src', function(){ return titles[(rand)] }).scroll();</p>

<p>});</p>
