Created
October 29, 2018 13:30
-
-
Save MikuroXina/e127d4baa8f3ba782915dd315de919f2 to your computer and use it in GitHub Desktop.
Easy swf loader with the browser.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>SWF Loader</title> | |
<script> | |
function load_flash(files) { | |
let tag = document.getElementById("flash_root"); | |
tag.src = files.item(0).name; | |
} | |
</script> | |
</head> | |
<body> | |
<input type="file" onchange="load_flash(this.files);" /> | |
<object> | |
<embed id="flash_root" width=800 height=600 type="application/x-shockwave-flash" /> | |
</object> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment