
12/01/2009, 10:14
|
| | Fecha de Ingreso: octubre-2006
Mensajes: 185
Antigüedad: 18 años, 5 meses Puntos: 0 | |
Precarga Tengo esta funcion precarga que me la paso alguien:
<!--//
// Browser Detection
browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);
if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0) { roll = 'true'; }
else { roll = 'false'; }
// Preload images, if browser supports mouseovers
if (roll == 'true') {
// Insert the names of any images you include here.
// Be sure to end each line but the last with a comma.
// The originals have been inserted for you.
var imglist = new Array (
"imagenes",
"imagenes",
"imagenes",
"imagenes",
"imagenes",
"imagenes"
);
var imgs = new Array();
var count;
if (document.images)
for (count=0; count<imglist.length; count++)
{imgs[count]=new Image(); imgs[count].src=imglist[count];}
}
function msover1(img,ref)
{
if (roll == 'true')
{ document.images[img].src = ref;
}
}
function msout1(img,ref)
{
if (roll == 'true')
{
document.images[img].src = ref;
}
}
Exactamente no se que funcion hace, entiendo que precargar las imagenes antes que la web. Lo que me gustaria es una precarga con barra hay opcion con java?.
Gracias un saludo. |