I can't seem to change object attributes in html while using jQuery. It works on images... Can does it just not work on swf objects?
Here is my code:
HTML::
Code:
<input type="button" id="larger" value="Big" />
<input type="button" id="smaller" value="Small" />
<object id="game" width="550" height="400">
<param name="game" value="Games/swf_games/4SecondFrenzy.swf">
<param name="quality" value="high">
<embed src="Games/swf_games/4SecondFrenzy.swf" quality="high" type="application/x-shockwave-flash" width="550" height="400"></embed>
</object>
jQuery:: (obviously under $(document).ready()
Code:
$('#larger').click(function(){
$('object').attr({
'width': '825',
'height': '600'
});
});
$('#smaller').click(function(){
$('object').attr({
'width': '225',
'height': '200'
});
});
Thank you very much!