JavaScript banner
JavaScript
/* ARRAY DE IMAGENES */
ads = new Array(9);
ads[0] = "https://jarroba.com/wp-content/uploads/2012/03/Modelado.png";
ads[1] = "https://jarroba.com/wp-content/uploads/2012/03/LenguajesProgramacion.png";
ads[2] = "https://jarroba.com/wp-content/uploads/2012/03/AplicacionesMoviles.png";
ads[3] = "https://jarroba.com/wp-content/uploads/2012/03/TecnologiaWeb.png";
ads[4] = "https://jarroba.com/wp-content/uploads/2012/03/Servidores.png";
ads[5] = "https://jarroba.com/wp-content/uploads/2012/03/SistemasOperativos.png";
ads[6] = "https://jarroba.com/wp-content/uploads/2012/03/BaseDeDatos.png";
ads[7] = "https://jarroba.com/wp-content/uploads/2012/03/Hadware.png";
ads[8] = "https://jarroba.com/wp-content/uploads/2012/03/InteligenciaArtificial.png";
/* ARRAY DE URLs */
arrayURLs = new Array(9);
arrayURLs[0] = "https://jarroba.com/indice-ingenieria-del-software/"
arrayURLs[1] = "https://jarroba.com/lenguajes-de-programacion/"
arrayURLs[2] = "https://jarroba.com/aplicaciones-moviles/"
arrayURLs[3] = "https://jarroba.com/tecnologias-web/"
arrayURLs[4] = "https://jarroba.com/redes/"
arrayURLs[5] = "https://jarroba.com/sistemas-operativos/"
arrayURLs[6] = "https://jarroba.com/bases-de-datos/"
arrayURLs[7] = "https://jarroba.com/diseno-hardware/"
arrayURLs[8] = "https://jarroba.com/inteligencia-artificial/"
//variable para llevar la cuenta de las imagenes
var longuitudArray = ads.length;
var contador = 0
// Cojemos un numero aleatorio
contador = Math.floor((Math.random() * longuitudArray))
// Cambia la imagen cada segundo en este ejemplo
var tiempo = 1// En segundos
var timer = tiempo * 1000;
function banner() {
contador++;
contador = contador % longuitudArray
document.banner.src = ads[contador];
setTimeout("banner()", timer);
}
function ponerURL() {
contador2 = contador;
url = window.open(arrayURLs[contador2]);
return false;
}
Also in JavaScript:
- Title
- how to use reduce in javascript
- Category
- JavaScript
- Title
- how to see if a web site is useing react
- Category
- JavaScript
- Title
- convert shp to geojson python
- Category
- JavaScript
- Title
- how to print console in javascript
- Category
- JavaScript
- Title
- detect browser javascript
- Category
- JavaScript
- Title
- angular lifecycle hooks
- Category
- JavaScript
- Title
- how to output to console java
- Category
- JavaScript
- Title
- comment obtenir l'élément parent javascript
- Category
- JavaScript
- Title
- how to make javascript function consise
- Category
- JavaScript
- Title
- how to limit input type max length
- Category
- JavaScript
- Title
- get value javascript
- Category
- JavaScript
- Title
- Javascript get random item from array
- Category
- JavaScript
- Title
- how to code print in javascript
- Category
- JavaScript
- Title
- event target javascript
- Category
- JavaScript
- Title
- git empty commit
- Category
- JavaScript
- Title
- check multiple ifield if it's blank in jquery
- Category
- JavaScript
- Title
- choose random from array javascript
- Category
- JavaScript
- Title
- access angular app outside localhost
- Category
- JavaScript
- Title
- get input value in angular 7
- Category
- JavaScript
- Title
- express validator always return error
- Category
- JavaScript
- Title
- how to update angular version
- Category
- JavaScript
- Title
- how to get the div value in jquery
- Category
- JavaScript
- Title
- get the id of a div in jquery
- Category
- JavaScript
- Title
- document queryselector click event
- Category
- JavaScript
- Title
- clear scene\
- Category
- JavaScript
- Title
- how to make dynamic columns in jquery
- Category
- JavaScript
- Title
- javascript arrow function
- Category
- JavaScript
- Title
- contact form7 404 wp-json feedback
- Category
- JavaScript
- Title
- Angularjs datetime
- Category
- JavaScript
- Title
- get value from textbox in vanilla javascript
- Category
- JavaScript
- Title
- javascript access property values list of objects
- Category
- JavaScript
- Title
- Data Change with Mutation
- Category
- JavaScript
- Title
- include javascript jquery file in html
- Category
- JavaScript
- Title
- how to import jquery in js file
- Category
- JavaScript
- Title
- console.log in jsx
- Category
- JavaScript
- Title
- append img to svg d3 js
- Category
- JavaScript
- Title
- how to get variable in local storage in javascript
- Category
- JavaScript
- Title
- coin change problem all combinations javascript
- Category
- JavaScript
- Title
- execute js with innerhtml
- Category
- JavaScript
- Title
- fill array with values javascript
- Category
- JavaScript
- Title
- display none in jquery
- Category
- JavaScript
- Title
- foreach object javascript
- Category
- JavaScript
- Title
- add month date now javascript
- Category
- JavaScript
- Title
- convert string with dot or comma as decimal separator to number in javascript
- Category
- JavaScript
- Title
- how to make a animation in javascript stack overflow
- Category
- JavaScript
- Title
- axios delete request payload
- Category
- JavaScript
- Title
- how to fill false into array javascript
- Category
- JavaScript
- Title
- arrays javascript
- Category
- JavaScript
- Title
- javascript Check if an element is a descendant of another
- Category
- JavaScript
- Title
- http interceptor angular
- Category
- JavaScript
- Title
- how to use style in react js
- Category
- JavaScript
- Title
- butonc click jquery
- Category
- JavaScript
- Title
- creating js objects
- Category
- JavaScript
- Title
- clear input field javascript
- Category
- JavaScript
- Title
- angular reactive forms
- Category
- JavaScript
- Title
- getFullYear within moment in angular
- Category
- JavaScript
- Title
- date object javascript
- Category
- JavaScript
- Title
- Appending the option element using jquery each function
- Category
- JavaScript
- Title
- javascript array column
- Category
- JavaScript
- Title
- after click text editior open in javascript
- Category
- JavaScript
- Title
- how to add object to array javascript
- Category
- JavaScript
- Title
- bind in javascript
- Category
- JavaScript
- Title
- angular submit form programmatically
- Category
- JavaScript
- Title
- Javascript compare two dates
- Category
- JavaScript
- Title
- convert dictionary to json serialization swift 4
- Category
- JavaScript
- Title
- extend react.component
- Category
- JavaScript
- Title
- how to make a screen recording software with js
- Category
- JavaScript
- Title
- change the focus to next in angular forms
- Category
- JavaScript
- Title
- how to make a page relode on a keypress in js
- Category
- JavaScript
- Title
- how to parse json
- Category
- JavaScript
- Title
- get value of checked radio button jquery
- Category
- JavaScript
- Title
- isogram
- Category
- JavaScript
- Title
- find the matching property
- Category
- JavaScript
- Title
- indexof javascript
- Category
- JavaScript
- Title
- How to check if a member has a role discord.js
- Category
- JavaScript
- Title
- dom get all tags
- Category
- JavaScript
- Title
- forever loop in js
- Category
- JavaScript
- Title
- color js
- Category
- JavaScript
- Title
- bot discord comment récupérer la pdp de quelqu'un
- Category
- JavaScript
- Title
- how to run function after animation complete jquery
- Category
- JavaScript
- Title
- how to return an object in javascript
- Category
- JavaScript
- Title
- enter event in jquery
- Category
- JavaScript
- Title
- how To clear all the input element inside div using jquery
- Category
- JavaScript
- Title
- checked unchecked through js
- Category
- JavaScript
- Title
- javascript call php function with parameters
- Category
- JavaScript
- Title
- add select option jquery
- Category
- JavaScript
- Title
- how to push values in array
- Category
- JavaScript
- Title
- chrome add bookmark that prefixes text
- Category
- JavaScript
- Title
- installing vue router & implementation
- Category
- JavaScript
- Title
- how to run different node app on server different domains
- Category
- JavaScript
- Title
- how to appendChild in the begin of the div javascript
- Category
- JavaScript
- Title
- angularjs socket.io
- Category
- JavaScript
- Title
- deparam javascript
- Category
- JavaScript
- Title
- best way to filter table in angular
- Category
- JavaScript
- Title
- fetch a json from url python
- Category
- JavaScript
- Title
- chart.js line chart
- Category
- JavaScript
- Title
- interceptor in angular 8
- Category
- JavaScript
- Title
- Adding and Deleting html Elements
- Category
- JavaScript
- Title
- discord.js multiple embeds
- Category
- JavaScript
- Title
- adding bootstrap to angular
- Category
- JavaScript