Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript javascript function invoking for creating lightbox effect

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #39055
    kailash
    Member





    Nature grass




    javascript


    function openlight(path)
    {


    document.getElementById("lightbox-overlay").style.display="block";
    document.getElementById("content").style.display="block";
    document.getElementById("content").style.backgroundImage = "url("+ path.toString()+")";
    }

    i want to invoke openlight method on click event which retrieves the path of clicked image and sets the lightbox div background image but the function is not getting invoked why?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.