Why doesn't my jQquery script work when loaded into another page?
<p>I have this code working perfectly fine on a page:</p>

<pre><code>&lt;script&gt;
$(window).load(function() {
  ThumbnailScroller("tsv_container","vertical",40,800,"easeOutCirc",0.4,500);
});
&lt;/script&gt;

&lt;script type="text/javascript" src="jquery.thumbnailScroller.js"&gt;&lt;/script&gt;
</code></pre>

<p>It doesn't however work, when i load this page into a div on another page. </p>

<p>I tried putting this code on the parent page with the div, but it still doesn't work. Can anyone tell me how to fix it so that the code runs on the parent page?</p>
