http://tinyurl.com/dar2ld
http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, ebru...@gmail.com <ebru...@gmail.com> wrote: > > > Hello, > > I want to show a youtube video in a modal messages but the video is > different on every link. So someone presses on the link > > <span id='afleveringVideo'><a href="http://www.youtube.com/watch? > v=gNNVF8rJjrw" id="video" title="Bekijk de spoiler van > {$foo.aflevering}" class="basic">Bekijk de spoiler</a></span> > > It starts the following: > > $(document).ready(function () { > $('#afleveringVideo input.basic, #afleveringVideo a.basic, > #video').click(function (e) { > e.preventDefault(); > var url = $(this).attr("href"); > alert(url); > $('input[name="berichtid"]').val(url); > $('#afleveringVideoModal').modal({persist: true}); > }); > }); > > And then it have to replace url_form_ahref into the url of the link: > > <div id="afleveringVideoModal" style='display:none;'> > <object width="480" height="385"><param name="movie" > value="url_form_ahref"></param><param name="allowFullScreen" > value="true"></param><param name="allowscriptaccess" value="always"></ > param><embed src="url_form_ahref" type="application/x-shockwave-flash" > allowscriptaccess="always" allowfullscreen="true" width="480" > height="385"></embed></object> > </div> > > Is this possible? > > Erwin