Wizzud Thanks for the help I got them running from a function perfectly. The resizing is another issue I've tried a few different methods. But nothing yet. So I'll give you all the info.
I've got this in my shadowbox2.js
Shadowbox.dynamicResize = function(w, h){
if(content){
content.width = w;
content.height = h;
resizeContent(function(){;}); //needs callback function to animate
}
};
Then I'm Calling the shadowbox using this
window.onload = function(){
Shadowbox.init({
// let's skip the automatic setup because we don't have any
// properly configured link elements on the page
skipSetup: true
});
};
function openShadowbox(type, header, url) {
Shadowbox.open({
player: type,
title: header,
content: url,
height: 500,
width: 750
})
}
...in the header and this for the URL
a onclick="openShadowbox('iframe', 'title' , 'page.html');">title</a
Then in the page.html im using
window.addEvent('domready', function(){
window.parent.Shadowbox.dynamicResize(500,200);
});
and I have the js files attached in all pages. Thanks again can't wait to see this in all its glory.
oh and for commercial use the paypal link isn't working...