function changeEN() { document.getElementsByTagName(‘h1′)[0].firstChild.nodeValue=’Hello!’; } function changeTX() { document.getElementsByTagName(‘h1′)[0].firstChild.nodeValue=’Howdy!’; } function changeBR() { document.getElementsByTagName(‘h1’)[0].firstChild.nodeValue=”’ello!”; } function changeES() { document.getElementsByTagName(‘h1′)[0].firstChild.nodeValue=’¡Hola!’; } function changeHAW() { document.getElementsByTagName(‘h1′)[0].firstChild.nodeValue=’Aloha!’; } function changeKO() { document.getElementsByTagName(‘h1′)[0].firstChild.nodeValue=’An-yong!’; } function changeFR() { document.getElementsByTagName(‘h1′)[0].firstChild.nodeValue=’Bonjour!’; } function myDOMinspector() { var DOMstring=”; if(!document.getElementById || !document.createTextNode){return;} var demoList=document.getElementById(‘languageSwitcher’); if (!demoList){return;} if(demoList.hasChildNodes()){ var ch=demoList.childNodes; for(var i=0;i


Posted

in

by

Tags: