<script type="text/javascript">
function createPlayer()
{
var ifrm = document.createElement("IFRAME");
ifrm.setAttribute("src", "ССЫЛКА НА IFRAME");
ifrm.frameBorder = 0;
ifrm.setAttribute('allowfullscreen', 'true');
ifrm.setAttribute('scrolling', 'no');
var divMoon = document.getElementById("ajax-player");
divMoon.appendChild(ifrm);
}
function addLoadEvent(func)
{
var oldonload = window.onload;
if (typeof window.onload != 'function')
{
window.onload = func;
}
else
{
window.onload = function()
{
if (oldonload)
{
oldonload();
}
func();
}
}
}
addLoadEvent(function()
{
createPlayer();
});
</script>