Javascript wont appear over PNG Background

Discussion in 'JavaScript' started by melol2, Jan 2, 2007.

  1. #1
    I think the title explains it. I have this page:

    http://www.sandsword.com/css/index.php

    When you upload, it uses javascript to creat a progress bar. But I have a PNG background using CSS. And the javascript just wont appear over the PNG image. Could some1 help me fix this? Im trying to use this code:

    <script language="javascript" src="./xp_progress.js"></script>
    Upload in progress. Please Wait...
    <BR><BR>
    <script type="text/javascript">
    var bar1= createBar(300,15,'white',1,'black','blue',85,7,3,"");
    </script>

    It was working before the PNG background. So I know its not a mistype in the code.

    And while you are there, if you have a browser other than firefox, could you also take a screenshot so I can see if this has cross browser problems?
     
    melol2, Jan 2, 2007 IP
  2. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use a div tag with the png and a div tag with the javascript over it.

    You should also create a simple test page so you don't have to upload something to try to debug your code.
     
    KalvinB, Jan 5, 2007 IP