0
votes

I'm trying to use the following js to change the width and height of a swf.

$('object').attr({'width':100,'height':100});
$('object embed').attr({'width':100,'height':100});

The script works well on firefox, safari, IE8. However, it doesn't work on IE7.

Is there any solution?

2

2 Answers

0
votes

How about with

$('object, embed')
    .attr({'width':100,'height':100})
    .width(100).height(100);
0
votes

How about wrap the Flash with a div. Set the Flash to 100% height and width. And then you resize the div instead?