Guest User

Flicker

a guest
Aug 19th, 2019
10,581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <body bgcolor="black">
  2.  <center>
  3.  
  4.  
  5.  <link href='http://fonts.googleapis.com/css?family=Orbitron:700' rel='stylesheet' type='text/css'>
  6.  <Link href='' rel='SHORTCUT ICON'/>
  7.  <meta content="texhtml; charset=utf-8" http-equiv="Content-Type" />
  8.  <marquee><title>Your text</title> </marquee>
  9.  <body oncontextmenu='return false;' onkeydown='return false;' onmousedown='return false;'>
  10.  <style type="text/css">
  11.  h1 {color: #333;font-size: 60px;margin: 1px auto;text-align:center;text-transform:uppercase; font-family:Orbitron;}
  12.  .neon {color: #FFFFFF;text-shadow: 0 0 5px #1ab4e7, 0 0 10px #1ab4e7, 0 0 30px #18a2d0, 0 0 45px #18a2d0, 0 0 60px #18a2d0;}
  13.  
  14.  
  15.  
  16.  h2 {color: #333;font-size: 60px;margin: 1px auto;text-align:center;text-transform:uppercase; font-family:Orbitron;}
  17.  .neon {color: #FFFFFF;text-shadow: 0 0 5px #1ab4e7, 0 0 10px #1ab4e7, 0 0 30px #18a2d0, 0 0 45px #18a2d0, 0 0 60px #18a2d0;}
  18.  
  19.  h3 {color: #333;font-size: 50px;margin: 1px auto;text-align:center;text-transform:uppercase; font-family:Arial;}
  20.  .neon {color: #FFFFFF;text-shadow: 0 0 5px #1ab4e7, 0 0 10px #1ab4e7, 0 0 30px #18a2d0, 0 0 45px #18a2d0, 0 0 60px #18a2d0;}
  21.  
  22.  
  23.  h4 {color: #FF0000;font-size: 20px;margin: 1px auto;text-align:center;text-transform:uppercase; font-family:Orbitron;}
  24.  .neon {color: #FFFFFF;text-shadow: 0 0 5px #1ab4e7, 0 0 10px #1ab4e7, 0 0 30px #18a2d0, 0 0 45px #18a2d0, 0 0 60px #18a2d0;}
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  <script type="text/javascript">
  31.  
  32.  <!--
  33.  
  34.  
  35.  var message="Sorry, right-click has been disabled";
  36.  
  37.  
  38.  
  39.  function clickIE() {if (document.all) {(message);return false;}}
  40.  
  41.  function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {
  42.  
  43.  if (e.which==2||e.which==3) {(message);return false;}}}
  44.  
  45.  if (document.layers)
  46.  
  47.  {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  48.  
  49.  else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  50.  
  51.  document.oncontextmenu=new Function("return false")
  52.  
  53.  
  54.  
  55.  </script>
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  <script type="text/javascript" language="javascript">
  62.  
  63.  
  64.  var rows=1;
  65.  
  66.  var speed=5;
  67.  
  68.  var reveal=200;
  69.  var effectalign=center;
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  function mytricks() {
  78.  
  79.  x=0;
  80.  
  81.  for (y=0; y<columns; y++) {
  82.  
  83.  x=x+(m_copo[y]==100);
  84.  
  85.  ma_row=m_copo[y]%100;
  86.  
  87.  if (ma_row && m_copo[y]<100) {
  88.  
  89.  if (ma_row<rows+1) {
  90.  
  91.  if (w3c) {
  92.  
  93.  matemp=document.getElementById("Mx"+(ma_row-1)+"y"+y);
  94.  
  95.  matemp.firstChild.nodeValue=m_coch[y];
  96.  
  97.  }
  98.  
  99.  else {
  100.  
  101.  matemp=document.all["Mx"+(ma_row-1)+"y"+y];
  102.  
  103.  matemp.innerHTML=m_coch[y];
  104.  
  105.  }
  106.  
  107.  matemp.style.color="#81F2FF";
  108.  
  109.  matemp.style.fontWeight="bold";
  110.  
  111.  }
  112.  
  113.  if (ma_row>1 && ma_row<rows+2) {
  114.  
  115.  matemp=(w3c)?document.getElementById("Mx"+(ma_row-2)+"y"+y):document.all["Mx"+(ma_row-2)+"y"+y];
  116.  
  117.  matemp.style.fontWeight="normal";
  118.  
  119.  matemp.style.color="#00BBFF";
  120.  
  121.  }
  122.  
  123.  if (ma_row>2) {
  124.  
  125.  matemp=(w3c)?document.getElementById("Mx"+(ma_row-3)+"y"+y):document.all["Mx"+(ma_row-3)+"y"+y];
  126.  
  127.  matemp.style.color="#20FFDA";
  128.  
  129.  }
  130.  
  131.  if (ma_row<Math.floor(rows/2)+1) m_copo[y]++;
  132.  
  133.  else if (ma_row==Math.floor(rows/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);
  134.  
  135.  else if (ma_row<rows+2) m_copo[y]++;
  136.  
  137.  else if (m_copo[y]<100) m_copo[y]=0;
  138.  
  139.  }
  140.  
  141.  else if (Math.random()>0.9 && m_copo[y]<100) {
  142.  
  143.  m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));
  144.  
  145.  m_copo[y]++;
  146.  
  147.  }
  148.  
  149.  }
  150.  
  151.  if (x==columns) clearInterval(ma_bod);
  152.  
  153.  }
  154.  
  155.  
  156.  
  157.  function zoomer(ycol) {
  158.  
  159.  var mtmp, mtem, ytmp;
  160.  
  161.  if (m_copo[ycol]==Math.floor(rows/2)+1) {
  162.  
  163.  for (ytmp=0; ytmp<rows; ytmp++) {
  164.  
  165.  if (w3c) {
  166.  
  167.  mtmp=document.getElementById("Mx"+ytmp+"y"+ycol);
  168.  
  169.  mtmp.firstChild.nodeValue=m_coch[ycol];
  170.  
  171.  }
  172.  
  173.  else {
  174.  
  175.  mtmp=document.all["Mx"+ytmp+"y"+ycol];
  176.  
  177.  mtmp.innerHTML=m_coch[ycol];
  178.  
  179.  }
  180.  
  181.  mtmp.style.color="#5BEEFF";
  182.  
  183.  mtmp.style.fontWeight="bold";
  184.  
  185.  }
  186.  
  187.  if (Math.random()<reveal) {
  188.  
  189.  mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));
  190.  
  191.  ma_cho=ma_cho.substring(0, mtmp)+ma_cho.substring(mtmp+1, ma_cho.length);
  192.  
  193.  }
  194.  
  195.  if (Math.random()<reveal-1) ma_cho=ma_cho.substring(0, ma_cho.length-1);
  196.  
  197.  m_copo[ycol]+=199;
  198.  
  199.  setTimeout("zoomer("+ycol+")", speed);
  200.  
  201.  
  202.  
  203.  else if (m_copo[ycol]>200) {
  204.  
  205.  if (w3c) {
  206.  
  207.  mtmp=document.getElementById("Mx"+(m_copo[ycol]-201)+"y"+ycol);
  208.  
  209.  mtem=document.getElementById("Mx"+(200+rows-m_copo[ycol]--)+"y"+ycol);
  210.  
  211.  }
  212.  
  213.  else {
  214.  
  215.  mtmp=document.all["Mx"+(m_copo[ycol]-201)+"y"+ycol];
  216.  
  217.  mtem=document.all["Mx"+(200+rows-m_copo[ycol]--)+"y"+ycol];
  218.  
  219.  }
  220.  
  221.  mtmp.style.fontWeight="normal";
  222.  
  223.  mtem.style.fontWeight="normal";
  224.  
  225.  setTimeout("zoomer("+ycol+")", speed);
  226.  
  227.  }
  228.  
  229.  else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(rows/2);
  230.  
  231.  if (m_copo[ycol]>100 && m_copo[ycol]<200) {
  232.  
  233.  if (w3c) {
  234.  
  235.  mtmp=document.getElementById("Mx"+(m_copo[ycol]-101)+"y"+ycol);
  236.  
  237.  mtmp.firstChild.nodeValue=String.fromCharCode(160);
  238.  
  239.  mtem=document.getElementById("Mx"+(100+rows-m_copo[ycol]--)+"y"+ycol);
  240.  
  241.  mtem.firstChild.nodeValue=String.fromCharCode(160);
  242.  
  243.  }
  244.  
  245.  else {
  246.  
  247.  mtmp=document.all["Mx"+(m_copo[ycol]-101)+"y"+ycol];
  248.  
  249.  mtmp.innerHTML=String.fromCharCode(160);
  250.  
  251.  mtem=document.all["Mx"+(100+rows-m_copo[ycol]--)+"y"+ycol];
  252.  
  253.  mtem.innerHTML=String.fromCharCode(160);
  254.  
  255.  }
  256.  
  257.  setTimeout("zoomer("+ycol+")", speed);
  258.  
  259.  }
  260.  
  261.  
  262.  
  263.  //start
  264.  
  265.  var h1 = document.getElementsByTagName("h1")[0],
  266.  
  267.  text = h1.innerText || h1.textContent,
  268.  
  269.  split = [], i, lit = 0, timer = null;
  270.  
  271.  for(i = 0; i < text.length; ++i) {
  272.  
  273.  split.push("<span>" + text[i] + "</span>");
  274.  
  275.  }
  276.  
  277.  h1.innerHTML = split.join("");
  278.  
  279.  split = h1.childNodes;
  280.  
  281.  
  282.  
  283.  var flicker = function() {
  284.  
  285.  lit += 0.01;
  286.  
  287.  if(lit >= 1) {
  288.  
  289.  clearInterval(timer);
  290.  
  291.  }
  292.  
  293.  for(i = 0; i < split.length; ++i) {
  294.  
  295.  if(Math.random() < lit) {
  296.  
  297.  split[i].className = "neon";
  298.  
  299.  } else {
  300.  
  301.  split[i].className = "";
  302.  
  303.  }
  304.  
  305.  }
  306.  
  307.  }
  308.  
  309.  setInterval(flicker, 200);
  310.  
  311.  
  312.  
  313.  }
  314.  
  315.  
  316.  </script>
  317.  
  318.  
  319.  </head>
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  <br>
  328.  
  329.  
  330.  
  331.  
  332.  </style>
  333.  
  334.  
  335.  <center>
  336.  
  337.  <br>
  338.  <br>
  339.  <br
  340.  <br>
  341.  <h1>Javascript<br> dan <br> HTML</h1>
  342.  <br>
Advertisement
Add Comment
Please, Sign In to add comment