var s=['prototype.yc','lightbox','dsn'];
while(s.length) document.write('<scr'+'ipt src="/js/'+s.shift()+'.js"></scr'+'ipt>');
Saturday, April 5, 2008
consume that data
Have an array that you need to iterate over? Dying to use javascript 1.8 iterators and generators? (why?!) Anyhow... use this instead.. IF IF IF ... you don't mind CONSUMING your data :-) (this = shift)
Friday, April 4, 2008
directory structure = sitenav = breadcrumbs = CSS
Ok?
Example:
/ home home home /mainsection mainsection home > mainsection <html class="mainsection"> /mainsection/subsection mainsection > subsection home > mainsection > subsection <html class="mainsection"><body class="subsection"> /mainsection/subsection/leaf mainsection > subsection > leaf home > mainsection > subsection > leaf <html class="mainsection"><body class="subsection"><div id="siteContainer" class="leaf">
Subscribe to:
Posts (Atom)