{"id":13814293,"url":"https://github.com/swfobject/swfobject","last_synced_at":"2025-05-15T03:33:38.495Z","repository":{"id":50427440,"uuid":"1394068","full_name":"swfobject/swfobject","owner":"swfobject","description":"An open source Javascript framework for detecting the Adobe Flash Player plugin and embedding Flash (swf) files.","archived":true,"fork":false,"pushed_at":"2017-05-19T08:24:55.000Z","size":297,"stargazers_count":1238,"open_issues_count":0,"forks_count":734,"subscribers_count":106,"default_branch":"master","last_synced_at":"2025-04-20T14:11:16.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swfobject.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-21T19:06:45.000Z","updated_at":"2025-04-10T14:52:45.000Z","dependencies_parsed_at":"2022-09-15T13:52:19.013Z","dependency_job_id":null,"html_url":"https://github.com/swfobject/swfobject","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfobject%2Fswfobject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfobject%2Fswfobject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfobject%2Fswfobject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swfobject%2Fswfobject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swfobject","download_url":"https://codeload.github.com/swfobject/swfobject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254266518,"owners_count":22042123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T04:01:52.024Z","updated_at":"2025-05-15T03:33:38.235Z","avatar_url":"https://github.com/swfobject.png","language":"HTML","readme":"= --- IMPORTANT UPDATE ---\n\nSWFObject is no longer in active development. Flash Player is on the decline, and the authors of SWFObject have moved on to other projects. This project is being left on GitHub for historical purposes.\n\n= SWFObject\n\nSWFObject is a free, open-source tool for embedding swf content in websites.\n\nThis GitHub edition of SWFObject is our 2.3 beta. The current release -- 2.2 -- is still available for download at http://code.google.com/p/swfobject/\n\n\n== CHANGES\nSWFObject 2.3 introduces many small changes under the hood (almost exclusively aimed at fixing bugs), but the public API is mostly unchanged and completely backwards compatible with SWFObject 2.2.  The only two significant changes to the API: \n\n1. You may now pass an element as an argument in embedSWF (in place of an ID)\n2. You may now use integers in place of number strings in embedSWF (e.g. 9 instead of \"9\").\n\nExample:\n\nOLD:\n    swfobject.embedSWF(\"myContent.swf\", \"my-target-element\", \"300\", \"120\", \"10.0.0\");\n\nNEW:\n    var el = document.getElementById(\"my-target-element\");\n    swfobject.embedSWF(\"myContent.swf\", el, 300, 120, 10);\n\n\nAnother significant change: SWFObject's approach to dynamic embedding in Internet Explorer has been updated to use a more W3C-friendly way of creating the \u003cobject\u003e. Because this is Internet Explorer, a few hacks were required, but the end result is code generated by W3C techniques (document.createElement). This means, among other things, that nodes generated  for XHTML documents should properly self close:\n\nOLD:\n    \u003cobject\u003e\u003cparam\u003e\u003c/object\u003e\n\nNEW: \n    \u003cobject\u003e\u003cparam /\u003e\u003c/object\u003e\n\nSimilarly, since the \u003cparam\u003e elements are all generated using the same W3C techniques, encoding flashvars should be less troublesome. Developers will no longer need to create separate flashvars encoding workflows for IE and non-IE browsers.\n","funding_links":[],"categories":["HTML","38. 实用工具/其他插件 ##","41. 实用工具/其他插件"],"sub_categories":["13.20 视差滚动(Parallax Scrolling) ###","24.3 Web Sockets"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswfobject%2Fswfobject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswfobject%2Fswfobject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswfobject%2Fswfobject/lists"}