pandorafms/pandora_console/include/styles/cb/lib/xloadscript.js

15 lines
453 B
JavaScript
Raw Normal View History

// xLoadScript, Copyright 2001-2005 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
function xLoadScript(url)
{
if (document.createElement && document.getElementsByTagName) {
var s = document.createElement('script');
var h = document.getElementsByTagName('head');
if (s && h.length) {
s.src = url;
h[0].appendChild(s);
}
}
}