WordPress.org

Ready to get started?Download WordPress

Forums

Shadowbox JS
[resolved] Getting Shadowbox to conform to SWF size (5 posts)

  1. Late Night Visitor
    Member
    Posted 3 years ago #

    Hi!

    I love this plugin, but cannot seem to get it to conform to the size of my SWF. It works, but seems to create a huge black box around it. Any idea on how I can have it detect it's size, and size the box as needed? Must be something simple I am missing.

    Here is the code I am using:

    <a href="http://www.groove-djs.com/ATT/ATT_anim1.swf" rel="shadowbox">Link name</a>

    any help truly appreciated

  2. Late Night Visitor
    Member
    Posted 3 years ago #

    I should add, that I'm using this in WordPress

  3. Matt Martz
    Member
    Plugin Author

    Posted 3 years ago #

    Javascript has no way of determining what the size of a SWF is. You will need to manually add the height and width to the rel attribute to match the dimensions of the SWF such as:

    <a href="http://www.groove-djs.com/ATT/ATT_anim1.swf" rel="shadowbox;width=640;height=480;">Link name</a>

  4. Late Night Visitor
    Member
    Posted 3 years ago #

    Matt -
    you're 100% awesome thanks so much! While I saw the examples of the swf's doing this, I couldn't find ANYTHING in the docs that talked about how to do that for code. (but please refer me to where, especially if there is more info on that.)

    I noticed that this alternately also works when pointing to the html page it's in which is handy as well.

    thanks again

  5. Matt Martz
    Member
    Plugin Author

    Posted 3 years ago #

    There is a lot of documentation upstream at http://shadowbox-js.com. The documentation relating to this can be found at http://www.shadowbox-js.com/usage.html#markup

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic