[Aimmath-commit] AIM tp.css,NONE,1.1.2.1 tp.js,NONE,1.1.2.1
Brought to you by:
gustav_delius,
npstrick
From: Neil S. <nps...@us...> - 2005-04-26 01:45:37
|
Update of /cvsroot/aimmath/AIM In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16381 Added Files: Tag: aim-xml tp.css tp.js Log Message: --- NEW FILE: tp.css --- /* * date: 2002-10-13 * info: http://inspire.server101.com/js/tp/ */ /* links */ ul.tabs { list-style: none; margin: 0; padding: 0; border: none; font-size: 80%; } ul.tabs li { position: relative; float: left; width: 6em; margin: 0; padding: 0 4px 0 0; } ul.tabs a { display: block; width: 5em; padding: .5em; border: 1px solid #00F; border-bottom: none; border-top-width: 2px; text-decoration: none; } ul.tabs a, ul.tabs a:link, ul.tabs a:visited { background: #EEF; color: #00F; } ul.tabs a.active, ul.tabs a:link.active, ul.tabs a:visited.active { background: #FFF; color: #00F; font-weight: bold; } ul.tabs a.active { position: relative; top: 1px; } /* panels */ div.tabs { padding: .5em; } div.tabs div.tabs { padding: 0; } div.tabs div.tabs div { clear: left; padding: .5em; border: 1px solid #00F; } --- NEW FILE: tp.js --- /* * date: 2002-10-11 * info: http://inspire.server101.com/js/tp/ */ var tp = []; var tpl = []; function tpSet(i, c) { if (document.createElement) { var e = document.getElementById(i); var l = document.createElement('ul'); var p = document.createElement('div'); e.className = l.className = p.className = c; var a, j, t; for (j = 2; j < arguments.length; j++) { c = document.getElementById(t = arguments[j]); tp[t] = c.parentNode.removeChild(c); a = l.appendChild(document.createElement('li')); a.className = c.className; tpl[t] = a = a.appendChild(document.createElement('a')); a.setAttribute('href', 'javascript:tpShow(\''+i+'\', \''+t+'\');'); a.appendChild(document.createTextNode(c.getAttribute('title'))); } p.appendChild(tp[arguments[2]]); tpl[arguments[2]].className = 'active'; while (e.firstChild) e.removeChild(e.firstChild); e.appendChild(l); e.appendChild(p); }} function tpShow(e, p) { e = document.getElementById(e).lastChild; tpl[e.replaceChild(tp[p], e.firstChild).getAttribute('id')].className = null; tpl[p].className = 'active'; } |