Hi i have made a flash logo for my site the old logo is a image this is how it is shown in the layout <script> if (document.getElementById("logo-div").style.backgroundImage.indexOf("images/null.gif") > 0){ document.getElementById("logo-div").style.backgroundImage = "url(this is were the logo was and i want the flash bit to go)"; } </script> How will i make that so it shows my flash file not a normal image file if it can be done. Thanks in Advanced. If i put the in the rong part of the forum please move to the right part thanks.
I'm not sure that the property style.backgroundImage in JavaScript can detect a CSS Set background image. Instead, i would just set a div to have a background image and when Flash can load - it will display the flash element inside the div ontop of the background image so it couldn't be seen. Remeber the IE Ebola bug so use FlashObject (Now called SWFObject) to include the flash element
Flash doesn't work as a background You will need to insert the flash as a flash object, the only possible way to display flash to client browser is as an object. Peace,