MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
David Mason (talk | contribs) (Blanked the page) |
David Mason (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | |||
function include(destination) { | |||
var e=window.document.createElement('script'); | |||
e.setAttribute('type','text/javascript'); | |||
e.setAttribute('src',destination); | |||
document.getElementsByTagName('head')[0].appendChild(e); | |||
} | |||
include('/js/jquery-1.3.2.min.js'); | |||
include('/js/jquery.easing.1.3.js'); | |||
include('/js/jquery.galleryview-1.1.js'); | |||
include('/js/jquery.timers-1.1.2.js'); | |||
include('/js/loadgallery.js'); |
Revision as of 19:38, 23 July 2010
/* Any JavaScript here will be loaded for all users on every page load. */
function include(destination) {
var e=window.document.createElement('script');
e.setAttribute('type','text/javascript');
e.setAttribute('src',destination);
document.getElementsByTagName('head')[0].appendChild(e);
}
include('/js/jquery-1.3.2.min.js');
include('/js/jquery.easing.1.3.js');
include('/js/jquery.galleryview-1.1.js');
include('/js/jquery.timers-1.1.2.js');
include('/js/loadgallery.js');