Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

object, param, jquery

<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.

like image 202
AlexC Avatar asked Dec 06 '22 05:12

AlexC


1 Answers

Have you considered using jQuery SWFObject plugin?

http://jquery.thewikies.com/swfobject/

like image 83
SolutionYogi Avatar answered Dec 24 '22 14:12

SolutionYogi