Javascript adicionado no site
%STARTINCLUDE%
<script type="text/javascript">
// <!--
// Muda o target de todo link externo para que se abra em nova janela:
var urlLocalER = new RegExp(
"%SCRIPTURL{view}%/%WEB%".replace( /^https?:/, "^https?:" ).replace( /view/, "[^/]+" ) + ".*"
);
var links = document.getElementsByTagName("a");
for ( var i=0; link=links[i]; i++ ) {
if ( ( !urlLocalER.test(link.href) ) && (!link.target) ) {
link.target = "_blank";
}
}
// Armengue pro menu funcionar na disgrama do MSIE:
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace
(" over", "");
}
}
}
}
}
window.onload=startList;
// Retira botões do TWiki de certas páginas:
if ( {
"WebHome": true,
"Contatos": true,
"ArquivoDeNotícias": true,
}["<nop>%BASETOPIC%"] ) {
document.getElementById("btsTWiki").style.display = "none";
}
// -->
</script>
%STOPINCLUDE%