
eddddd
Dseda
Programador
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
- Precio
- $1 USD
- Formas de pago
- Saldo Forobeta
- Bitcoin
- Binance
- Airtm
- Uphold
- Payoneer
- Western Union
- Skrill
- Oxxo
- Transferencia bancaria
- Paypal
- Otro
- Método de entrega
- Sin intermediario
- Plazo para pagar
- Máximo 1 semana
- Plazo de entrega
- Máximo 1 mes
- Comisiones
- Se dividen entre ambos
Cerrado
En este ejemplo, cuando se hace clic en el div con el ID "myDiv", se envía una solicitud POST al archivo "procesar.php". El archivo PHP procesa los datos y devuelve la respuesta "Mensaje impreso con PHP". El código JavaScript maneja la respuesta y la muestra en el div con el ID "resultado".
HTML:
<div id="myDiv">Haz clic aquí</div>
<div id="result"></div>
JavaScript:
document.getElementById("myDiv").addEventListener("click", function() {
var xhr = new XMLHttpRequest();
xhr.open("POST", "procesar.php");
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function() {
if (this.readyState === XMLHttpRequest.DONE && this.status === 200) {
document.getElementById("result").innerHTML = this.responseText;
}
};
xhr.send();
});
PHP:
<?php
echo "Mensaje impreso con PHP";
?>
JavaScript:
// Seleccionamos el elemento div con el ID "div1"
const div1 = document.querySelector("#div1");
// Creamos una variable para almacenar el tiempo de última interacción del usuario
let lastInteractionTime = new Date().getTime();
// Creamos una variable para almacenar el intervalo de tiempo de verificación
let intervalId;
// Creamos una función que se ejecutará cuando el usuario deje de desplazarse
const handleScrollEnd = () => {
// Si el div1 es visible, lo ocultamos después de 1 segundo
if (div1.style.display !== "none") {
setTimeout(() => {
div1.style.display = "none";
}, 1000);
}
}
// Agregamos un listener al evento "scroll" del documento
document.addEventListener("scroll", () => {
// Actualizamos el tiempo de la última interacción del usuario
lastInteractionTime = new Date().getTime();
// Si aún no se ha iniciado el intervalo de verificación, lo iniciamos
if (!intervalId) {
intervalId = setInterval(() => {
// Obtenemos la diferencia de tiempo entre la última interacción y el momento actual
const currentTime = new Date().getTime();
const timeSinceLastInteraction = currentTime - lastInteractionTime;
// Si han pasado más de 1 segundo desde la última interacción, se considera que el usuario ha dejado de desplazarse
if (timeSinceLastInteraction > 1000) {
clearInterval(intervalId);
intervalId = null;
handleScrollEnd();
}
}, 1000);
}
});
Insertar CODE, HTML o PHP:
Puedes hacer la pronunciación escrita para el idioma español de toda la letra de esta cancion (solo la pronunciación):
Oooh
Just can't believe this man
(Metro Boomin want some more nigga)
Somebody said they saw you
The person you were kissing wasn't me
And I would never ask you, I just kept it to myself
I don't wanna know, if you're playing me
Keep it on the low
Cause my heart can't take it anymore
And if you creeping, please don't let it show
Oh baby, I don't wanna know
I think about it when I hold you
When looking in your eyes, I can't believe
And I don't need to know the truth
But baby keep it to yourself
I don't wanna know, if you're playing me
Keep it on the low
Cause my heart can't take it anymore
And if you creeping, please don't let it show
Oh baby, I don't wanna know
Did he touch you better than me? (touch you better than me?)
Did he watch you fall asleep (watch you fall asleep?)
Did you show him all those things that you used to do to me?
If you're better off that way (better off that way)
Baby all that I can say (all that I can say)
If you're gonna do your thing, then don't come back to me
Ooh
Woah, woah, woah
21
Had me crushing, I was cuffing like the precinct
How you go from housewife to a sneaky link
Got you ridin round in all types of benz's and rovers
Girl you used to ride in a rinky dink
I'm the one put you in Eliante (on God)
Fashion Nova model, I put you on the runway (on God)
You was rocking coach bags, got you chanaynay
Side bitch in frisco, I call her my bae bae (21)
I got a girl but I still feel alone
If you playing me that mean my home aint home
Having nightmares of going through your phone (21)
Can't even record you got me out my zone
I don't wanna know, if you're playing me
Keep it on the low
Cause my heart can't take it anymore
And if you creeping, please don't let it show
Oh baby
I don't wanna know, if you're playing me
Keep it on the low
Cause my heart can't take it anymore
And if you creeping, please don't let it show
Oh baby I don't wanna know
If you creeping just don't let me find out (on God)
Get a hotel never bring him to the house (on God)
If you're better off that way (better off that way)
Baby all that I can say (all that I can say)
If you're gonna do your thing, then don't come back to me
Insertar CODE, HTML o PHP:
Puedes hacerla pronunciación escrita para el idioma español de toda la letra de la canción "Unholy" de sam smith?, Aquí un ejemplo con la canción "wasted on you" de Morgan Wallen: I don't always wake up in the mornin'
(Ai don't olweiss ueik ap in de mornin')
Pour myself a strong one
(Por maiself a estrong uan)
Instead of countin' blessings, I'm countin' problems
(Insteád of cauntin' blessings, aim cauntin' problams)
And instead of bein' present, I'm thinkin' 'bout the past, yeah
(And insteád of bíin' prézent, aim finkin' 'bout de past, ier)
PHP:
<?php
// API key de TMDB
$api_key = 'tu_api_key_aqui';
// Endpoint de descubrimiento de películas
$endpoint = 'https://api.themoviedb.org/3/discover/movie';
// Lista para almacenar los resultados
$results = [];
// Obtener el número total de páginas de la lista de películas
$response = file_get_contents($endpoint . '?api_key=' . $api_key);
$total_pages = json_decode($response, true)['total_pages'];
// Iterar a través de cada página de resultados
for ($page = 1; $page <= $total_pages; $page++) {
// Obtener los resultados de la página actual y ordenarlos por fecha de lanzamiento
$response = file_get_contents($endpoint . '?api_key=' . $api_key . '&page=' . $page . '&sort_by=release_date.asc');
$page_results = json_decode($response, true)['results'];
// Agregar los resultados de la página actual a la lista
$results = array_merge($results, $page_results);
}
// Ordenar la lista completa de resultados por fecha de lanzamiento
usort($results, function($a, $b) {
return strtotime($a['release_date']) - strtotime($b['release_date']);
});
// Imprimir los títulos de las películas en orden cronológico
foreach ($results as $result) {
echo $result['title'] . ' ' . $result['release_date'] . "\n";
}
Última edición: