Script edit so my flash logo will work.

Discussion in 'HTML & Website Design' started by joesgraphics, Jan 10, 2007.

  1. #1
    Hi iv 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.
     
    joesgraphics, Jan 10, 2007 IP
  2. DJ Manic

    DJ Manic Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Instead of the image you put filenamehere.swf, as far as i know.
     
    DJ Manic, Jan 11, 2007 IP
  3. joesgraphics

    joesgraphics Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    iv unready had a go at that but dont work thanks for the reply any ways.
     
    joesgraphics, Jan 11, 2007 IP