Codeme

Bem Vindo ao CODME
Cadastre-se agora para obter acesso a todos os nossos recursos. Uma vez cadastrado e logado, você será capaz de criar tópicos, postar respostas a tópicos já existentes, a reputação de seus companheiros, começar seu próprio mensageiro privado, atualizações pós status, gerenciar seu perfil e muito mais. Esta mensagem será removido depois de ter cadastrado.
Entrar na Conta Criar uma conta


Você não está conectado. Conecte-se ou registre-se

Ver o tópico anterior Ver o tópico seguinte Ir para baixo  Mensagem [Página 1 de 1]

#1Checkbox Game Empty Checkbox Game Sex Nov 01, 2013 4:30 pm

Admin

Admin

Admin

Marque o máximo possível em menos de 20 segundos. Não é fácil. Para começar basta marcar. O marcador contará quantos quadros você marcou. Quando o tempo acabar, não conseguirá marcar mais.

Código:

<html>

<head>
<title>www.rg9.org - C&oacute;digos prontos gr&aacute;tis.</title>
</head>

<body TEXT="#000000" BGCOLOR="#ffffff" LINK="#000000" VLINK="#000000" ALINK="#000000">
<div align="center"><center>

<table BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="600">
  <tr>
    <td><p align="center"><!-- In&iacute;cio do T&iacute;tulo --><font SIZE="+0" FACE="ARIAL"><b>Checkbox Game&nbsp;</b></font><!-- Fim  do  T&iacute;tulo --> <!-- In&iacute;cio do Texto Normal --><font SIZE="-1" FACE="ARIAL">Marque o máximo possível em menos de 20 segundos. Não é fácil.
    Para começar basta marcar. O marcador contará quantos quadros você marcou. Quando o
    tempo acabar, não conseguirá marcar mais.&nbsp;<script LANGUAGE="JavaScript">

<!--

// Copyright (c) 1996 Tomer Shiran. All rights reserved.

// Permission given to use this script provided that the copyright

// notice remains as is. Additional scripts and information are

// available at http://www.geocities.com/SiliconValley/9000/

// assign initial values to global variables

var total = 0

var play = false

// react to a click in a checkbox (element == clicked checkbox object)

function display(element) {

   // assign instance of Date object representing current time

      var now = new Date()

   // if the game has not started yet

      if (!play) {

   // game starts now

      play = true

   // milliseconds since 1970 for time at beginning

      startTime = now.getTime()

   }

   // if more than 20 seconds have passed since startTime was last set

      if (now.getTime() - startTime > 20000) {

         // reject modification (make "read-only")

            element.checked = !element.checked

         // terminate function

         return

      }

   // if the clicked checkbox is now checked

      if (element.checked)

         // increment total

            total++

      else

         // decrement total

            total--

         // display total in text object

            element.form.num.value = total

}



function restart(form) {

   // set global variables back to initial values

      total = 0

      play = false

   // uncheck all 100 checkboxes

      for (var i = 1; i <= 100; ++i) {

         // uncheck current checkbox

            form.elements[i].checked = false

      }

}

// --><!-- http://www.rg9.org - C&oacute;digos prontos gr&aacute;tis. -->
<!-- www.rg10.net - Hospedagem de sites por 1,99 -->

</script> </font>&nbsp;<script LANGUAGE="JavaScript">

<!--// immediate script (executed before the other script because it is deferred)

   document.write("<FORM><CENTER>")

   document.write('<INPUT TYPE="text" VALUE="0" NAME="num" SIZE=10 onFocus="this.blur()"><BR>')

   document.write("<HR SIZE=1 WIDTH=40%>")

// use loop to create a 10 x 10 square of checkboxes

   for (var i = 0; i < 10; ++i) {

      for (var j = 0; j < 10; ++j) {

         // write checkbox with "display(this)" as event handler script

            document.write('<INPUT TYPE="checkbox" onClick="display(this)">')

      }

      document.write("<BR>")

   }

   document.write("<HR SIZE=1 WIDTH=40%>")

   // create button to call restart function to restart game

      document.write('<INPUT TYPE="button" VALUE="Recome&ccedil;ar" onClick="restart(this.form)">')

      document.write("</CENTER></FORM>")

// -->

</script> <!-- Fim  do  Texto  Normal --> <img SRC="blkpoint.gif" BORDER="0" HEIGHT="2" WIDTH="600">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img SRC="blkpoint.gif" BORDER="0" HEIGHT="2" WIDTH="600"> &nbsp;</td>
  </tr>
</table>
</center></div>

<p>&nbsp; </p>
</body>
</html>

https://codme.umforum.net

Ver o tópico anterior Ver o tópico seguinte Ir para o topo  Mensagem [Página 1 de 1]


Permissões neste sub-fórum
Não podes responder a tópicos

 

Checkbox Game 97v7
Checkbox Game 97v7