Making HTML 5 compatible
svn path=/trunk/; revision=20368
This commit is contained in:
@@ -150,12 +150,10 @@ if (window.location.search == "" || window.location.search == "?") {
|
||||
if( document.createElementNS ) {
|
||||
var l=document.createElementNS("http://www.w3.org/1999/xhtml","img");
|
||||
l.setAttribute("src", imgsrc );
|
||||
l.setAttribute("height", "0");
|
||||
l.setAttribute("width", "0");
|
||||
l.setAttribute("border", "0");
|
||||
l.setAttribute("style", "display: none");
|
||||
document.getElementsByTagName("body")[0].appendChild(l);
|
||||
} else {
|
||||
document.write('<img style="display:none;" src="'+ imgsrc +'" height="0" width="0" border="0" />')
|
||||
document.write('<img style="display:none;" src="'+ imgsrc +'" />')
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user