开发者

How do I remove a flash video completely after the video was called by swfobject

开发者 https://www.devze.com 2022-12-24 14:53 出处:网络
Via SWFobje开发者_StackOverflow社区ct and AJAX I put in a video to a certain <div>. Using jQuery I tried this:

Via SWFobje开发者_StackOverflow社区ct and AJAX I put in a video to a certain <div>.

Using jQuery I tried this:

$('#youtubepreview').html('');

However that didn't remove it at all - the video still stayed right there.

Any ideas?


SWFObject also has a removeSWF method you can invoke if needed.

Assuming the SWF was embedded with the ID "mySwfID":

swfobject.removeSWF("mySwfID");


This worked for me:

$("#youtubepreview object").remove();
0

精彩评论

暂无评论...
验证码 换一张
取 消