WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
swf size problem (5 posts)

  1. BroadSnout
    Member
    Posted 2 years ago #

    When I launch a swf file in fancy box from a text link (which works fine), then close it and go to launch another swf file from a different text link but on the same page the second swf file launched adopts the dimensions of the first swf launched, even though I have specified new dimensions like so; a class="fancybox-swf {width:240,height:600}.

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    This is a known issue with using parameters via metadata (between accolades) in the link class. It can only be done once per page as all links using the same class will take the same parameters. Sadly, working around it might prove difficult.

    If you use a limited amount of links on each page, you might try to use a different class for your second link. For example (if you have Images & Inline content enabled in the FancyBox settings) you could give your second link the class "fancybox {width:240,height:600,type:swf}" ... But I have not tested this :)

  3. BroadSnout
    Member
    Posted 2 years ago #

    Sadly that doesn't seem to work. This is a real shame as the plug-in works so well in every other way and I can't seem to find a decent altenative since wordpress disallowed the use of Shadowbox. If you have any other suggestions as to how to get multiple links working in the same page I'd love to hear them : )

  4. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    Another approach would be to embed the flash movies inline and hide them. This will allow you to use unlimited number of different sizes as set by the style attribute of the wrapping div... But I'm not sure how auto-playing SWFs will behave in a hidden div so you'll have to test.

    An example of a hidden embedded flash movie, to be opened with fancybox in inline mode:

    <a href="#Unique-ID-1" class="fancybox">open my movie with Unique-ID-1</a>
    
    <div class="fancybox-hidden"><div id="Unique-ID-1" style="width:240px;height:600px;">
    <object ... [snip] and the rest of your regular flash embed code here [/snip] ... /object>
    </div></div>

    Use a different ID for each new hidden flash file and set the style attribute to get your different sizes. And if this is the only way you are going to use fancybox, you can disable all features except the default 'Images & Inline content' and remove all file extensions from the Auto-detect field to improve on page load speed...

  5. mitchbit
    Member
    Posted 2 years ago #

    I have posted a similar post before checking the forum and then came across this topic. I'd like to try out the work around to see if it will solve the same sized swf files. Although I have the exact same problem you can view the complete post here: My Post

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic