Lang Favlet

From Level Access Web Labs
Revision as of 02:07, 4 February 2014 by Javila (talk | contribs) (Created page with "<a href="javascript:(function(){javascript:(function(){ var el = document.querySelectorAll('[lang]'); var str; var headers=[]; var sentinel; if (el.length>0) { for (var i=0;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<a href="javascript:(function(){javascript:(function(){ var el = document.querySelectorAll('[lang]'); var str; var headers=[]; var sentinel; if (el.length>0) {

	for (var i=0; i<el.length; i++) {

s = document.createElement('Span'); t = document.createTextNode(" lang="+el.item(i).lang +" "); s.appendChild(t); s.style.backgroundColor = 'antiqueWhite'; s.style.color = 'black'; el.item(i).insertBefore(s,el.item(i).firstChild); } } else { alert('no language set'); } })(); })();"> Show lang attributes Favlet </a>