User:XiaoZhou/p-logo.js
$(function() {
var plogo = document.getElementById("p-logo");
if (logoimageurl == null)
{
logoimageurl = "http://upload.wikimedia.org/wikipedia/"
+ wgULS("zh/6/62/Wiki_zh-hans.png", "zh/b/bc/Wiki.png");
}
if ( navigator.appName == "Microsoft Internet Explorer" ) {
if ( navigator.appVersion.match("MSIE 7.0") == null) {
plogo.getElementsByTagName("span")[0].style.filter = "progid:DXImageTransform."
+ "Microsoft.AlphaImageLoader(src="
+ logoimageurl + ")";
}
else {
var a = plogo.firstChild;
a.style.backgroundImage = "url("
+ logoimageurl + ")";
}
}
else {
var a = plogo.getElementsByTagName("A")[0];
a.style.backgroundImage = "url("
+ logoimageurl + ")";
}
});
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.