wonderfl - build flash online

Relative URL from SWF

An access to relative URL from SWF is relative to the URL of HTML and not to the URL of SWF.

So if you paste this SWF to blogs which have '/index.xml' as RSS, the blog entry will listed.

<div id="relative_url_from_swf"></div>
<script src="swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
swfobject.embedSWF(
"http://swf.wonderfl.net/swf/usercode/5/50/503e/503e2cc8b50ef6f2a8bcaec5787a0a0cf89f96d1.swf",
"relative_url_from_swf",
"465", "465",
"10.0.0",
false, {}, {}, {});});
</script>

9re 9re

    • forked:0
    • favorite:0
    • lines:44
    • license : MIT License
    • modified : 2010-09-02 11:49:45

add to favorites

Embed

Code Fullscreen

sectKeywords

ページの先頭へ戻る