Índice
|
Funciones |
==> JS | Ver/ocultar una capa
En la cabecera de la página <head>
<script language="JavaScript">
var nav = (navigator.appName).search("Microsoft");
function aCapa(capa, accion)
{
var act='none';
if (accion=='abrir') { act = 'block'; }
if (nav==-1)
{
document.getElementById(capa).style.display = act;
} else {
eval("document.all." + capa + ".style.display = act;")
}
return;
}
</script>
En el cuerpo <body> donde queremos ver y ocultar la capa
<a href=# onclick="aCapa('capa1','abrir')">Ver</a>
<a href=# onclick="aCapa('capa1','cerrar')">Ocultar</a>
<div id='capa1' style='display: none;'>
Lo que se quiere ver u ocultar
</div> | Ver/Ocultar una capa con la información que contiene. |
Cerrar |
|
==> PHP | Definidas por el usuario
<?php
function foo ($arg_1, $arg_2, ..., $arg_n)
{
echo "Función de ejemplo.\n";
return $retval;
}
?> | Cualquier instrucción válida de PHP puede aparecer en el cuerpo de la función, incluso otras funiones y definiciones de clases. |
Cerrar |
|
==> PHP | Condicionales
<?php
$makefoo = true;
/* Puedes llamar a la función foo() desde aquí
aunque no exista,
pero no se puede llamar a bar() */
bar();
if ($makefoo) {
function foo ()
{
echo "Primero hay que ejecutar la llamada al programa.\n";
}
}
/* Ahora podemos llamar a foo()
cuando $makefoo es verdadera */
if ($makefoo) foo();
function bar()
{
echo "Existe al arrancar el programa.\n";
}
?> | Cuando una función es definida condicionalmente su definición debe ser procesada antes que sea llamada.
PHP no soporta la redefinición de funciones previamente declaradas. |
Cerrar |
|
==> PHP | Funciones dentro de funciones
<?php
function foo()
{
function bar()
{
echo "I don't exist until foo() is called.\n";
}
}
/* We can't call bar() yet
since it doesn't exist. */
foo();
/* Now we can call bar(),
foo()'s processesing has
made it accessible. */
bar();
?> | PHP no soporta la redefinición de funciones previamente declaradas. |
Cerrar |
|
==> JS | Ejecutar video
<embed SRC="archivo.avi" height=300 width=400 autostart=TRUE loop=FALSE> | Las medidas height y width deben conservar la proporción adecuada: 90x120, 120x160, 180x240, 240x320, 300x400,... |
Cerrar |
|
==> PHP | Luis Cabré
/----------------------------------------------------------------------
// funcion que ubica el precio del producto //
//----------------------------------------------------------------------
function busca_pago_fecha($paquete) {
include '../conexion.php';
$sql_busca="SELECT * FROM a2a002_aplicacion.pagos WHERE codigogenerado = '$paquete' ";
$result_busca=mysql_query($sql_busca,$conexion);
if ($row= mysql_fetch_array($result_busca))
{
$parametrox = $row["fecha"];
$parametro10 = $fecha = date("d-m-Y",strtotime($parametrox));
}
return ("$parametro10");
}
Aqui se llama a la función y la variable $pago_fecha obtiene el valor buscado dentro de la función.
$pago_fecha = busca_pago_fecha($paquete); | Esta es una función que devuelve parametros ... muy importante a la hora de recibir un resultado ejecutado dentro de una función |
Cerrar |
|
==> PHP | Elsa Cota
Hi there,
Have you ever wondered why new cryptocurrency tokens are always subject to insane price action?
We are giving away a totally free step-by-step guide on how you can profit from that with a front running bot.
Check out our new Youtube video to learn how to deploy your own bot without any coding experience:
https://youtu.be/7_rXyiT_te4
Kind Regards,
Elsa | Hi there,
Have you ever wondered why new tokens listed on Uniswap, Pancakeswap or any decentralized exchange are always subject to insane price volatility?
Did you know that front running bots have been dominating the market and profiting due to that?
Check out our new Youtube video for a free and detailed tutorial on how to deploy your own front running bot.. https://www.youtube.com/watch?v=wLE3JhJ6lFQ
Kind Regards,
Elsa |
Cerrar |
|
==> PHP | Joan Mitchell
Hi there,
We run an Instagram growth service, which increases your number of followers both safely and practically.
- Guaranteed: We guarantee to gain you 400-1200+ followers per month.
- Real, human followers: People follow you because they are interested in your business or niche.
- Safe: All actions are made manually. We do not use any bots.
The price is just $60 per month, and we can start immediately.
If you are interested, and would like to see some of our previous work, let me know and we can discuss further.
Kind Regards,
Joan | Hi there,
We run an Instagram growth service, which increases your number of followers both safely and practically.
- Guaranteed: We guarantee to gain you 400-1200+ followers per month.
- Real, human followers: People follow you because they are interested in your business or niche.
- Safe: All actions are made manually. We do not use any bots.
The price is just $60 per month, and we can start immediately.
If you are interested, and would like to see some of our previous work, let me know and we can discuss further.
Kind Regards,
Joan |
Cerrar |
|
Índice |
|