<object width="438" height="280" id="pano" >
<param value="url_flash" name="movie" />
<param value="false" name="menu"/>
<param value="high" name="quality"/>
<param value="#FFFFFF" name="bgcolor"/>
<embed width="438" height="280" pluginpage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="pano" bgcolor="#FFFFFF" quality="high" menu="false" src="url_flash"/>
</object>
I have this flash code, what I want is that when I click some buttons to change with jquery <embed src=''>
(for firefox) and the first <param>
(for IE)
How I can do that?
This works for embed but how I can do for param in IE ?
$('.link a').click(function() {
var urlconst = 'changed_url';
$(".flash_photo embed").attr({
src: changed_url
});
I tried
$('#pano param:first').val(changed_url)
But that doesn't work.
Have you considered using jQuery SWFObject plugin?
http://jquery.thewikies.com/swfobject/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With