Download the X Distribution File.
xLoadLink(url, rel, typ, med)
Default.
// xLoadLink r1, Copyright 2007 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
function xLoadLink(url, rel, typ, med)
{
var l, h, d = document, r = null;
if (d.createElement && d.getElementsByTagName) {
l = d.createElement('link');
h = d.getElementsByTagName('head');
if (l && h && h.length && h[0].appendChild) {
l.rel = rel || 'stylesheet';
l.type = typ || 'text/css';
l.media = med || 'all';
l.href = url;
h[0].appendChild(l);
r = l;
}
}
return r;
}
toys - Index of all X demos.
By your use of X and/or CBE and/or any Javascript from this site you consent to the GNU LGPL - please read it. If you have any questions about the license, read the FAQ and/or come to the forums.
Forum support is available at the X Library Support Forums.
Cross-Browser.com is the home of X - a cross-browser Javascript library, and many demos, applications, articles and documentation.
If you are using X, XC or anything from this site, show off your work by posting a link in the X Showcase forum.