4 Replies Latest reply on Mar 21, 2010 8:27 AM by JonnyDL-HV74P1

    Javascript: Can't get background source

    JonnyDL-HV74P1 Level 1

      I'm trying to create script that will allow the user (on mouse over) to choose from one of a several banners to appear while they are on site.

      First I'm not sure if my logic is correct, and that is a simpler way. but here is what I got

      the CSS loads a default image.

      background-image:url(/images/banner.png);

       

      I'm trying to get the source (url) of what is/will be currently up there so I can compare it and place a differnt banner in

       

      I've seen it when the image is placed into a tag, I just can't figure how to get it from css

      Can anybody Help