Thanks for the quick response. Unfortunately i can't link to the page, but maybe it would help if I posted the relevant code?
The code attached to the link:
Code:
onclick="slideIt('pages/videos.html', 'content', 'js/writevideo.js')"
The slideIt function, which let's me load the content via ajaxpage, and slide it in using mootools:
Code:
function slideIt(url, div, obj){
mySlider.hide();
ajaxpage(url, div);
loadobjs(obj);
mySlider.slideIn();
}
The code from the file "writevideo.js" to write the flash to the ajax div:
Code:
var so = new SWFObject("pages/videos.swf", "swf", "400", "410", "8", "#FFFFFF");
so.addParam ("menu", "false");
so.addParam ("scale", "noscale");
so.addParam ("wmode", "transparent");
so.write ("videoholder");
The other scripts I neeed (mootools, ajaxloader and swfobject) are already loaded through the head of the main page.
I hope this makes some kind of sense! Thanks again.
Bookmarks