Forums

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

Home Forums JavaScript How to make an Image placeholder (Js)

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #149293
    Dext3r
    Participant

    Hi everyone

    I have a little to no knowledge with Javascript so need a helping hand.
    I got this code and i need to add a Placeholder under here, so when you hover over image placeholder will say “Delete Item”

    if(CHANNELOPTS.qopen_allow_delete || fullperms) {
        var btnRemove =  $("<button />").attr("class", "btn btn-danger qe_btn").appendTo(btnstrip);
        $("<img/>").attr("src", "../imgs/delete_c.png").appendTo(btnRemove);
        $(btnRemove).click(function() {
            btnstrip.remove();
            var idx = $("#queue").children().index(li);
            socket.emit("unqueue", { pos: idx });
        });
    }
    
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.