Inkscape Brasil
Versão Estável
0.46
Baixe Agora!
Javascript adicionado no header das páginas deste site
%STARTINCLUDE%
<script type="text/javascript" src="%ATTACHURL%/serializeElement.js"></script>
<script type="text/javascript">
// <!--
function addSombra (el) {
try{
var tab = document.createElement("table");
tab.cellpadding = "0";
tab.cellspacing = "0";
tab.className = "sombra";
trA = document.createElement("tr");
tab.appendChild( trA );
trB = document.createElement("tr");
tab.appendChild( trB );
trC = document.createElement("tr");
tab.appendChild( trC );
var pixel = '<img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" width="1" height="1" />';
td1 = document.createElement("td");
td1.className = "sombraNO";
td1.innerHTML = pixel;
trA.appendChild( td1 );
td2 = document.createElement("td");
td2.className = "sombraN";
td2.innerHTML = pixel;
trA.appendChild( td2 );
td3 = document.createElement("td");
td3.className = "sombraNL";
td3.innerHTML = pixel;
trA.appendChild( td3 );
td4 = document.createElement("td");
td4.className = "sombraO";
td4.innerHTML = pixel;
trB.appendChild( td4 );
td5 = document.createElement("td");
td5.className = "sombraMeio";
trB.appendChild( td5 );
td6 = document.createElement("td");
td6.className = "sombraL";
td6.innerHTML = pixel;
trB.appendChild( td6 );
td7 = document.createElement("td");
td7.className = "sombraSO";
td7.innerHTML = pixel;
trC.appendChild( td7 );
td8 = document.createElement("td");
td8.className = "sombraS";
td8.innerHTML = pixel;
trC.appendChild( td8 );
td9 = document.createElement("td");
td9.className = "sombraSL";
td9.innerHTML = pixel;
trC.appendChild( td9 );
if ( navigator.appName.indexOf("Microsoft") == -1 ) {
// Fora do MSIE:
el.parentNode.insertBefore( tab, el );
td5.appendChild( el );
}
if ( navigator.appName.indexOf("Microsoft") > -1 ) {
// No MSIE:
var div = document.createElement("div");
el.parentNode.insertBefore( div, el );
div.innerHTML = '<table class="sombra"><tr>' +
'<td class="sombraNO"><img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" height="1" width="1"></td>'+
'<td class="sombraN"><img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" height="1" width="1"></td>'+
'<td class="sombraNL"><img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" height="1" width="1"></td>'+
'</tr><tr>'+
'<td class="sombraO"><img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" height="1" width="1"></td>'+
'<td class="sombraMeio">'+ el.outerHTML.replace( /onload/g, "x" ) +'</td>'+
'<td class="sombraL"><img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" height="1" width="1"></td>'+
'</tr><tr>'+
'<td class="sombraSO"><img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" height="1" width="1"></td>'+
'<td class="sombraS"><img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" height="1" width="1"></td>'+
'<td class="sombraSL"><img src="%PUBURL%/%WEB%/ProjetoGrafico/pixel.gif" height="1" width="1"></td>'+
'</tr></table>';
el.parentNode.removeChild( el );
}
} catch(e) { alert(e); }
}
function gotoNota(num) {
var nota = document.getElementById("Nota"+num) || document.getElementById("nota"+num);
if ( nota ) {
if ( window.getComputedStyle ) {
var bg = window.getComputedStyle( nota, "" ).backgroundColor;
} else {
var bg = nota.currentStyle.backgroundColor;
}
document.location.href = "#"+ nota.id;
nota.style.background = "#FD0";
setTimeout( 'document.getElementById("'+nota.id+'").style.background="'+bg+'"', 300 );
setTimeout( 'document.getElementById("'+nota.id+'").style.background="#FD0"', 600 );
setTimeout( 'document.getElementById("'+nota.id+'").style.background="'+bg+'"', 900 );
}
}
// -->
</script>
%STOPINCLUDE%
--
AurelioAHeckert - 27 Oct 2006
Todo material do sítio
Inkscape Brasil é propriedade do grupo Inkscape Brasil e pode ser
reproduzido livremente, desde que
permaneça livre e a fonte seja citada, seguindo os termos da licença
Creative Commons (by-sa).
Inkscape é um
Software Livre, distribuido sobre Termos
GNU-GPL.