User:LordTBT/monaco.js

/* //////////////////////////////////////////////////////// // Adding an image ////////////////////////////////////////////////////////

function myTitle{ var title1 = ""+wgPageName; var myText = document.createTextNode(" - "+title1.replace(/_/g," ")); var titleArea = document.getElementById("request_wiki"); // var newtitleArea = titleArea.parentNode;

var elem = document.createElement("img"); elem.setAttribute("src", "http://images2.wikia.nocookie.net/redwall/images/4/49/RedwallUSCover.jpg"); elem.setAttribute("height", "40"); elem.setAttribute("width", "20"); elem.setAttribute("alt", "Logo"); elem.setAttribute("href", "http://www.java2s.com/Code/JavaScript/HTML/Imageelement.htm");

if (titleArea != null){ titleArea.appendChild(elem) } }

addOnloadHook(myTitle)