[OU] repositioning flash

Marcelo Barbudas nostef at gmail.com
Sun Dec 9 11:29:25 UTC 2007


Hi

I am trying to hide a flash movie when a user clicks a button.

Since using display: none would cause all browsers to refresh the movie, 
I used negative margins.

This is the code:

function special_hide(value) {
     $(value).style.margin = '0 0 0 -5000px';
     $(value).height = '1px';
}

function special_show(value) {
     $(value).style.margin = '1px';
     $(value).height = null;
}

It seems to be working in Firefox and IE, but not in Opera. While the 
div containing the flash is hidden, the flash movie doesn't move.

--
M.


More information about the Opera-Users mailing list