You can use something like this:
Embed this script: http://jquery.lukelutman.com/plugins/flash/jquery.flash.js
Then in your functions.js
(function($) {
$(document).ready(function (){
$(".flash").click(function(e) {
$(this).parent().empty().flash({
src: $(this).attr('href')
});
e.preventDefault();
});
});
})(jQuery);
Your markup would be something like:
<div class="flash-container">
<a href="https://wordpress.stackexchange.com/questions/40287/flash.swf"><img src="placeholder.jpg"></a>
</div>
For more info check http://jquery.lukelutman.com/plugins/flash/
i hope this makes some sense 🙂 Btw: this isn’t a WordPress question, so maybe you get a faster and or better answer @ stackoverflow.com
Related Posts:
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Activate a plugin through PHPMyAdmin or FTP?
- Pluggable function and activation check?
- Content generator for development site [closed]
- Automatically install wordpress plugin at theme activation
- Show a confirm message before plug-in activation
- Function to activate WordPress theme inside a plugin
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- OEmbed from Pinterest
- explanation for activate_plugin function in wordpress core
- Remote plugin activation hook
- Is there a way to share content amongst wordpress sites
- Force plugin to fail activation
- WordPress register_activation_hook table creation not working
- Multisite: Activate plugin for subsites only?
- The plugin generated x characters of unexpected output, $wpdb not defined
- Correct way to use register_activation_hook
- plugings request url is the old url
- Cannot run the code after I activate the plugin
- wordpress in nginx docker container connected to php:8-fpm container and mariadb container isn’t creating any tables on plugin activation
- Unable to activate wordpress importer after installing it
- How to include plugin without activation?
- Auto add content such as pages upon plugin activation?
- Detect when any plugin is activated or deactivated
- How to automate wordpress plugin activate and deactivate by php logic?
- Default Plugin Settings Not Writing to Database
- Plugin won’t activate – cannot declare class (already in use)
- How to activate plugins for my WordPress sites from a remote server
- Next and/or previous post content
- register_activation_hook with include file [closed]
- Can we use a webservice with WordPress?
- Prevent a plugin from being automatically activated
- Is any information available in PHP files in WP about plugin activation history?
- Collapse content [closed]
- Can I use a plugin for a singular page on my website?
- Activated plugin is stored as an object, rather than as a path
- Own plugin corrups plugin-activation
- Use flash on a wordpress site as a widget
- How to check if tables in WordPress still exists after activations
- Run plugins only on certain pages
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Force file download on plugin activation
- Front end inline editing?
- WordPress user account activation
- Multiple instance of data in plugin custom database table on plugin activation
- Why this function not working for install database on plugin activation
- Embed plugin into Custom Page Template
- Run function on plugin activation before plugin is loaded
- How to embed .mp4 videos in a WordPress post?
- A question about register_activation hook
- Insert Message before content of after title
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- Timed content and flagging content as viewed by user?
- Why are my WordPress store items showing up in duplicates?
- register_activation_hook() not working as expected
- Advanced WordPress plugin activation detection
- Get post content from outside the loop with plugin shortcode usability
- Apparent errer when installing plugin
- Embed PDF into wordpress
- Activate a plugin via a SQL query
- Is there a way to keep youtube videos from displaying on home page, and display only on single posts?
- Rename Smart YouTube’s httpv back to http for all posts
- Plugin for visitors to edit content without logging in? [closed]
- Disable “auto embed” feature when pasting text and links
- Activation flow of a plugin in a multisite environment
- How to use a shortcode or an application to dynamically embed content from one WordPress site to another?
- Javascript embedded disappears for editors
- Displaying different content depending on variable
- How to check for already existing plugin versions on activation? and prevent errors
- Tool to highlight text in WordPress page and provide additional text on hover
- how to enable/activate a plugin per Cpanel
- My WordPress activation hook isn’t working
- Content disappears when searching with Search & Filter plugin
- How is it possible to create Multi part sections where people can answer or comment or vote on various parts of a page’s content as given example?
- Cannot modify header information – headers already sent during plugin activation
- Copying content from my other websites
- Building a Article Library within WP?
- Error Copying Directory On Plugin Activation
- WordPress hook source
- How to add wpmode in Flash Embed Code in WordPress Site?
- How to hook into search results template or query?
- SWF in wordpress post
- Problems with installing and deleting plugins
- How to create custom content on custom page from plugin?
- Carrying information from button click into form [closed]
- Contents are missing but shown when switching to another theme in wordpress
- Plugin De/Activation Not Firing On MultiSite install
- Can someone please help me find a solution to my youtube embed problems? [duplicate]
- What is the correct method for updating post content from a plugin?
- Single dash converted to double dash
- Creating a custom page & output on a Plugin
- Custom Table doesn’t create on plugin activation
- Activate plugins by a theme’s functions.php?
- Is it possible to send user new password after they clicking on forgot password in word press
- My page content doesn’t show up
- Distribute post content through several divs [closed]
- Shortcode returning specific content of a post
- Disable auto-embed feature when pasting links in Gutenberg editor?
- Auto-scroll to beginning of accordion item
- Remove embed url for internal links