Portal    Foro    Buscar    FAQ    Registrarse    Conectarse


JanuWeb.Com  Informa

JanuWeb es una Comunidad abierta a todos los internautas.
Pero algunos de sus contenidos (Adjuntos, Descargas, Grupos...) sólo son accesibles a usuarios registrados.

Regístrate y disfruta al completo de la web.



Publicar Nuevo Tema  El tema está bloqueado: no pueden editarse ni agregar mensajes. Página 1 de 1
 
Precarga De Imágenes
Autor Mensaje
Responder Citando
Mensaje Precarga De Imágenes 
 
Muestra una barra de cargando... mientras que el ordenador carga las imágenes de nuestra web que nosotros queramos que se muestren.


<!-- Dentro del tag HEAD -->

<script language="JavaScript1.2">
<!-- begin hiding

//
 [gcarsan2005hotmail.com].
//

startingColor = new Array() // <-- Do not modify!
endingColor = new Array() // <-- Do not modify!

// Introduce aqui las imagenes que vas a cargar previamente:
var tusimagenes = new Array("../../imagenes/topwebmaster.gif","../../Publicidad/imagenes/casino1.gif","../../Publicidad/ImagenesCXN/banner-consupermiso.gif") // Fill this array with the images you wish to preload

var locationAfterPreload = "cargarimagenes.htm" // Aqui debes insertar la direccion de la página de destino
var preloadbarWidth = 250 // Longitud que quieres que muestre la barra de carga
var preloadbarHeight = 15 // Anchura que quieres que muestre la barra
var backgroundOfGradient = "#000000" // Color que quieres que muestre la barra


startingColor[0] = "c"
startingColor[1] = "f"
startingColor[2] = "f"


endingColor[0] = "c"
endingColor[1] = "0"
endingColor[2] = "0"


var gap = 5


if (!document.all) location.replace(locationAfterPreload)
var a = 10, b = 11, c = 12, d = 13, e = 14, f=15, i, j, ones = new Array(), sixteens = new Array(), diff = new Array();
var convert = new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"), imgLen = tusimagenes.length;
var loaded = new Array(), preImages = new Array(), currCount = 0, pending = 0, h = 0, hilite = new Array(), cover = new Array();
var num = Math.floor(preloadbarWidth/gap);
for (i = 0; i < 3; i++) {
    startingColor[i] = startingColor[i].toLowerCase();
    endingColor[i] = endingColor[i].toLowerCase();
    startingColor[i] = eval(startingColor[i]);
    endingColor[i] = eval(endingColor[i]);
    diff[i] = (endingColor[i]-startingColor[i])/num;
    ones[i] = Math.floor(diff[i]);
    sixteens[i] = Math.round((diff[i] - ones[i])*15);
}
endingColor[0] = 0;
endingColor[1] = 0;
endingColor[2] = 0;
i = 0, j = 0;
while (i <= num) {
    hilite[i] = "#";
    while (j < 3) {
        hilite[i] += convert[startingColor[j]];
        hilite[i] += convert[endingColor[j]];
        startingColor[j] += ones[j];
        endingColor[j] += sixteens[j];
        if (endingColor[j] > 15) {
            endingColor[j] -= 15;
            startingColor[j]++;
        }
        j++;
    }
    j = 0;
    i++;
}
function loadImages() {
    for (i = 0; i < imgLen; i++) {
        preImages[i] = new Image();
        preImages[i].src = tusimagenes[i];
        loaded[i] = 0;
        cover[i] = Math.floor(num/imgLen)*(i+1)
    }
    cover[cover.length-1] += num%imgLen
    checkLoad();
}
function checkLoad() {
    if (pending) { changeto(); return }
    if (currCount == imgLen) { location.replace(locationAfterPreload); return }
    for (i = 0; i < imgLen; i++) {
        if (!loaded[i] && preImages[i].complete) {
            loaded[i] = 1; pending++; currCount++;
            checkLoad();
            return;
        }
    }
    setTimeout("checkLoad()",10);
}
function changeto() {
    if (h+1 > cover[currCount-1]) {
        var percent = Math.round(100/imgLen)*currCount;
        if (percent > 100) while (percent != 100) percent--;
        if (currCount == imgLen && percent < 100) percent = 100;
        defaultStatus = "Loaded " + currCount + " out of " + imgLen + " images [" + percent + "%].";
        pending--;
        checkLoad();
        return;
    }
    eval("document.all.cell" + (h+1) + ".style.backgroundColor = hilite[h]");;
    h++;
    setTimeout("changeto()",1);
}
defaultStatus = "Loaded 0 out of " + imgLen + " images [0%]."
// end hiding -->
</script>

<!-- Dentro del tag BODY -->

<center>
<font face="Verdana, Arial, Helvetica" size="2"><center>Cargando imagenes de la página... Por Favor, espere..</center>
<script language="JavaScript1.2">
<!-- beging hiding
document.write('<table border="0" cellpadding="0" cellspacing="0" width="' + preloadbarWidth + '"><tr height="' + preloadbarHeight + '" bgcolor="' + backgroundOfGradient + '">');
for (i = 0; i < num; i++) {
    document.write('<td width="' + gap + '" id="cell' + (i+1) + '"></td>');
}
document.write('</tr></table>');


// Aqui debes insertar la direccion de la página de destino
document.write('<p><small><a href="javascript:location.replace(locationAfterPreload)">Saltar carga de imágenes previa</a> &nbsp;| &nbsp;<a href="cargarimagenes.htm">Script Credits</a></small></p></font>')
loadImages();
// end hiding -->
</script>
</center>
</font>





Desconectado Ver perfil del usuario Enviar Mensaje Privado Ver la Galería Personal del usuario
Descargar Mensaje Volver arriba Página Inferior
Gracias por el tema tan útil, gcarsan2005:
zankyw (16 Septiembre) 
Mostrar mensajes anteriores:   
Ocultar¿Este tema fue útil?
Compartir este tema
blinkslist.com blogmarks.net co.mments.com del.icio.us digg.com newsvine.com facebook.com fark.com feedmelinks.com furl.net google.com linkagogo.com ma.gnolia.com meneame.net netscape.com reddit.com shadows.com simpy.com slashdot.org smarking.com spurl.net stumbleupon.com technorati.com favorites.live.com yahoo.com DIGG ITA Fai Informazione KiPapa Ok Notizie Segnalo
OcultarTemas Parecidos
Tema Autor Foro Respuestas Último Mensaje
No hay nuevos mensajes Que Buenas Imagenes!!! Manolo Humor 1 05 Aug 2007 20:47 Ver último mensaje
xoom
No hay nuevos mensajes Imagenes No Se Ven Y Estadisticas De La Web keteflips Soporte Icy Phoenix 7 16 Sep 2008 12:33 Ver último mensaje
BenJa - KuMo
No hay nuevos mensajes Tamaño De Imagenes Iraac Soporte Icy Phoenix 1 02 Apr 2008 23:09 Ver último mensaje
el pollo
No hay nuevos mensajes Las Imágenes No Se Visualizan xerbar Soporte phpBB XS 2 9 02 Oct 2006 21:07 Ver último mensaje
xerbar

Publicar Nuevo Tema  El tema está bloqueado: no pueden editarse ni agregar mensajes.  Página 1 de 1
 

Usuarios navegando en este Tema: 0 Registrados, 0 Ocultos y 1 Invitado
Usuarios Registrados conectados: Ninguno


 
Lista de Permisos
No puede crear mensajes
No puede responder temas
No puede editar sus mensajes
No puede borrar sus mensajes
No puede votar en encuestas
No puede adjuntar archivos
No Puede descargar archivos
Puede enviar eventos al Calendario



  



 

JanuWeb.Com  Destaca


JanuWeb.ComJanuWeb.OrgJanuBlog.Com están alojadas en Sotem.es • © 2006, 2008

MuchoGrafico - Paz y Justicia - phpBB-Es - Icy Phoenix España - Ciber Morph - Lphant - EDDB - CoMuNiDaD ThE KuKa
RYLNet - phpBBMODs.Es - ZonaManolo - Directorio phpBB-Es - ModMovil - AyudaPC - Mas Pi - Madelman