Late Night Visitor
Member
Posted 11 months 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
Late Night Visitor
Member
Posted 11 months ago #
I should add, that I'm using this in WordPress
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>
Late Night Visitor
Member
Posted 11 months 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
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