Open Rehtael opened 5 years ago
At the end of the JS, the img tag is written. This should support the now common JQuery.
if (window.jQuery) { var l = $('<img/>'); l.attr('src', imgsrc); l.css({'display' : 'none', 'width' : '0px', 'height' : '0px', 'border' : '0px'}); $("body").append(l); } else if (document.createElementNS) { var l = document.createElementNS("http://www.w3.org/1999/xhtml", "img"); l.setAttribute("src", imgsrc); l.setAttribute("style", "display: none; width: 0px; height: 0px; border: 0px;"); document.getElementsByTagName("body")[0].appendChild(l); } else { document.write('<img src="' + imgsrc + '" style="display: none; width: 0px; height: 0px; border: 0px;" />'); }
At the end of the JS, the img tag is written. This should support the now common JQuery.