The jQuery SWFObject plugin is an addon for jQuery that offers SWFObject's unique functionality of embedding Flash content using the internal jQuery API.
SWFObject is an easy-to-use and standards-friendly method to embed Flash content reliably within all major browsers. You can learn more about SWFObject here.
jQuery is a small but power-packed bundle of javascript functions that make writing javascript quick and simple. Selecting elements on your page is like using CSS, learning and using functions requires minimal fuss, and the learning curve is sometimes described as "zero". You can learn more about jQuery here.
It's easy. Tell the jQuery SWFObject plugin what flash document you want to use and where you want to put it. It works using jQuery selectors, like this:
When we're done, that result should look something like this:
If you like, you can download this example here.
You can also use flashvars with the jQuery SWFObject plugin. It works using like this:
When we're done, that result should look something like this:
If you like, you can download this example here.
Please visit our features section to learn how to use this plugin, or visit our examples section to see these and more examples of this plugin in action.
Please visit our downloads section.
The jQuery SWFObject plugin is an addon for jQuery that offers SWFObject's unique functionality of embedding Flash content using the internal jQuery API.
It's easy. Tell the jQuery SWFObject plugin what flash document you want to use and where you want to put it. It works using jQuery selectors, like this:
When we're done, that result should look something like this:
If you like, you can download this example here.
You can also use flashvars with the jQuery SWFObject plugin. It works using like this:
When we're done, that result should look something like this:
If you like, you can download this example here.
In this example I'm using a flash animation made by my friend Celerant. You can attach flash as an inline onClick event on a button.
If you like, you can download this example here.
You can also preload the SWFObject injection before ready for even-better performance like this:
If you like, you can download this example here.
The jQuery SWFObject plugin uses a dual MIT/GPL license.
Copyright (c) 2008 Jonathan Neal
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (C) 2008 Jonathan Neal
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
SWFObject uses a MIT license.
Copyright (c) 2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Feel free to write me your questions, concerns, encouragement, or any other feedback related to the jQuery SWFObject Plugin.