Difference between revisions of "MediaWiki:AdditionalFooterIcons.js"

From Annotationssystem für Biodiversitätsdaten
Jump to: navigation, search
(Created page with "addOnloadHook(function() { var links = new Array( "http://wiki.bgbm.org/annosys-intern/images/Logo-BioCASE-88x31.png", "Logo BioCASe", "http://www.biocase.org", "http://wi...")
(No difference)

Revision as of 15:36, 14 June 2012

addOnloadHook(function() {
 
	var links = new Array(
		"http://wiki.bgbm.org/annosys-intern/images/Logo-BioCASE-88x31.png", "Logo BioCASe", "http://www.biocase.org",
		"http://wiki.bgbm.org/annosys-intern/images/Logo-GBIF-D-88x31.png", "Logo GBIF", "http://www.gbif.org",
		"http://wiki.bgbm.org/annosys-intern/images/Logo-FU%20Berlin-88x31.png", "Logo FU-Berlin", "http://www.fu-berlin.de", 
		"http://wiki.bgbm.org/annosys-intern/images/Logo-BGBM-88x31.png", "Logo BGBM", "http://www.bgbm.org", 
		"http://wiki.bgbm.org/annosys-intern/images/Logo-DFG-88x31.png", "Logo DFG", "http://www.dfg.de"
	); 
 
	for(var i=0;i<links.length/3;i++){
		var img = document.createElement("img");
		img.src = links[i*3];
		img.alt = links[i*3+1];
		var link = document.createElement("a");
		link.href = links[i*3+2];
		link.style.paddingLeft = "8px";
		link.appendChild(img);
 
		if(skin=="vector"){
			var li = document.createElement("li");
			li.id = "footer-copyrightico"
			li.appendChild(link);
			var footer = document.getElementById("footer-icons");
			footer.appendChild(li);
		}else if(skin=="monobook"){
			var footer = document.getElementById("f-poweredbyico");
			footer.appendChild(link);
		}
	}
});