Change Vimeo Video using JQuery
Posted
by Abs
on Stack Overflow
See other posts from Stack Overflow
or by Abs
Published on 2010-06-03T12:09:31Z
Indexed on
2010/06/03
13:04 UTC
Read the original article
Hit count: 251
Hello all,
How can I change the ID of the embedded vimeo video? Here is the embed code for example:
<object width="578" height="325">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11527784&
server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00ADEF&fullscreen=1" />
<embed src="http://vimeo.com/moogaloop.swf?clip_id=11527784&
server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&
color=00ADEF&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true"
allowscriptaccess="always" width="578" height="325"></embed></object>
How can I change the clip_id in both the object value and the embed source using JQuery or just pure javascript?
The effect this has is that it changes the video. I have tested this on Firefox, if this won't work on all browsers please let me know!
Thanks all for any help
© Stack Overflow or respective owner