cheken esto Index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>preload....silentrage</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<SCRIPT language=Javascript src="preload.js"></SCRIPT>
<SCRIPT language=JavaScript1.2>
startingColor = new Array() // <-- Do not modify!
endingColor = new Array() // <-- Do not modify!
// YOU MAY MODIFY THE FOLLOWING:
var yourImages = new Array
("images/imajenARRIBA4.gif","images/flecha.gif","images/bannerblacksnow.gif","images/minibanner.gif","images/bannerbostex.gif","images/fondotablas2.gif","images/bannerfafisco.jpg","images/bannershadow.gif","images/bannerrumba.gif","images/bannerhunter.gif","images/bannerradiation.gif","images/bannermistikal.gif","images/bannersaiko.gif","images/bannerdarkhouse.jpg","images/bannerdrksoft.gif","images/banneranimaculo.gif","images/bannerdarksilem.gif","images/fondotablas3.gif","images/bannerolemax.gif","images/bannertxunamy.gif") // Fill this array with the images you wish to preload
var locationAfterPreload = "inicio.htm" // The script will redirect here when the preloading finishes *successfully*
var preloadbarWidth = 190 // The length of the preload bar. Should be greater than total amount of images you want to preload!
var preloadbarHeight = 10 // The height of the gradient/preload bar
var backgroundOfGradient = "#FFFFFF" // Default color while the preload bar is "filling up"
// Color the preloadbar is starting with - enter 1st, 3rd and 5th numbers/letters of color code
startingColor[0] = "0"
startingColor[1] = "9"
startingColor[2] = "9"
// Color the preloadbar is going to end up with - enter the 1st, 3rd and 5th numbers/letters of color code
endingColor[0] = "0"
endingColor[1] = "9"
endingColor[2] = "9"
// FOR TROUBLESHOOTING:
var gap = 3 // PLAY AROUND WITH THIS SETTING IF YOU GET A JAVASCRIPT ERROR!!! 2 is the minumum value!!!
// DO NOT MODIFY ANYTHING BEYOND THIS POINT!!!
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 = yourImages.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 = yourImages[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 = "Cargadas " + currCount + " de " + imgLen + " imagenes [" + percent + "%].";
pending--;
checkLoad();
return;
}
eval("document.all.cell" + (h+1) + ".style.backgroundColor = hilite[h]");;
h++;
setTimeout("changeto()",1);
}
defaultStatus = "Cargadas 0 de " + imgLen + " imagenes [0%]."
// end hiding -->
</SCRIPT>
<META content="Microsoft FrontPage 5.0" name=GENERATOR>
<STYLE fprolloverstyle>A:hover {color: #4d5a7d; font-family: Verdana}
</STYLE>
</HEAD>
<BODY oncontextmenu="return false" onselectstart="return false"
ondragstart="return false" style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana"
text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#5C6778
leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<DIV align=center><FONT color=#4d5a7d>.<BR>.<BR></FONT> <P>
<SCRIPT language=JavaScript1.2>
<!-- beging hiding
document.write('<table border="1" bordercolor="#FFFFFF" cellpadding="0" cellspacing="0" width="' + preloadbarWidth + '"><tr height="' + preloadbarHeight + '" bgcolor="#FFFFFF"' + backgroundOfGradient + '">');
for (i = 0; i < num; i++) {
document.write('<td bordercolorlight="#000000" bordercolordark="#000000" width="' + gap + '" id="cell' + (i+1) + '"></td>');
}
document.write('</tr></table>');
document.write('<p>')
loadImages();
// end hiding -->
</SCRIPT>
</P>
<P><FONT
face=Verdana size=1>[------- Cargando imágenes------</FONT><FONT face=Verdana
color=#cc0000 size=1><B> </B></FONT><FONT face=Verdana
size=1>-]</FONT><B><FONT face=Verdana size=1><BR><BR></FONT></B><FONT
face=Verdana size=1>[<a style="TEXT-DECORATION: none" href="http://silentrage.dk3.com">Skip</a>]</FONT></P>
<P> </P></DIV></BODY></HTML> Continua >> |