How to move a DIV to a DOM with a flash player without forcing the flash player to update

I have something like this:

<div id="doc"> <div id="main"> </div> <div id="rail"> <div id="video"> <object>....</object> </div> </div> </div> 

If I use:

 $('#video').appendTo('#doc'); 

The flash is updated. Is there a way to move the div and not trigger a flash update?

thanks

+4
source share
1 answer

In the @Mark Robbins comment changing the actual hierarchical position of the flash div container, the problem is here. If the rest of your code allows this, you can create an absolutely positioned div for your flash <object> and move from one place to another in your layout instead of deleting it and adding it to dom using .appendTo() .

Not an ideal solution, as you probably need to change the layout, but it will allow you to move the div without updating Flash.: \

0
source

Source: https://habr.com/ru/post/1391740/


All Articles