Support » Plugin: Shadowbox JS » Getting Shadowbox to conform to SWF size

  • Resolved Late Night Visitor



    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="" rel="shadowbox">Link name</a>

    any help truly appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • I should add, that I’m using this in WordPress

    Plugin Author Matt Martz


    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="" rel="shadowbox;width=640;height=480;">Link name</a>

    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

    Plugin Author Matt Martz


    There is a lot of documentation upstream at The documentation relating to this can be found at

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting Shadowbox to conform to SWF size’ is closed to new replies.