- HOME
Welcome

www.Prometheuz.es.tl

Códigos HTML 3

 

            CODIGOS HTML PARA TU WEB 3


                                     
                                   SALUDO SEGUN EL HORARIO:



<Font size=2 face=arial><b>
<Script Language="JavaScript">
<!--
today = new Date()
if(today.getMinutes() < 10){
pad = "0"}
else
pad = "";
document.write ;if((today.getHours() >=6) && (today.getHours() <=9)){
document.write("¡Buen día!")
}
if((today.getHours() >=10) && (today.getHours() <=11)){
document.write("¡Buen día!")
}
if((today.getHours() >=12) && (today.getHours() <=19)){
document.write("¡Buenas tardes!")
}
if((today.getHours() >=20) && (today.getHours() <=23)){
document.write("¡Buenas noches!")
}
if((today.getHours() >=0) && (today.getHours() <=3)){
document.write("¡Buenas noches!")
}
if((today.getHours() >=4) && (today.getHours() <=5)){
document.write("¡Buenas noches!")
}
// -->
</script>
</b></font>

                   

                       HORAS RESTANTES PARA TERMINAR EL DIA:



<body>
<p>Tiempo restante para finalizar el día</p>
<form name="Reloj">
<input type="text" size="7" name="tiempo" value="mm:hh:ss" title="Tiempo restante para finalizar el día">
<script language="JavaScript">
<!--
var tiempoAtras;
 
 
updateReloj();
function updateReloj() {
var tiempo = new Date();
var hora = 23-tiempo.getHours();
var minutos = 59-tiempo.getMinutes();
var segundos = 59-tiempo.getSeconds();
 
 
tiempoAtras= (hora < 10) ? hora :hora;
tiempoAtras+= ((minutos < 10) ? ":0" : ":") + minutos;
tiempoAtras+= ((segundos < 10) ? ":0" : ":") + segundos;
 
 
document.Reloj.tiempo.value = tiempoAtras;
 
 
setTimeout("updateReloj()",1000);
}
//-->
</script>
</form>
</body>
 

               

                        QUITAR MENU Y CENTRAR PUBLICIDAD CSS:



table {margin-left:auto;margin-right:auto;}
 
lli.nav_element{display: none;}
li.nav_element a{display: none;}
h1#title{display: none;}
h2#title span {display: none;}
div.header{display: none;}
li.nav_element{list-style-type: none;}
li.nav_element{display: none;}
 

                               

                                    CALCULADORA PARA LA WEB:



<form name="Keypad">
<b>
<div align="center">
<table border="2" cellspacing="5" cellpadding="1" width="50" height="60">
<tbody>
<tr>
<td colspan="3" align="center"><input width="100%" size="24" style="text-align: right" name="ReadOut" value="0" type="text" /></td>
<td> </td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Clear()%2522%22" name="btnClear" value=" C " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522ClearEntry()%2522%22" name="btnClearEntry" value=" CE " /></td>
</tr>
<tr>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(7)%2522%22" name="btnSeven" value=" 7 " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(8)%2522%22" name="btnEight" value=" 8 " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(9)%2522%22" name="btnNine" value=" 9 " /></td>
<td align="center"> </td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Neg()%2522%22" name="btnNeg" value=" +/- " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Percent()%2522%22" name="btnPercent" value=" % " /></td>
</tr>
<tr>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(4)%2522%22" name="btnFour" value=" 4 " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(5)%2522%22" name="btnFive" value=" 5 " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(6)%2522%22" name="btnSix" value=" 6 " /></td>
<td align="center"> </td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Operation('%252B')%2522%22" name="btnPlus" value=" + " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Operation('-')%2522%22" name="btnMinus" value=" - " /></td>
</tr>
<tr>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(1)%2522%22" name="btnOne" value=" 1 " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(2)%2522%22" name="btnTwo" value=" 2 " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(3)%2522%22" name="btnThree" value=" 3 " /></td>
<td align="center"> </td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Operation('*')%2522%22" name="btnMultiply" value=" * " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Operation('%252F')%2522%22" name="btnDivide" value=" / " /></td>
</tr>
<tr>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522NumPressed(0)%2522%22" name="btnZero" value=" 0 " /></td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Decimal()%2522%22" name="btnDecimal" value=" . " /></td>
<td colspan="3" align="center"> </td>
<td align="center"><input type="button" onclick_fckprotectedatt_fckprotectedatt="%20onclick_fckprotectedatt%3D%22%2520onclick%253D%2522Operation('%253D')%2522%22" name="btnEquals" value=" = " /></td>
</tr>
</tbody>
</table>
</div>
</b>
</form>
<script language="JavaScript"> <!-- modifica este script para tu uso --> <!-- puedes cambiar tamaño y color de botones y fondo --> <!-- Begin var FKeyPad = document.Keypad; var Accum = 0; var FlagNewNum = false; var PendingOp = ""; function NumPressed (Num) { if (FlagNewNum) { FKeyPad.ReadOut.value = Num; FlagNewNum = false; } else { if (FKeyPad.ReadOut.value == "0") FKeyPad.ReadOut.value = Num; else FKeyPad.ReadOut.value += Num; } } function Operation (Op) { var Readout = FKeyPad.ReadOut.value; if (FlagNewNum && PendingOp != "="); else { FlagNewNum = true; if ( '+' == PendingOp ) Accum += parseFloat(Readout); else if ( '-' == PendingOp ) Accum -= parseFloat(Readout); else if ( '/' == PendingOp ) Accum /= parseFloat(Readout); else if ( '*' == PendingOp ) Accum *= parseFloat(Readout); else Accum = parseFloat(Readout); FKeyPad.ReadOut.value = Accum; PendingOp = Op; } } function Decimal () { var curReadOut = FKeyPad.ReadOut.value; if (FlagNewNum) { curReadOut = "0."; FlagNewNum = false; } else { if (curReadOut.indexOf(".") == -1) curReadOut += "."; } FKeyPad.ReadOut.value = curReadOut; } function ClearEntry () { FKeyPad.ReadOut.value = "0"; FlagNewNum = true; } function Clear () { Accum = 0; PendingOp = ""; ClearEntry(); } function Neg () { FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1; } function Percent () { FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accum); } // End --> </script></body></html>

                        

                           TRADUCTOR DEL INGLES AL ESPAÑOL :



<script src="http://www.gmodules.com/ig/ifr?url=http:/m/tools/ggGadgets/WRgadget_es.xml&up_defaultDict=enes&synd=open&w=320&h=115&title=WordReference.com&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script><a href="" _fcksavedurl=""> </a><a href="http://www.ocio-full.blogspot.com" _fcksavedurl="http://www.ocio-full.blogspot.com">Ocio Full</a>

                               

                                    PONER IMAGEN EN LA WEB:



<p><a href="www.gaf.cl"><img 
src="URL DE LA IMAGEN" border="0" width="80" 
height="60"></a></p> 

                       


Hoy habia 12 visitantes (17 clics a subpáginas) ¡Aqui en esta página!
 

Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis