Делаю ротатор баннеров. Флеш работает везде кроме всеми любимого IE
(function(){
var url = "http://promospisok.ru/banners/12/ren_cc_240x400.swf"
var obj = document.createElement('object')
obj.setAttribute("classid" , "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" )
obj.setAttribute("codebase" , "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0")
obj.setAttribute("width", "240")
obj.setAttribute("height", "400")
obj.setAttribute("type", "application/x-shockwave-flash")
obj.setAttribute("data", url)
var param_movie = document.createElement('param')
param_movie.setAttribute("name","movie")
param_movie.setAttribute("value", url)
var param_quality = document.createElement('param')
param_quality.setAttribute("name","quality")
param_quality.setAttribute("value","high")
var param_allowScriptAccess = document.createElement('param')
param_allowScriptAccess.setAttribute("name","allowScriptAccess")
param_allowScriptAccess.setAttribute("value","sameDomain")
var embed = document.createElement('embed')
embed.setAttribute("src", url)
embed.setAttribute("quality", "high")
embed.setAttribute("width", "240")
embed.setAttribute("height", "400")
embed.setAttribute("pluginspage", "http://get.adobe.com/flashplayer/")
embed.setAttribute("type", "application/x-shockwave-flash")
embed.setAttribute("allowScriptAccess", "sameDomain")
obj.appendChild(param_movie)
obj.appendChild(param_quality)
obj.appendChild(param_allowScriptAccess)
obj.appendChild(embed)
var container_l24 = document.getElementById('l24')
container_l24.appendChild(obj)
})()
Может у них DOM как то по другому реализуется?
PS. SWFObject не вариант.. ( требования заказчика )