开发者

How to get Flash SWF Url using javascript?

开发者 https://www.devze.com 2023-03-02 16:01 出处:网络
How to get SWF url form a webpage using javascript. Actually I want to retrieve all SWF from a webpage, So I wrote an Greasemonkey Script that scans OBJECT, EMBED etc tags to get the swf url. My scrip

How to get SWF url form a webpage using javascript. Actually I want to retrieve all SWF from a webpage, So I wrote an Greasemonkey Script that scans OBJECT, EMBED etc tags to get the swf url. My script works fine on most of the pages, but fails on this one http://www.elkspel.nl/spelletjes/Film+And+TV+spelletjes/Eva+Mendes+Opmaken.html this page is not having any Obje开发者_开发知识库ct, Embed tag in its source and my script fails here.

Is there any way to get SWF Url from any webpage??


In this case, the object tag is embedded into the page loaded into the iFrame. To get the SWF url manually, just grab the url of the page in the iFrame and open it in a browser. Automating that might be difficult though. You would have to do the same thing via code - grab the url from the iFrame and load the page.

You could also look through the Firebug /Net/Flash/ tab and grab the URLs for any SWFs there.

0

精彩评论

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

关注公众号