WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: SwfObj] Alt Image appearing instead of .swf (5 posts)

  1. databell96
    Member
    Posted 4 years ago #

    I'm using SwfObj to embed Flash movies and my problem is I have an image used for alternative content for those who don't have the Flash plugin or for iPad's, iPhone's, etc. Problem is the JPG is showing up instead of the Flash movie even if the Flash plugin is installed. Here's my shortcode:

    [swfobj src="yourmovie.swf" alt="<img src="yourimage.jpg" width="229" height="448" alt="WordPress" />" width="229/448" id="wp" name="wp" class="wp" align="left" allowfullscreen="false" required_player_version="9.0"]

    Things brings up the image no matter what. This brings up the .swf but no alt content:

    [swfobj src="yourmovie.swf" width="229" height="448" alt="WordPress" />" width="229/448" id="wp" name="wp" class="wp" align="left" allowfullscreen="false" required_player_version="9.0"]

  2. splotch
    Member
    Posted 4 years ago #

    The problem is your use of double quotes inside the alt attribute. Double quotes should only be used at the beginning and end of the alt attribute. Everything inside it should use single quotes. If you switch to single quotes it should render correctly.

    e.g.
    [swfobj src="yourmovie.swf" alt="<img src='yourimage.jpg' width='229' height='448' alt='WordPress' />" width="229/448" id="wp" name="wp" class="wp" align="left" allowfullscreen="false" required_player_version="9.0"]

  3. ciarangaffey
    Member
    Posted 4 years ago #

    I'm having touble getting the alt image to appear too. I can get the swf to play without the alt image and I can get the alt image to appear without the swf. Any help would be greatly appreciated. Here's my code:

    [swfobj src="emmy.swf" alt="<img src="emmy.jpg" alt="WordPress" width="477" height="368" />" width="482" height="370" id="wp" name="wp" align="left" allowfullscreen="false" required_player_version="9.0"]

  4. splotch
    Member
    Posted 3 years ago #

    Same problem, just replace all of the double quotes (") with single quotes (') inside the alt="..." section. See my post above for an example.

    I'm working on a new version of the plug-in that will let you put alt content in between swfobj tags because several people have complained about the current way of putting in alt content. Will update as soon as it's complete.

  5. chakadizulu
    Member
    Posted 3 years ago #

    I have a jpeg banner on my home page. The code I use to display this banner is:
    <img src="http://www.tremcityofgold.com/wp-content/uploads/2010/10/main-banner-2.jpg" border="0" />

    I now want to replace the 'main-banner-2.jpg' image with an swf file called 'abayomiflashing.swf'. Because it is a theme page I am editing, I cannot use the 'insert flash' command.
    I therefore used the 'insert flash' command on a normal page and I got this code:
    [swfobj src="http://www.tremcityofgold.com/wp-content/uploads/2010/09/abayomiflashing1.swf"]

    I copied the code off my normal page and have inserted it into my theme page in various ways, but my swf file will not display. At best, I get a blank space where the image should be.
    On the normal page, where I used the 'insert flash' function, it uploaded the file, inserted it, and the swf file displays without any problem, only that is is not where I want it to be.
    I want to display the swf file on my home page, which a theme page. Please help!

Topic Closed

This topic has been closed to new replies.

About this Topic