function initTTDemo() { if(document.body.addEventListener || document.body.attachEvent) { ttFrame = document.createElement('div'); ttFrame.id='tooltipFrame'; ttFrame.appendChild(document.createElement('h3')); ttFrame.firstChild.appendChild(document.createTextNode('K&L Productions Tool Tip')); ttFrame.appendChild(document.createElement('p')); ttFrame.lastChild.id='tooltipContent'; document.body.appendChild(ttFrame); divtt = document.createElement('div'); divtt.id = 'divttsample'; divtt.appendChild(document.createTextNode('This tool tip is a predefined block element. Such an element can contain most of HTML elements. For example, with added delay before closing the tool tip, it can be used for navigation:')); divttlinks = {1:{link:'index.html',text:'K&L Productions Home'}, 2:{link:'webdesign.html',text:'K&L Productions Web Design'}, 3:{link:'copywriting.html',text:'K&L Productions Copywriting Services'}, 4:{link:'graphics.html',text:'K&L Productions Graphics Design'}}; divttul = divtt.appendChild(document.createElement('ul')); for(lnk in divttlinks) { divttli = divttul.appendChild(document.createElement('li')); divtta = divttli.appendChild(document.createElement('a')); divtta.href = divttlinks[lnk].link; divtta.appendChild(document.createTextNode(divttlinks[lnk].text)); } document.body.appendChild(divtt); removeNJSW(); } } function removeNJSW() { var njsw = document.getElementById('nojswarning'); njsw.style.position = 'absolute'; njsw.parentNode.removeChild(njsw); }