ajQuery - Start slideshow on click
<p>I'm new to jQuery and would like to start a slideshow after a link is clicked instead of after the page is loaded. How to do that?</p>

<pre><code>&gt;   &lt;script type="text/javascript"&gt;  
&gt; jQuery(document).ready(function($){ $("a[rel^='id']").prettyPhoto({
&gt;                 theme: 'pp_default',slideshow:5000, autoplay_slideshow:true});
&gt;         });
&gt;     &lt;/script&gt;
</code></pre>

<p>I would like to start it like this:</p>

<pre><code>&lt;a href="javascript:startSlideshow()"&gt;Start Slideshow&lt;/a&gt;
</code></pre>
