i am trying to show/hide a flash object based on click of button, but the code is not working
//to hide
$('object').css({visibility: 'hidden'});
//to show
$('object').css({visibility: 'visible'});
i dont want to use .show() and .hide() as they will also remove the area of flash content.
Then to toggle it back, you can:
I only tested this in Firefox. For other browsers you may also need to set the wrapper div’s height and width to be equal to the object’s height and width.