<center><div id="WHSS" style="display:none;"><span id='myguildhostwh'><a href='http://www.myguildhost.com/'>guild hosting</a> provided by MyGuildHost.com</span><script src="http://myguildhost.com/rs/wh.php?realm=Be'lakor" type="text/javascript"></script></div></center><style type="text/css">#WHSS { background: #000000; width: 80px; }.serverOnlineImage { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/wh-server-online.gif) no-repeat; height:24px; }.serverOfflineImage { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/wh-server-offline.gif) no-repeat; height:24px; }.serverText { color: #ffffff; padding-top: 3px; padding-left: 25px; font-size: 14px; font-weight: bold; font-family: Trebuchet MS,Verdana,Arial;} </style><script type="text/javascript">$(document).ready(function() { var whstatus = ($("#WHSS").find("div").css("background-image").match("online")) ? "serverOnlineImage" : "serverOfflineImage"; var whsn = $("#WHSS").find("div:eq(1)").html(); $("#WHSS").find("div:eq(0)").attr("style","").addClass(whstatus).addClass("serverText").html(whsn); $("#WHSS").css("align","center").css("display","");});</script>
Update the HTML in purple from the web site.Change the style of the server status box by modifying the following CSS.#WHSS { background: #000000; width: 80px; }The server status image is set as a background imageOnline: .serverOnlineImage { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/wh-server-online.gif) no-repeat; height:24px; } Offline: .serverOfflineImage { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/wh-server-offline.gif) no-repeat; height:24px; }
The Server text uses this CSS.serverText { color: #ffffff; padding-top: 3px; padding-left: 25px; font-size: 14px; font-weight: bold; font-family: Trebuchet MS,Verdana,Arial;} Set the text color by changing the blue textThe padding-top is set to 3px to center the text vertically with the image. Adjust it as needed.The padding-left is set to 25px which is slightly larger than the background image... it shifts it to the right so the text doesn't overlap the image.