MediaWiki:Common.js: Difference between revisions

From Wiki Grepolis EN
Jump to navigation
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
var headID = document.getElementsByTagName("head")[0];       
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = 'http://code.jquery.com/jquery-1.5.1.min.js';
headID.appendChild(newScript);

Revision as of 22:53, 27 March 2011

/* Any JavaScript here will be loaded for all users on every page load. */

var headID = document.getElementsByTagName("head")[0];         
			var newScript = document.createElement('script');
			newScript.type = 'text/javascript';
			newScript.src = 'http://code.jquery.com/jquery-1.5.1.min.js';
			headID.appendChild(newScript);