Bueno basicamente tengo un problema similar al de The beatles planteado mas abajo pero con cierta variable, nesecito un scrip que entrara con una pantalla de loading para que no se vea la pagina al cargar.
y actualmente tengo el siguiente scrip
Cita:
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v2.0
if (document.MM_swapImgData != null)
for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}
function MM_preloadImages() { //v2.0
if (document.images) {
var imgFiles = MM_preloadImages.arguments;
if (document.preloadArray==null) document.preloadArray = new Array();
var i = document.preloadArray.length;
with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
preloadArray[i] = new Image;
preloadArray[i++].src = imgFiles[j];
} }
}
function MM_swapImage() { //v2.0
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
(objStr.indexOf('document.all[') ==0 && document.all ==null))
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.' ),objStr.length);
obj = eval(objStr);
if (obj != null) {
swapArray[j++] = obj;
swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
obj.src = MM_swapImage.arguments[i+2];
} }
document.MM_swapImgData = swapArray; //used for restore
}
function MM_showHideLayers() { //v2.0
var i, visStr, args, theObj;
args = MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
visStr = args[i+2];
if (navigator.appName == 'Netscape' && document.layers != null) {
theObj = eval(args[i]);
if (theObj) theObj.visibility = visStr;
} else if (document.all != null) { //IE
if (visStr == 'show') visStr = 'visible'; //convert vals
if (visStr == 'hide') visStr = 'hidden';
theObj = eval(args[i+1]);
if (theObj) theObj.style.visibility = visStr;
} }
}
function MM_controlSound(sndAction,_sndObj) { //v2.0
var sndObj = eval( _sndObj );
if (sndObj != null) {
if (sndAction=='stop') {
sndObj.stop();
} else {
if (navigator.appName == 'Netscape' ) {
sndObj.play();
} else {
if (document.MM_WMP_DETECTED == null) {
document.MM_WMP_DETECTED = false;
var i;
for( i in sndObj )
if ( i == "ActiveMovie" ) {
document.MM_WMP_DETECTED = true;
break; }
}
if (document.MM_WMP_DETECTED)
sndObj.play();
else if ( sndObj.FileName )
sndObj.run();
}}}}
//-->
</script>
<Body ... onLoad="MM_preloadImages ('imagen1','#936885633210');MM_preloadImages ('imagen2','#936885723780');MM_preloadImages ('imagen3','#938428312720')" ...><script language="JavaScript">
<!--
function MM_swapImgRestore() { //v2.0
if (document.MM_swapImgData != null)
for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}
function MM_preloadImages() { //v2.0
if (document.images) {
var imgFiles = MM_preloadImages.arguments;
if (document.preloadArray==null) document.preloadArray = new Array();
var i = document.preloadArray.length;
with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
preloadArray[i] = new Image;
preloadArray[i++].src = imgFiles[j];
} }
}
function MM_swapImage() { //v2.0
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
(objStr.indexOf('document.all[') ==0 && document.all ==null))
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.' ),objStr.length);
obj = eval(objStr);
if (obj != null) {
swapArray[j++] = obj;
swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
obj.src = MM_swapImage.arguments[i+2];
} }
document.MM_swapImgData = swapArray; //used for restore
}
function MM_showHideLayers() { //v2.0
var i, visStr, args, theObj;
args = MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
visStr = args[i+2];
if (navigator.appName == 'Netscape' && document.layers != null) {
theObj = eval(args[i]);
if (theObj) theObj.visibility = visStr;
} else if (document.all != null) { //IE
if (visStr == 'show') visStr = 'visible'; //convert vals
if (visStr == 'hide') visStr = 'hidden';
theObj = eval(args[i+1]);
if (theObj) theObj.style.visibility = visStr;
} }
}
function MM_controlSound(sndAction,_sndObj) { //v2.0
var sndObj = eval( _sndObj );
if (sndObj != null) {
if (sndAction=='stop') {
sndObj.stop();
} else {
if (navigator.appName == 'Netscape' ) {
sndObj.play();
} else {
if (document.MM_WMP_DETECTED == null) {
document.MM_WMP_DETECTED = false;
var i;
for( i in sndObj )
if ( i == "ActiveMovie" ) {
document.MM_WMP_DETECTED = true;
break; }
}
if (document.MM_WMP_DETECTED)
sndObj.play();
else if ( sndObj.FileName )
sndObj.run();
}}}}
//-->
</script>
y ami si me da cada frame cargado por completo pero el problema radica en que las frame´s cargan en distintos tiempos o "defasadas"
y como dijera "The beatles"
Cita:
espero que me puedan ayudar salu2la joda es que el usuario vea la pagina completa de una y que no vea como las imagenes van a pareciendo una por una