membuat tulisan matrix
1 . login ke akun blog
2 . lalu menuju tata letak
3 . dan tambah kan gadget
dan copy code ini :
 <style type="text/css">
</p>
<p>
.matrix { font-family:Lucida Console, Courier, Monotype; font-size:10pt; text-align:center; width:10px; padding:0px; margin:0px;}</p>
<p>
</style><br />
<br />
<script language="JavaScript" type="text/javascript">
</p>
<p>
var rows=5; // tinggi kotak</p>
<p>
var speed=30; // lebih kecil lebih cepat</p>
<p>
var reveal=1; // antara 0 dan 2.</p>
<p>
var effectalign="default" //enter "center" to center it.</p>
<p>
<br></p>
<p>
/***********************************************</p>
<p>
edit by deny</p>
<p>
***********************************************/</p>
<p>
<br></p>
<p>
var w3c=document.getElementById && !window.opera;;</p>
<p>
var ie45=document.all && !window.opera;</p>
<p>
var ma_tab, matemp, ma_bod, ma_row, x, y, columns, ma_txt, ma_cho;</p>
<p>
var m_coch=new Array();</p>
<p>
var m_copo=new Array();</p>
<p>
window.onload=function() {</p>
<p>
if (!w3c && !ie45) return</p>
<p>
var matrix=(w3c)?document.getElementById("matrix"):document.all["matrix"];</p>
<p>
ma_txt=(w3c)?matrix.firstChild.nodeValue:matrix.innerHTML;</p>
<p>
ma_txt=" "+ma_txt+" ";</p>
<p>
columns=ma_txt.length;</p>
<p>
if (w3c) {</p>
<p>
while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]);</p>
<p>
ma_tab=document.createElement("table");</p>
<p>
ma_tab.setAttribute("border", 0);</p>
<p>
ma_tab.setAttribute("align", effectalign);</p>
<p>
ma_tab.style.backgroundColor="#000000";</p>
<p>
ma_bod=document.createElement("tbody");</p>
<p>
for (x=0; x<rows; x++) {</p>
<p>
ma_row=document.createElement("tr");</p>
<p>
for (y=0; y<columns; y++) {</p>
<p>
matemp=document.createElement("td");</p>
<p>
matemp.setAttribute("id", "Mx"+x+"y"+y);</p>
<p>
matemp.className="matrix";</p>
<p>
matemp.appendChild(document.createTextNode(String.fromCharCode(160)));</p>
<p>
ma_row.appendChild(matemp);</p>
<p>
}</p>
<p>
ma_bod.appendChild(ma_row);</p>
<p>
}</p>
<p>
ma_tab.appendChild(ma_bod);</p>
<p>
matrix.appendChild(ma_tab);</p>
<p>
} else {</p>
<p>
ma_tab='<ta'+'ble align="'+effectalign+'" border="0" style="background-color:#000000">';</p>
<p>
for (var x=0; x<rows; x++) {</p>
<p>
ma_tab+='<t'+'r>';</p>
<p>
for (var y=0; y<columns; y++) {</p>
<p>
ma_tab+='<t'+'d class="matrix" id="Mx'+x+'y'+y+'">Â </'+'td>';</p>
<p>
}</p>
<p>
ma_tab+='</'+'tr>';</p>
<p>
}</p>
<p>
ma_tab+='</'+'table>';</p>
<p>
matrix.innerHTML=ma_tab;</p>
<p>
}</p>
<p>
ma_cho=ma_txt;</p>
<p>
for (x=0; x<columns; x++) {</p>
<p>
ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));</p>
<p>
m_copo[x]=0;</p>
<p>
}</p>
<p>
ma_bod=setInterval("mytricks()", speed);</p>
<p>
}</p>
<p>
<br></p>
<p>
function mytricks() {</p>
<p>
x=0;</p>
<p>
for (y=0; y<columns; y++) {</p>
<p>
x=x+(m_copo[y]==100);</p>
<p>
ma_row=m_copo[y]%100;</p>
<p>
if (ma_row && m_copo[y]<100) {</p>
<p>
if (ma_row<rows+1) {</p>
<p>
if (w3c) {</p>
<p>
matemp=document.getElementById("Mx"+(ma_row-1)+"y"+y);</p>
<p>
matemp.firstChild.nodeValue=m_coch[y];</p>
<p>
}</p>
<p>
else {</p>
<p>
matemp=document.all["Mx"+(ma_row-1)+"y"+y];</p>
<p>
matemp.innerHTML=m_coch[y];</p>
<p>
}</p>
<p>
matemp.style.color="#33ff66";</p>
<p>
matemp.style.fontWeight="bold";</p>
<p>
}</p>
<p>
if (ma_row>1 && ma_row<rows+2) {</p>
<p>
matemp=(w3c)?document.getElementById("Mx"+(ma_row-2)+"y"+y):document.all["Mx"+(ma_row-2)+"y"+y];</p>
<p>
matemp.style.fontWeight="normal";</p>
<p>
matemp.style.color="#00ff00";</p>
<p>
}</p>
<p>
if (ma_row>2) {</p>
<p>
matemp=(w3c)?document.getElementById("Mx"+(ma_row-3)+"y"+y):document.all["Mx"+(ma_row-3)+"y"+y];</p>
<p>
matemp.style.color="#009900";</p>
<p>
}</p>
<p>
if (ma_row<Math.floor(rows/2)+1) m_copo[y]++;</p>
<p>
else if (ma_row==Math.floor(rows/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);</p>
<p>
else if (ma_row<rows+2) m_copo[y]++;</p>
<p>
else if (m_copo[y]<100) m_copo[y]=0;</p>
<p>
}</p>
<p>
else if (Math.random()>0.9 && m_copo[y]<100) {</p>
<p>
m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));</p>
<p>
m_copo[y]++;</p>
<p>
}</p>
<p>
}</p>
<p>
if (x==columns) clearInterval(ma_bod);</p>
<p>
}</p>
<p>
<br></p>
<p>
function zoomer(ycol) {</p>
<p>
var mtmp, mtem, ytmp;</p>
<p>
if (m_copo[ycol]==Math.floor(rows/2)+1) {</p>
<p>
for (ytmp=0; ytmp<rows; ytmp++) {</p>
<p>
if (w3c) {</p>
<p>
mtmp=document.getElementById("Mx"+ytmp+"y"+ycol);</p>
<p>
mtmp.firstChild.nodeValue=m_coch[ycol];</p>
<p>
}</p>
<p>
else {</p>
<p>
mtmp=document.all["Mx"+ytmp+"y"+ycol];</p>
<p>
mtmp.innerHTML=m_coch[ycol];</p>
<p>
}</p>
<p>
mtmp.style.color="#33ff66";</p>
<p>
mtmp.style.fontWeight="bold";</p>
<p>
}</p>
<p>
if (Math.random()<reveal) {</p>
<p>
mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));</p>
<p>
ma_cho=ma_cho.substring(0, mtmp)+ma_cho.substring(mtmp+1, ma_cho.length);</p>
<p>
}</p>
<p>
if (Math.random()<reveal-1) ma_cho=ma_cho.substring(0, ma_cho.length-1);</p>
<p>
m_copo[ycol]+=199;</p>
<p>
setTimeout("zoomer("+ycol+")", speed);</p>
<p>
}</p>
<p>
else if (m_copo[ycol]>200) {</p>
<p>
if (w3c) {</p>
<p>
mtmp=document.getElementById("Mx"+(m_copo[ycol]-201)+"y"+ycol);</p>
<p>
mtem=document.getElementById("Mx"+(200+rows-m_copo[ycol]--)+"y"+ycol);</p>
<p>
}</p>
<p>
else {</p>
<p>
mtmp=document.all["Mx"+(m_copo[ycol]-201)+"y"+ycol];</p>
<p>
mtem=document.all["Mx"+(200+rows-m_copo[ycol]--)+"y"+ycol];</p>
<p>
}</p>
<p>
mtmp.style.fontWeight="normal";</p>
<p>
mtem.style.fontWeight="normal";</p>
<p>
setTimeout("zoomer("+ycol+")", speed);</p>
<p>
}</p>
<p>
else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(rows/2);</p>
<p>
if (m_copo[ycol]>100 && m_copo[ycol]<200) {</p>
<p>
if (w3c) {</p>
<p>
mtmp=document.getElementById("Mx"+(m_copo[ycol]-101)+"y"+ycol);</p>
<p>
mtmp.firstChild.nodeValue=String.fromCharCode(160);</p>
<p>
mtem=document.getElementById("Mx"+(100+rows-m_copo[ycol]--)+"y"+ycol);</p>
<p>
mtem.firstChild.nodeValue=String.fromCharCode(160);</p>
<p>
}</p>
<p>
else {</p>
<p>
mtmp=document.all["Mx"+(m_copo[ycol]-101)+"y"+ycol];</p>
<p>
mtmp.innerHTML=String.fromCharCode(160);</p>
<p>
mtem=document.all["Mx"+(100+rows-m_copo[ycol]--)+"y"+ycol];</p>
<p>
mtem.innerHTML=String.fromCharCode(160);</p>
<p>
}</p>
<p>
setTimeout("zoomer("+ycol+")", speed);</p>
<p>
}</p>
<p>
}</p>
<p>
// --></p>
<p>
</script><br />
<br />
<br />
<br />
<div id="matrix">
--=="<span style="">selamat datang di www-bloggergwmen</span>"==--</div>
<br />
<br />
0 komentar:
Posting Komentar