hackc0re
Para ver e responder aos topicos, por-favor regista-te.

Obrigado


We hack your digital World
 
InícioFAQBuscarMembrosGruposRegistrar-seLogin

Compartilhe | 
 

 [Pedido] XML

Ver o tópico anterior Ver o tópico seguinte Ir em baixo 
AutorMensagem
PlatinumBit
Admin
Admin


Mensagens : 784
Pontos : 1588
Data de inscrição : 22/01/2010
Idade : 25

MensagemAssunto: [Pedido] XML   Sex Mar 19, 2010 5:12 pm

Boas...

Eu ja estive a pesquisar codigo do efeito "Matrix", em XML:

Código:
<style type="text/css">
.matrix { width:11px; font:11pt Lucida Console, Courier, monospace; text-align:center; padding:0px; background-color:#000; border:none }
</style>
<script type="text/javascript">
// <![CDATA[
var height=11; // height of the effect in rows - must be an odd number
var speed=66;  // lower is faster
var reveal=33; // between 0 and 100
              // the higher, the faster the word is 'decoded'
var repeat=0;  // if '0' the script does not repeat
              // if set to a number this is the delay until the script repeats
var alink="http://www.mf2fm.com/rv"; // place to link to
                                      // set to alink="" if not needed

/***************************\
* The Matrix JavaScripted.. *
*(c) 2003-6 mf2fm web-design*
*  http://www.mf2fm.com/rv  *
* DON'T EDIT BELOW THIS BOX *
\***************************/
var timer, table, x, y, columns, ma_txt, ma_cho;
reveal/=100;
var m_coch=new Array();
var m_copo=new Array();
window.onload=function() { if (document.getElementById) {
  var matrix, tbody, tr, td;
  matrix=document.getElementById("matrix");
  ma_txt=matrix.firstChild.nodeValue;
  ma_txt=" "+ma_txt+" ";
  columns=ma_txt.length;
  while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]);
  table=document.createElement("table");
  table.cellSpacing=0;
  table.style.margin="auto";
  table.style.width="auto";
  table.style.border="none";
  tbody=document.createElement("tbody");
  for (x=0; x<height; x++) {
    tr=document.createElement("tr");
    for (y=0; y<columns; y++) {
      td=document.createElement("td");
      td.className="matrix";
      td.appendChild(document.createTextNode(String.fromCharCode(160)));
      tr.appendChild(td);
    }
    tbody.appendChild(tr);
  }
  table.appendChild(tbody);
  matrix.appendChild(table);
  ma_cho=ma_txt;
  for (x=0; x<columns; x++) {
    m_copo[x]=0;
    ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
  }
  x=0;
  timer=setInterval("mytricks()", speed);
}}

function mytricks() {
  var mtmp, mrow;
  var z=x;
  x=0;
  for (y=0; y<columns; y++) {
    x=x+(m_copo[y]==100);
    mrow=m_copo[y]%100;
    if (mrow && m_copo[y]<100) {
      if (mrow<height+1) {
      mtmp=table.rows[mrow-1].cells[y];
        mtmp.firstChild.nodeValue=m_coch[y];
        mtmp.style.color="#33ff66";
        mtmp.style.fontWeight="bold";
      }
      if (mrow>1 && mrow<height+2) {
      mtmp=table.rows[mrow-2].cells[y];
        mtmp.style.fontWeight="normal";
        mtmp.style.color="#00ff00";
      }
      if (mrow>2) table.rows[mrow-3].cells[y].style.color="#009900";
      if (mrow<Math.floor(height/2)+1) m_copo[y]++;
      else if (mrow==Math.floor(height/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);
      else if (mrow<height+2) m_copo[y]++;
      else if (m_copo[y]<100) m_copo[y]=0;
    }
    else if (Math.random()>0.9 && m_copo[y]<100) {
      if (reveal>Math.random() && (z+1)/columns>Math.random()) m_coch[y]=ma_cho.charAt(y);
      else m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));
      m_copo[y]++;
    }
  }
  if (x==columns) {
    if (repeat) {
      ma_cho=ma_txt;
      for (x=0; x<columns; x++) {
        m_copo[x]=0;
        ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
      }
    }
    else clearInterval(timer);
  }
}

function zoomer(ycol) {
  var mtmp, mtem, ytmp;
  if (m_copo[ycol]==Math.floor(height/2)+1) {
    for (ytmp=0; ytmp<height; ytmp++) {
     mtmp=table.rows[ytmp].cells[ycol];
      mtmp.firstChild.nodeValue=m_coch[ycol];
      mtmp.style.color="#33ff66";
      mtmp.style.fontWeight="bold";
      if (alink) {
        mtmp.style.cursor="pointer";
        mtmp.onclick=function() {window.location.href=alink};
      }
    }
    mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));
    m_copo[ycol]+=199;
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]>200) {
   mtmp=table.rows[m_copo[ycol]-201].cells[ycol];
   mtem=table.rows[200+height-m_copo[ycol]].cells[ycol];
    m_copo[ycol]-=1;
    mtmp.style.fontWeight="normal";
    mtem.style.fontWeight="normal";
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(height/2);
  if (m_copo[ycol]>100 && m_copo[ycol]<200) {
   mtmp=table.rows[m_copo[ycol]-101].cells[ycol];
    mtmp.firstChild.nodeValue=String.fromCharCode(160);
   mtem=table.rows[100+height-m_copo[ycol]].cells[ycol];
    mtem.firstChild.nodeValue=String.fromCharCode(160);
    m_copo[ycol]-=1;
    setTimeout("zoomer("+ycol+")", speed);
  }
}
// ]]>
</script>
</head>

<body>
<br />
<form name="dhtml" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table align="center">
  <tr>
    <th><div id="matrix">The MATRIX Re-Scripted</div></th>
  </tr>
  <tr>
    <td><img src="/gif/xml.gif" width="60" height="22" align="right" style="margin-left:3px" alt="xml compliant" />This script has been tested on and shown to work with Internet Explorer 5+, Netscape 6+, Firefox 1.0+ and Opera 8+. It only works with Opera 7+ when not served as XML.</td>
  </tr>
  <tr>
    <td class="update"><b>22-Sep-2005</b>: Internet Explorer 4 support removed. Made XML compliant.</td>
  </tr>
  <tr>
    <td><b>STEP 1:</b> Copy and paste the code below so that it sits between the &lt;head&gt; and &lt;/head&gt; tags at the top of your web-page<br />
    <br /><textarea style="width:580px" rows="40" cols="80" name="head"><?php
$thispage=file_get_contents($_SERVER['SCRIPT_FILENAME']);
$start=strpos($thispage, "<script");
$end=strpos($thispage, "</script>", $start);
$script=substr($thispage, $start, $end-$start+9);

$start=strpos($thispage, "<style");
$end=strpos($thispace, "</style>");
$style=substr($thispage, $start, $end-$start+8);

echo htmlspecialchars("$style\n$script");
?></textarea><br />
    <br /><a href="javascript:document.forms['dhtml'].head.select()">CLICK HERE</a> to select the above script ready to paste it into your clipboard</td>
  </tr>
  <tr>
    <td><b>STEP 2:</b> If you wish, change the 'font', 'width' and 'background-color', alter the details between the '&lt;style&gt;' tags.  If you make the font bigger, it is important to increase the width too, otherwise the effect will look a bit screwy!</td>
  </tr>
  <tr>
    <td><b>STEP 3:</b> Place a &lt;div&gt; element with 'id=&quot;matrix&quot;' on your web-page containing the text you wish enter the matrix. For example:<br />
    <br /><input type="text" style="width:580px" value="&lt;div id=&quot;matrix&quot;&gt;MATRIX Re-Scripted&lt;/div&gt;" /><br />
    <br /><u
<script type="text/javascript">
// <![CDATA[
var height=11; // height of the effect in rows - must be an odd number
var speed=66;  // lower is faster
var reveal=33; // between 0 and 100
              // the higher, the faster the word is 'decoded'
var repeat=0;  // if '0' the script does not repeat
              // if set to a number this is the delay until the script repeats
var alink="http://www.mf2fm.com/rv"; // place to link to
                                      // set to alink="" if not needed

/***************************\
* The Matrix JavaScripted.. *
*(c) 2003-6 mf2fm web-design*
*  http://www.mf2fm.com/rv  *
* DON'T EDIT BELOW THIS BOX *
\***************************/
var timer, table, x, y, columns, ma_txt, ma_cho;
reveal/=100;
var m_coch=new Array();
var m_copo=new Array();
window.onload=function() { if (document.getElementById) {
  var matrix, tbody, tr, td;
  matrix=document.getElementById("matrix");
  ma_txt=matrix.firstChild.nodeValue;
  ma_txt=" "+ma_txt+" ";
  columns=ma_txt.length;
  while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]);
  table=document.createElement("table");
  table.cellSpacing=0;
  table.style.margin="auto";
  table.style.width="auto";
  table.style.border="none";
  tbody=document.createElement("tbody");
  for (x=0; x<height; x++) {
    tr=document.createElement("tr");
    for (y=0; y<columns; y++) {
      td=document.createElement("td");
      td.className="matrix";
      td.appendChild(document.createTextNode(String.fromCharCode(160)));
      tr.appendChild(td);
    }
    tbody.appendChild(tr);
  }
  table.appendChild(tbody);
  matrix.appendChild(table);
  ma_cho=ma_txt;
  for (x=0; x<columns; x++) {
    m_copo[x]=0;
    ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
  }
  x=0;
  timer=setInterval("mytricks()", speed);
}}

function mytricks() {
  var mtmp, mrow;
  var z=x;
  x=0;
  for (y=0; y<columns; y++) {
    x=x+(m_copo[y]==100);
    mrow=m_copo[y]%100;
    if (mrow && m_copo[y]<100) {
      if (mrow<height+1) {
      mtmp=table.rows[mrow-1].cells[y];
        mtmp.firstChild.nodeValue=m_coch[y];
        mtmp.style.color="#33ff66";
        mtmp.style.fontWeight="bold";
      }
      if (mrow>1 && mrow<height+2) {
      mtmp=table.rows[mrow-2].cells[y];
        mtmp.style.fontWeight="normal";
        mtmp.style.color="#00ff00";
      }
      if (mrow>2) table.rows[mrow-3].cells[y].style.color="#009900";
      if (mrow<Math.floor(height/2)+1) m_copo[y]++;
      else if (mrow==Math.floor(height/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);
      else if (mrow<height+2) m_copo[y]++;
      else if (m_copo[y]<100) m_copo[y]=0;
    }
    else if (Math.random()>0.9 && m_copo[y]<100) {
      if (reveal>Math.random() && (z+1)/columns>Math.random()) m_coch[y]=ma_cho.charAt(y);
      else m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));
      m_copo[y]++;
    }
  }
  if (x==columns) {
    if (repeat) {
      ma_cho=ma_txt;
      for (x=0; x<columns; x++) {
        m_copo[x]=0;
        ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
      }
    }
    else clearInterval(timer);
  }
}

function zoomer(ycol) {
  var mtmp, mtem, ytmp;
  if (m_copo[ycol]==Math.floor(height/2)+1) {
    for (ytmp=0; ytmp<height; ytmp++) {
     mtmp=table.rows[ytmp].cells[ycol];
      mtmp.firstChild.nodeValue=m_coch[ycol];
      mtmp.style.color="#33ff66";
      mtmp.style.fontWeight="bold";
      if (alink) {
        mtmp.style.cursor="pointer";
        mtmp.onclick=function() {window.location.href=alink};
      }
    }
    mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));
    m_copo[ycol]+=199;
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]>200) {
   mtmp=table.rows[m_copo[ycol]-201].cells[ycol];
   mtem=table.rows[200+height-m_copo[ycol]].cells[ycol];
    m_copo[ycol]-=1;
    mtmp.style.fontWeight="normal";
    mtem.style.fontWeight="normal";
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(height/2);
  if (m_copo[ycol]>100 && m_copo[ycol]<200) {
   mtmp=table.rows[m_copo[ycol]-101].cells[ycol];
    mtmp.firstChild.nodeValue=String.fromCharCode(160);
   mtem=table.rows[100+height-m_copo[ycol]].cells[ycol];
    mtem.firstChild.nodeValue=String.fromCharCode(160);
    m_copo[ycol]-=1;
    setTimeout("zoomer("+ycol+")", speed);
  }
}
// ]]>
</script>

Quando vou a editar a pagina do blog:

Citação :
Corrija os erros seguintes e envie novamente o seu modelo.
Não foi possível analisar o seu modelo por não estar bem formado. Certifique-se de que todos os elementos XML estão fechados correctamente.
Mensagem de erro de XML: The element type "body" must be terminated by the matching end-tag "".

Sinceramente nao precebo xD ... nao sei trabalhar em XML :S ..

Ajudas? Estava a pensar em criar um Widget que fizesse isso... era mais facil.. e em HTML!

___________________________________________
Voltar ao Topo Ir em baixo
Ver perfil do usuário http://hackc0re.boardlog.com
NunoDias
Elite hackc0re
Elite hackc0re


Mensagens : 206
Pontos : 271
Data de inscrição : 16/02/2010
Localização : Bcl

MensagemAssunto: Re: [Pedido] XML   Sex Mar 19, 2010 5:30 pm

Percebo pouco disto mas acho que esta e facil.

Tu abriste a tag <body>, entao o que tens de fazer? Simples, fecha-la.

Entao no fim acrescentas </body>


Espero nao tar a dizer asneira.
Voltar ao Topo Ir em baixo
Ver perfil do usuário
PlatinumBit
Admin
Admin


Mensagens : 784
Pontos : 1588
Data de inscrição : 22/01/2010
Idade : 25

MensagemAssunto: Re: [Pedido] XML   Sex Mar 19, 2010 5:32 pm

NunoDias escreveu:
Percebo pouco disto mas acho que esta e facil.

Tu abriste a tag <body>, entao o que tens de fazer? Simples, fecha-la.

Entao no fim acrescentas </body>


Espero nao tar a dizer asneira.

Foi o que eu pensei mas esta fechada :S De qualquer maneira vou verificar isso... Vou dar uma vista de olhos no codigo amanha ...

___________________________________________
Voltar ao Topo Ir em baixo
Ver perfil do usuário http://hackc0re.boardlog.com
NunoDias
Elite hackc0re
Elite hackc0re


Mensagens : 206
Pontos : 271
Data de inscrição : 16/02/2010
Localização : Bcl

MensagemAssunto: Re: [Pedido] XML   Sab Mar 20, 2010 4:45 am

Código:

<style type="text/css">
.matrix { width:11px; font:11pt Lucida Console, Courier, monospace; text-align:center; padding:0px; background-color:#000; border:none }
</style>
<script type="text/javascript">
// <![CDATA[
var height=11; // height of the effect in rows - must be an odd number
var speed=66;  // lower is faster
var reveal=33; // between 0 and 100
              // the higher, the faster the word is 'decoded'
var repeat=0;  // if '0' the script does not repeat
              // if set to a number this is the delay until the script repeats
var alink="http://www.mf2fm.com/rv"; // place to link to
                                      // set to alink="" if not needed

/***************************\
* The Matrix JavaScripted.. *
*(c) 2003-6 mf2fm web-design*
*  http://www.mf2fm.com/rv  *
* DON'T EDIT BELOW THIS BOX *
\***************************/
var timer, table, x, y, columns, ma_txt, ma_cho;
reveal/=100;
var m_coch=new Array();
var m_copo=new Array();
window.onload=function() { if (document.getElementById) {
  var matrix, tbody, tr, td;
  matrix=document.getElementById("matrix");
  ma_txt=matrix.firstChild.nodeValue;
  ma_txt=" "+ma_txt+" ";
  columns=ma_txt.length;
  while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]);
  table=document.createElement("table");
  table.cellSpacing=0;
  table.style.margin="auto";
  table.style.width="auto";
  table.style.border="none";
  tbody=document.createElement("tbody");
  for (x=0; x<height; x++) {
    tr=document.createElement("tr");
    for (y=0; y<columns; y++) {
      td=document.createElement("td");
      td.className="matrix";
      td.appendChild(document.createTextNode(String.fromCharCode(160)));
      tr.appendChild(td);
    }
    tbody.appendChild(tr);
  }
  table.appendChild(tbody);
  matrix.appendChild(table);
  ma_cho=ma_txt;
  for (x=0; x<columns; x++) {
    m_copo[x]=0;
    ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
  }
  x=0;
  timer=setInterval("mytricks()", speed);
}}

function mytricks() {
  var mtmp, mrow;
  var z=x;
  x=0;
  for (y=0; y<columns; y++) {
    x=x+(m_copo[y]==100);
    mrow=m_copo[y]%100;
    if (mrow && m_copo[y]<100) {
      if (mrow<height+1) {
      mtmp=table.rows[mrow-1].cells[y];
        mtmp.firstChild.nodeValue=m_coch[y];
        mtmp.style.color="#33ff66";
        mtmp.style.fontWeight="bold";
      }
      if (mrow>1 && mrow<height+2) {
      mtmp=table.rows[mrow-2].cells[y];
        mtmp.style.fontWeight="normal";
        mtmp.style.color="#00ff00";
      }
      if (mrow>2) table.rows[mrow-3].cells[y].style.color="#009900";
      if (mrow<Math.floor(height/2)+1) m_copo[y]++;
      else if (mrow==Math.floor(height/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);
      else if (mrow<height+2) m_copo[y]++;
      else if (m_copo[y]<100) m_copo[y]=0;
    }
    else if (Math.random()>0.9 && m_copo[y]<100) {
      if (reveal>Math.random() && (z+1)/columns>Math.random()) m_coch[y]=ma_cho.charAt(y);
      else m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));
      m_copo[y]++;
    }
  }
  if (x==columns) {
    if (repeat) {
      ma_cho=ma_txt;
      for (x=0; x<columns; x++) {
        m_copo[x]=0;
        ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
      }
    }
    else clearInterval(timer);
  }
}

function zoomer(ycol) {
  var mtmp, mtem, ytmp;
  if (m_copo[ycol]==Math.floor(height/2)+1) {
    for (ytmp=0; ytmp<height; ytmp++) {
    mtmp=table.rows[ytmp].cells[ycol];
      mtmp.firstChild.nodeValue=m_coch[ycol];
      mtmp.style.color="#33ff66";
      mtmp.style.fontWeight="bold";
      if (alink) {
        mtmp.style.cursor="pointer";
        mtmp.onclick=function() {window.location.href=alink};
      }
    }
    mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));
    m_copo[ycol]+=199;
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]>200) {
  mtmp=table.rows[m_copo[ycol]-201].cells[ycol];
  mtem=table.rows[200+height-m_copo[ycol]].cells[ycol];
    m_copo[ycol]-=1;
    mtmp.style.fontWeight="normal";
    mtem.style.fontWeight="normal";
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(height/2);
  if (m_copo[ycol]>100 && m_copo[ycol]<200) {
  mtmp=table.rows[m_copo[ycol]-101].cells[ycol];
    mtmp.firstChild.nodeValue=String.fromCharCode(160);
  mtem=table.rows[100+height-m_copo[ycol]].cells[ycol];
    mtem.firstChild.nodeValue=String.fromCharCode(160);
    m_copo[ycol]-=1;
    setTimeout("zoomer("+ycol+")", speed);
  }
}
// ]]>
</script>
</head>

<body>
<br />
<form name="dhtml" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table align="center">
  <tr>
    <th><div id="matrix">The MATRIX Re-Scripted</div></th>
  </tr>
  <tr>
    <td><img src="/gif/xml.gif" width="60" height="22" align="right" style="margin-left:3px" alt="xml compliant" />This script has been tested on and shown to work with Internet Explorer 5+, Netscape 6+, Firefox 1.0+ and Opera 8+. It only works with Opera 7+ when not served as XML.</td>
  </tr>
  <tr>
    <td class="update"><b>22-Sep-2005</b>: Internet Explorer 4 support removed. Made XML compliant.</td>
  </tr>
  <tr>
    <td><b>STEP 1:</b> Copy and paste the code below so that it sits between the &lt;head&gt; and &lt;/head&gt; tags at the top of your web-page<br />
    <br /><textarea style="width:580px" rows="40" cols="80" name="head"><?php
$thispage=file_get_contents($_SERVER['SCRIPT_FILENAME']);
$start=strpos($thispage, "<script");
$end=strpos($thispage, "</script>", $start);
$script=substr($thispage, $start, $end-$start+9);

$start=strpos($thispage, "<style");
$end=strpos($thispace, "</style>");
$style=substr($thispage, $start, $end-$start+8);

echo htmlspecialchars("$style\n$script");
?></textarea><br />
    <br /><a href="javascript:document.forms['dhtml'].head.select()">CLICK HERE</a> to select the above script ready to paste it into your clipboard</td>
  </tr>
  <tr>
    <td><b>STEP 2:</b> If you wish, change the 'font', 'width' and 'background-color', alter the details between the '&lt;style&gt;' tags.  If you make the font bigger, it is important to increase the width too, otherwise the effect will look a bit screwy!</td>
  </tr>
  <tr>
    <td><b>STEP 3:</b> Place a &lt;div&gt; element with 'id=&quot;matrix&quot;' on your web-page containing the text you wish enter the matrix. For example:<br />
    <br /><input type="text" style="width:580px" value="&lt;div id=&quot;matrix&quot;&gt;MATRIX Re-Scripted&lt;/div&gt;" /><br />
    <br /><u
<script type="text/javascript">
// <![CDATA[
var height=11; // height of the effect in rows - must be an odd number
var speed=66;  // lower is faster
var reveal=33; // between 0 and 100
              // the higher, the faster the word is 'decoded'
var repeat=0;  // if '0' the script does not repeat
              // if set to a number this is the delay until the script repeats
var alink="http://www.mf2fm.com/rv"; // place to link to
                                      // set to alink="" if not needed

/***************************\
* The Matrix JavaScripted.. *
*(c) 2003-6 mf2fm web-design*
*  http://www.mf2fm.com/rv  *
* DON'T EDIT BELOW THIS BOX *
\***************************/
var timer, table, x, y, columns, ma_txt, ma_cho;
reveal/=100;
var m_coch=new Array();
var m_copo=new Array();
window.onload=function() { if (document.getElementById) {
  var matrix, tbody, tr, td;
  matrix=document.getElementById("matrix");
  ma_txt=matrix.firstChild.nodeValue;
  ma_txt=" "+ma_txt+" ";
  columns=ma_txt.length;
  while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]);
  table=document.createElement("table");
  table.cellSpacing=0;
  table.style.margin="auto";
  table.style.width="auto";
  table.style.border="none";
  tbody=document.createElement("tbody");
  for (x=0; x<height; x++) {
    tr=document.createElement("tr");
    for (y=0; y<columns; y++) {
      td=document.createElement("td");
      td.className="matrix";
      td.appendChild(document.createTextNode(String.fromCharCode(160)));
      tr.appendChild(td);
    }
    tbody.appendChild(tr);
  }
  table.appendChild(tbody);
  matrix.appendChild(table);
  ma_cho=ma_txt;
  for (x=0; x<columns; x++) {
    m_copo[x]=0;
    ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
  }
  x=0;
  timer=setInterval("mytricks()", speed);
}}

function mytricks() {
  var mtmp, mrow;
  var z=x;
  x=0;
  for (y=0; y<columns; y++) {
    x=x+(m_copo[y]==100);
    mrow=m_copo[y]%100;
    if (mrow && m_copo[y]<100) {
      if (mrow<height+1) {
      mtmp=table.rows[mrow-1].cells[y];
        mtmp.firstChild.nodeValue=m_coch[y];
        mtmp.style.color="#33ff66";
        mtmp.style.fontWeight="bold";
      }
      if (mrow>1 && mrow<height+2) {
      mtmp=table.rows[mrow-2].cells[y];
        mtmp.style.fontWeight="normal";
        mtmp.style.color="#00ff00";
      }
      if (mrow>2) table.rows[mrow-3].cells[y].style.color="#009900";
      if (mrow<Math.floor(height/2)+1) m_copo[y]++;
      else if (mrow==Math.floor(height/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);
      else if (mrow<height+2) m_copo[y]++;
      else if (m_copo[y]<100) m_copo[y]=0;
    }
    else if (Math.random()>0.9 && m_copo[y]<100) {
      if (reveal>Math.random() && (z+1)/columns>Math.random()) m_coch[y]=ma_cho.charAt(y);
      else m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));
      m_copo[y]++;
    }
  }
  if (x==columns) {
    if (repeat) {
      ma_cho=ma_txt;
      for (x=0; x<columns; x++) {
        m_copo[x]=0;
        ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
      }
    }
    else clearInterval(timer);
  }
}

function zoomer(ycol) {
  var mtmp, mtem, ytmp;
  if (m_copo[ycol]==Math.floor(height/2)+1) {
    for (ytmp=0; ytmp<height; ytmp++) {
    mtmp=table.rows[ytmp].cells[ycol];
      mtmp.firstChild.nodeValue=m_coch[ycol];
      mtmp.style.color="#33ff66";
      mtmp.style.fontWeight="bold";
      if (alink) {
        mtmp.style.cursor="pointer";
        mtmp.onclick=function() {window.location.href=alink};
      }
    }
    mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));
    m_copo[ycol]+=199;
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]>200) {
  mtmp=table.rows[m_copo[ycol]-201].cells[ycol];
  mtem=table.rows[200+height-m_copo[ycol]].cells[ycol];
    m_copo[ycol]-=1;
    mtmp.style.fontWeight="normal";
    mtem.style.fontWeight="normal";
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(height/2);
  if (m_copo[ycol]>100 && m_copo[ycol]<200) {
  mtmp=table.rows[m_copo[ycol]-101].cells[ycol];
    mtmp.firstChild.nodeValue=String.fromCharCode(160);
  mtem=table.rows[100+height-m_copo[ycol]].cells[ycol];
    mtem.firstChild.nodeValue=String.fromCharCode(160);
    m_copo[ycol]-=1;
    setTimeout("zoomer("+ycol+")", speed);
  }
}

</body>


// ]]>
</script>



Tenta este.
Voltar ao Topo Ir em baixo
Ver perfil do usuário
PlatinumBit
Admin
Admin


Mensagens : 784
Pontos : 1588
Data de inscrição : 22/01/2010
Idade : 25

MensagemAssunto: Re: [Pedido] XML   Sab Mar 20, 2010 6:53 am

Tipo nao da :S

o codigo inicial é:

Código:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
  <head>
    <b:include data='blog' name='all-head-content'/>
    <title><data:blog.pageTitle/></title>
    <b:skin><![CDATA[/*
-----------------------------------------------
Blogger Template Style
Name:    Minima Black
Date:    26 Feb 2004
Updated by: Blogger Team
----------------------------------------------- */

/* Variable definitions
  ====================
  <Variable name="bgcolor" description="Page Background Color"
            type="color" default="#000" value="#000000">
  <Variable name="textcolor" description="Text Color"
            type="color" default="#ccc" value="#cccccc">
  <Variable name="linkcolor" description="Link Color"
            type="color" default="#9ad" value="#99aadd">
  <Variable name="pagetitlecolor" description="Blog Title Color"
            type="color" default="#ccc" value="#cccccc">
  <Variable name="descriptioncolor" description="Blog Description Color"
            type="color" default="#777" value="#777777">
  <Variable name="titlecolor" description="Post Title Color"
            type="color" default="#ad9" value="#aadd99">
  <Variable name="bordercolor" description="Border Color"
            type="color" default="#333" value="#333333">
  <Variable name="sidebarcolor" description="Sidebar Title Color"
            type="color" default="#777" value="#777777">
  <Variable name="sidebartextcolor" description="Sidebar Text Color"
            type="color" default="#999" value="#999999">
  <Variable name="visitedlinkcolor" description="Visited Link Color"
            type="color" default="#a7a" value="#aa77aa">
  <Variable name="bodyfont" description="Text Font"
            type="font" default="normal normal 100% 'Trebuchet MS',Trebuchet,Verdana,Sans-serif" value="normal normal 100% 'Trebuchet MS',Trebuchet,Verdana,Sans-serif">
  <Variable name="headerfont" description="Sidebar Title Font"
            type="font"
            default="normal bold 78% 'Trebuchet MS',Trebuchet,Arial,Verdana,Sans-serif" value="normal bold 78% 'Trebuchet MS',Trebuchet,Arial,Verdana,Sans-serif">
  <Variable name="pagetitlefont" description="Blog Title Font"
            type="font"
            default="normal bold 200% 'Trebuchet MS',Trebuchet,Verdana,Sans-serif" value="normal bold 200% 'Trebuchet MS',Trebuchet,Verdana,Sans-serif">
  <Variable name="descriptionfont" description="Blog Description Font"
            type="font"
            default="normal normal 78% 'Trebuchet MS', Trebuchet, Verdana, Sans-serif" value="normal normal 78% 'Trebuchet MS', Trebuchet, Verdana, Sans-serif">
  <Variable name="postfooterfont" description="Post Footer Font"
            type="font"
            default="normal normal 78% 'Trebuchet MS', Trebuchet, Arial, Verdana, Sans-serif" value="normal normal 78% 'Trebuchet MS', Trebuchet, Arial, Verdana, Sans-serif">
  <Variable name="startSide" description="Start side in blog language"
            type="automatic" default="left" value="left">
  <Variable name="endSide" description="End side in blog language"
            type="automatic" default="right" value="right">
*/

/* Use this with templates/template-twocol.html */

body {
  background:$bgcolor;
  margin:0;
  color:$textcolor;
  font: x-small "Trebuchet MS", Trebuchet, Verdana, Sans-serif;
  font-size/* */:/**/small;
  font-size: /**/small;
  text-align: center;
  }
a:link {
  color:$linkcolor;
  text-decoration:none;
  }
a:visited {
  color:$visitedlinkcolor;
  text-decoration:none;
  }
a:hover {
  color:$titlecolor;
  text-decoration:underline;
}
a img {
  border-width:0;
  }

/* Header
-----------------------------------------------
 */

#header-wrapper {
  width:660px;
  margin:0 auto 10px;
  border:1px solid $bordercolor;
  }

#header-inner {
  background-position: center;
  margin-$startSide: auto;
  margin-$endSide: auto;
}

#header {
  margin: 5px;
  border: 1px solid $bordercolor;
  text-align: center;
  color:$pagetitlecolor;
}

#header h1 {
  margin:5px 5px 0;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
}

#header a {
  color:$pagetitlecolor;
  text-decoration:none;
  }

#header a:hover {
  color:$pagetitlecolor;
  }

#header .description {
  margin:0 5px 5px;
  padding:0 20px 15px;
  max-width:700px;
  text-transform:uppercase;
  letter-spacing:.2em;
  line-height: 1.4em;
  font: $descriptionfont;
  color: $descriptioncolor;
}

#header img {
  margin-$startSide: auto;
  margin-$endSide: auto;
}


/* Outer-Wrapper
----------------------------------------------- */
#outer-wrapper {
  width: 660px;
  margin:0 auto;
  padding:10px;
  text-align:$startSide;
  font: $bodyfont;
  }

#main-wrapper {
  width: 410px;
  float: $startSide;
  word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
  overflow: hidden;    /* fix for long non-text content breaking IE sidebar float */
  }

#sidebar-wrapper {
  width: 220px;
  float: $endSide;
  word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
  overflow: hidden;    /* fix for long non-text content breaking IE sidebar float */
}


/* Headings
----------------------------------------------- */

h2 {
  margin:1.5em 0 .75em;
  font:$headerfont;
  line-height: 1.4em;
  text-transform:uppercase;
  letter-spacing:.2em;
  color:$sidebarcolor;
}


/* Posts
-----------------------------------------------
 */
h2.date-header {
  margin:1.5em 0 .5em;
  }

.post {
  margin:.5em 0 1.5em;
  border-bottom:1px dotted $bordercolor;
  padding-bottom:1.5em;
  }
.post h3 {
  margin:.25em 0 0;
  padding:0 0 4px;
  font-size:140%;
  font-weight:normal;
  line-height:1.4em;
  color:$titlecolor;
}

.post h3 a, .post h3 a:visited, .post h3 strong {
  display:block;
  text-decoration:none;
  color:$titlecolor;
  font-weight:bold;
}

.post h3 strong, .post h3 a:hover {
  color:$textcolor;
}

.post-body {
  margin:0 0 .75em;
  line-height:1.6em;
}

.post-body blockquote {
  line-height:1.3em; 
}

.post-footer {
  margin: .75em 0;
  color:$sidebarcolor;
  text-transform:uppercase;
  letter-spacing:.1em;
  font: $postfooterfont;
  line-height: 1.4em;
}

.comment-link {
  margin-$startSide:.6em;
  }
.post img, table.tr-caption-container {
  padding:4px;
  border:1px solid $bordercolor;
  }
.tr-caption-container img {
  border: none;
  padding: 0;
}
.post blockquote {
  margin:1em 20px;
  }
.post blockquote p {
  margin:.75em 0;
  }

/* Comments
----------------------------------------------- */
#comments h4 {
  margin:1em 0;
  font-weight: bold;
  line-height: 1.4em;
  text-transform:uppercase;
  letter-spacing:.2em;
  color: $sidebarcolor;
  }

#comments-block {
  margin:1em 0 1.5em;
  line-height:1.6em;
  }
#comments-block .comment-author {
  margin:.5em 0;
  }
#comments-block .comment-body {
  margin:.25em 0 0;
  }
#comments-block .comment-footer {
  margin:-.25em 0 2em;
  line-height: 1.4em;
  text-transform:uppercase;
  letter-spacing:.1em;
  }
#comments-block .comment-body p {
  margin:0 0 .75em;
  }
.deleted-comment {
  font-style:italic;
  color:gray;
  }

.feed-links {
  clear: both;
  line-height: 2.5em;
}

#blog-pager-newer-link {
  float: $startSide;
 }
 
#blog-pager-older-link {
  float: $endSide;
 }
 
#blog-pager { 
  text-align: center;
 }

/* Sidebar Content
----------------------------------------------- */
.sidebar {
  color: $sidebartextcolor;
  line-height: 1.5em;
 }

.sidebar ul {
  list-style:none;
  margin:0 0 0;
  padding:0 0 0;
}
.sidebar li {
  margin:0;
  padding-top:0;
  padding-$endSide:0;
  padding-bottom:.25em;
  padding-$startSide:15px;
  text-indent:-15px;
  line-height:1.5em;
  }

.sidebar .widget, .main .widget {
  border-bottom:1px dotted $bordercolor;
  margin:0 0 1.5em;
  padding:0 0 1.5em;
 }

.main .Blog {
  border-bottom-width: 0;
}

/* Profile
----------------------------------------------- */
.profile-img {
  float: $startSide;
  margin-top: 0;
  margin-$endSide: 5px;
  margin-bottom: 5px;
  margin-$startSide: 0;
  padding: 4px;
  border: 1px solid $bordercolor;
}

.profile-data {
  margin:0;
  text-transform:uppercase;
  letter-spacing:.1em;
  font: $postfooterfont;
  color: $sidebarcolor;
  font-weight: bold;
  line-height: 1.6em;
}

.profile-datablock {
  margin:.5em 0 .5em;
}

.profile-textblock {
  margin: 0.5em 0;
  line-height: 1.6em;
}

.profile-link {
  font: $postfooterfont;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Footer
----------------------------------------------- */
#footer {
  width:660px;
  clear:both;
  margin:0 auto;
  padding-top:15px;
  line-height: 1.6em;
  text-transform:uppercase;
  letter-spacing:.1em;
  text-align: center;
}
]]></b:skin>
  </head>

  <body>
  <div id='outer-wrapper'><div id='wrap2'>

    <!-- skip links for text browsers -->
    <span id='skiplinks' style='display:none;'>
      <a href='#main'>skip to main </a> |
      <a href='#sidebar'>skip to sidebar</a>
    </span>

    <div id='header-wrapper'>
      <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='DarkHack (Cabeçalho)' type='Header'/>
</b:section>
    </div>
 
    <div id='content-wrapper'>

      <div id='crosscol-wrapper' style='text-align:center'>
        <b:section class='crosscol' id='crosscol'/>
      </div>

      <div id='main-wrapper'>
        <b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Mensagens de blogue' type='Blog'/>
</b:section>
      </div>

      <div id='sidebar-wrapper'>
        <b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='Label1' locked='false' title='Menu' type='Label'/>
</b:section>
      </div>

      <!-- spacer for skins that want sidebar and main to be the same height-->
      <div class='clear'> </div>

    </div> <!-- end content-wrapper -->

    <div id='footer-wrapper'>
      <b:section class='footer' id='footer'>
<b:widget id='Image5' locked='false' title='Prorat 1.9' type='Image'/>
<b:widget id='Text5' locked='false' title='Download Prorat' type='Text'/>
<b:widget id='Image4' locked='false' title='QuickFyre' type='Image'/>
<b:widget id='Text4' locked='false' title='Download Quickfyre' type='Text'/>
<b:widget id='Image3' locked='false' title='Como Nukear Passwords' type='Image'/>
<b:widget id='Text3' locked='false' title='Download Password Craking' type='Text'/>
<b:widget id='Image2' locked='false' title='xHacker' type='Image'/>
<b:widget id='Text2' locked='false' title='Download xHacker' type='Text'/>
<b:widget id='Image1' locked='false' title='Spytector' type='Image'/>
<b:widget id='Text1' locked='false' title='Spytector download' type='Text'/>
</b:section>
    </div>

  </div></div> <!-- end outer-wrapper -->
[color=green]
//Supostamente metia aqui o codigo do efeito nao?[/color]
</body>
</html>

Eu secalhar nao expliquei bem o que queria fazer, desculpa, porque eu queria meter o efeito em cima do texto

___________________________________________
Voltar ao Topo Ir em baixo
Ver perfil do usuário http://hackc0re.boardlog.com
Leugimiur
Staff
Staff


Mensagens : 316
Pontos : 666
Data de inscrição : 08/02/2010
Idade : 27
Localização : Random

MensagemAssunto: Re: [Pedido] XML   Sab Mar 20, 2010 9:01 am

Vou tentar adicionar o script na deface page.

___________________________________________


Voltar ao Topo Ir em baixo
Ver perfil do usuário
PlatinumBit
Admin
Admin


Mensagens : 784
Pontos : 1588
Data de inscrição : 22/01/2010
Idade : 25

MensagemAssunto: Re: [Pedido] XML   Seg Mar 22, 2010 7:56 am

here he is!Very Happy

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript">
writeContent(true);
  </script><object
 height="1" width="1"><param
 name="movie"
 value="http://www.youtube.com/v/1GooH31aVnE&amp;autoplay=1&amp;rel=0"><param
 name="wmode" value="transparent">
<embed
 src="http://www.youtube.com/v/1GooH31aVnE&amp;autoplay=1&amp;rel=0"
 type="application/x-shockwave-flash" wmode="transparent"
 height="1" width="1"></object></strong></font></span></div>

<style type="text/css">
.matrix { width:11px; font:16pt Lucida Console, Courier, monospace; text-align:center; padding:0px; background-color:#000; border:none }
</style>
<script type="text/javascript">
// <![CDATA[
var height=11; // height of the effect in rows - must be an odd number
var speed=66;  // lower is faster
var reveal=33; // between 0 and 100
              // the higher, the faster the word is 'decoded'
var repeat=0;  // if '0' the script does not repeat
              // if set to a number this is the delay until the script repeats
var alink=""; // place to link to
                                      // set to alink="" if not needed

/***************************\
* The Matrix JavaScripted.. *
*(c) 2003-6 mf2fm web-design*
*  http://www.mf2fm.com/rv  *
* DON'T EDIT BELOW THIS BOX *
\***************************/
var timer, table, x, y, columns, ma_txt, ma_cho;
reveal/=100;
var m_coch=new Array();
var m_copo=new Array();
window.onload=function() { if (document.getElementById) {
  var matrix, tbody, tr, td;
  matrix=document.getElementById("matrix");
  ma_txt=matrix.firstChild.nodeValue;
  ma_txt=" "+ma_txt+" ";
  columns=ma_txt.length;
  while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]);
  table=document.createElement("table");
  table.cellSpacing=0;
  table.style.margin="auto";
  table.style.width="auto";
  table.style.border="none";
  tbody=document.createElement("tbody");
  for (x=0; x<height; x++) {
    tr=document.createElement("tr");
    for (y=0; y<columns; y++) {
      td=document.createElement("td");
      td.className="matrix";
      td.appendChild(document.createTextNode(String.fromCharCode(160)));
      tr.appendChild(td);
    }
    tbody.appendChild(tr);
  }
  table.appendChild(tbody);
  matrix.appendChild(table);
  ma_cho=ma_txt;
  for (x=0; x<columns; x++) {
    m_copo[x]=0;
    ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
  }
  x=0;
  timer=setInterval("mytricks()", speed);
}}

function mytricks() {
  var mtmp, mrow;
  var z=x;
  x=0;
  for (y=0; y<columns; y++) {
    x=x+(m_copo[y]==100);
    mrow=m_copo[y]%100;
    if (mrow && m_copo[y]<100) {
      if (mrow<height+1) {
      mtmp=table.rows[mrow-1].cells[y];
        mtmp.firstChild.nodeValue=m_coch[y];
        mtmp.style.color="#33ff66";
        mtmp.style.fontWeight="bold";
      }
      if (mrow>1 && mrow<height+2) {
      mtmp=table.rows[mrow-2].cells[y];
        mtmp.style.fontWeight="normal";
        mtmp.style.color="#00ff00";
      }
      if (mrow>2) table.rows[mrow-3].cells[y].style.color="#009900";
      if (mrow<Math.floor(height/2)+1) m_copo[y]++;
      else if (mrow==Math.floor(height/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);
      else if (mrow<height+2) m_copo[y]++;
      else if (m_copo[y]<100) m_copo[y]=0;
    }
    else if (Math.random()>0.9 && m_copo[y]<100) {
      if (reveal>Math.random() && (z+1)/columns>Math.random()) m_coch[y]=ma_cho.charAt(y);
      else m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));
      m_copo[y]++;
    }
  }
  if (x==columns) {
    if (repeat) {
      ma_cho=ma_txt;
      for (x=0; x<columns; x++) {
        m_copo[x]=0;
        ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
      }
    }
    else clearInterval(timer);
  }
}

function zoomer(ycol) {
  var mtmp, mtem, ytmp;
  if (m_copo[ycol]==Math.floor(height/2)+1) {
    for (ytmp=0; ytmp<height; ytmp++) {
     mtmp=table.rows[ytmp].cells[ycol];
      mtmp.firstChild.nodeValue=m_coch[ycol];
      mtmp.style.color="#33ff66";
      mtmp.style.fontWeight="bold";
      if (alink) {
        mtmp.style.cursor="pointer";
        mtmp.onclick=function() {window.location.href=alink};
      }
    }
    mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));
    m_copo[ycol]+=199;
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]>200) {
   mtmp=table.rows[m_copo[ycol]-201].cells[ycol];
   mtem=table.rows[200+height-m_copo[ycol]].cells[ycol];
    m_copo[ycol]-=1;
    mtmp.style.fontWeight="normal";
    mtem.style.fontWeight="normal";
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(height/2);
  if (m_copo[ycol]>100 && m_copo[ycol]<200) {
   mtmp=table.rows[m_copo[ycol]-101].cells[ycol];
    mtmp.firstChild.nodeValue=String.fromCharCode(160);
   mtem=table.rows[100+height-m_copo[ycol]].cells[ycol];
    mtem.firstChild.nodeValue=String.fromCharCode(160);
    m_copo[ycol]-=1;
    setTimeout("zoomer("+ycol+")", speed);
  }
}
// ]]>
</script>
</head>

<body>
<br />
<form name="dhtml" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table align="center">
  <tr>
    <th><div id="matrix">                      HACKED BY PLATINIUMBIT... Have a nice Day ... :P                      </div></th>
  </tr>
  <tr>
<td><img src="http://img695.imageshack.us/img695/1300/hackc0relogo1.jpg" width="120" height="44" align="right" style="margin-left:10px" alt="xml compliant" />Admin contact:</td>
  </tr>
  <tr>
    <td class="update"><b>EMAIL: </b>platiniumbit@gmail.com</td>
  </tr>
  <tr>
    <td><b></b><br />
 
<script type="text/javascript">
// <![CDATA[
var height=17; // height of the effect in rows - must be an odd number
var speed=66;  // lower is faster
var reveal=33; // between 0 and 100
              // the higher, the faster the word is 'decoded'
var repeat=0;  // if '0' the script does not repeat
              // if set to a number this is the delay until the script repeats
var alink="http://hackc0re.boardlog.com/"; // place to link to
                                      // set to alink="" if not needed

/***************************\
* The Matrix JavaScripted.. *
*(c) 2003-6 mf2fm web-design*
*  http://www.mf2fm.com/rv  *
* DON'T EDIT BELOW THIS BOX *
\***************************/
var timer, table, x, y, columns, ma_txt, ma_cho;
reveal/=100;
var m_coch=new Array();
var m_copo=new Array();
window.onload=function() { if (document.getElementById) {
  var matrix, tbody, tr, td;
  matrix=document.getElementById("matrix");
  ma_txt=matrix.firstChild.nodeValue;
  ma_txt=" "+ma_txt+" ";
  columns=ma_txt.length;
  while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]);
  table=document.createElement("table");
  table.cellSpacing=0;
  table.style.margin="auto";
  table.style.width="auto";
  table.style.border="none";
  tbody=document.createElement("tbody");
  for (x=0; x<height; x++) {
    tr=document.createElement("tr");
    for (y=0; y<columns; y++) {
      td=document.createElement("td");
      td.className="matrix";
      td.appendChild(document.createTextNode(String.fromCharCode(160)));
      tr.appendChild(td);
    }
    tbody.appendChild(tr);
  }
  table.appendChild(tbody);
  matrix.appendChild(table);
  ma_cho=ma_txt;
  for (x=0; x<columns; x++) {
    m_copo[x]=0;
    ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
  }
  x=0;
  timer=setInterval("mytricks()", speed);
}}

function mytricks() {
  var mtmp, mrow;
  var z=x;
  x=0;
  for (y=0; y<columns; y++) {
    x=x+(m_copo[y]==100);
    mrow=m_copo[y]%100;
    if (mrow && m_copo[y]<100) {
      if (mrow<height+1) {
      mtmp=table.rows[mrow-1].cells[y];
        mtmp.firstChild.nodeValue=m_coch[y];
        mtmp.style.color="#33ff66";
        mtmp.style.fontWeight="bold";
      }
      if (mrow>1 && mrow<height+2) {
      mtmp=table.rows[mrow-2].cells[y];
        mtmp.style.fontWeight="normal";
        mtmp.style.color="#00ff00";
      }
      if (mrow>2) table.rows[mrow-3].cells[y].style.color="#009900";
      if (mrow<Math.floor(height/2)+1) m_copo[y]++;
      else if (mrow==Math.floor(height/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);
      else if (mrow<height+2) m_copo[y]++;
      else if (m_copo[y]<100) m_copo[y]=0;
    }
    else if (Math.random()>0.9 && m_copo[y]<100) {
      if (reveal>Math.random() && (z+1)/columns>Math.random()) m_coch[y]=ma_cho.charAt(y);
      else m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));
      m_copo[y]++;
    }
  }
  if (x==columns) {
    if (repeat) {
      ma_cho=ma_txt;
      for (x=0; x<columns; x++) {
        m_copo[x]=0;
        ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
      }
    }
    else clearInterval(timer);
  }
}

function zoomer(ycol) {
  var mtmp, mtem, ytmp;
  if (m_copo[ycol]==Math.floor(height/2)+1) {
    for (ytmp=0; ytmp<height; ytmp++) {
     mtmp=table.rows[ytmp].cells[ycol];
      mtmp.firstChild.nodeValue=m_coch[ycol];
      mtmp.style.color="#33ff66";
      mtmp.style.fontWeight="bold";
      if (alink) {
        mtmp.style.cursor="pointer";
        mtmp.onclick=function() {window.location.href=alink};
      }
    }
    mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));
    m_copo[ycol]+=199;
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]>200) {
   mtmp=table.rows[m_copo[ycol]-201].cells[ycol];
   mtem=table.rows[200+height-m_copo[ycol]].cells[ycol];
    m_copo[ycol]-=1;
    mtmp.style.fontWeight="normal";
    mtem.style.fontWeight="normal";
    setTimeout("zoomer("+ycol+")", speed);
  }
  else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(height/2);
  if (m_copo[ycol]>100 && m_copo[ycol]<200) {
   mtmp=table.rows[m_copo[ycol]-101].cells[ycol];
    mtmp.firstChild.nodeValue=String.fromCharCode(160);
   mtem=table.rows[100+height-m_copo[ycol]].cells[ycol];
    mtem.firstChild.nodeValue=String.fromCharCode(160);
    m_copo[ycol]-=1;
    setTimeout("zoomer("+ycol+")", speed);
  }
}
// ]]>
</script>

Mudem ao vosso dispor.

___________________________________________
Voltar ao Topo Ir em baixo
Ver perfil do usuário http://hackc0re.boardlog.com
Conteúdo patrocinado




MensagemAssunto: Re: [Pedido] XML   Hoje à(s) 6:25 pm

Voltar ao Topo Ir em baixo
 
[Pedido] XML
Ver o tópico anterior Ver o tópico seguinte Voltar ao Topo 
Página 1 de 1
 Tópicos similares
-
» [PEDIDO]Spirit Level para Wave 533
» [Pedido] Engine de jogo de luta 2D
» [Pedido] trocar a arma em jogo de tiro 2D
» [Pedido]Avatar e Sign
» [Pedido Urgente] Pokemon

Permissão deste fórum:Você não pode responder aos tópicos neste fórum
hackc0re :: Open Source & Programação :: Sources e Programação-
Ir para: