Amigo el codigo que utilizo para cargar una pagina es este:
<HTML>
<HEAD>
<span Style="font-weight: 700"><font face="Verdana" Style="font-size: 15pt">
<CENTER>Cargando pagina...<br>
</CENTER><br>
</font></span>
<center>
<Style>
#barMv{
POSITION:absolute;
Left:0;
TOP:0;
BACKGROUND-COLOR:red;
}
#barBg{
POSITION:absolute;
Left:0;
TOP:0;
BACKGROUND-COLOR:white;
BORDER:red 1px solid;
COLOR:red;
FONT-WEIGHT:bold;
FONT-FAMILY: "Verdana, Arial";
FONT-SIZE: 13px;
}
#prct{
COLOR:white;
FONT-WEIGHT:bold;
FONT-FAMILY: "Verdana, Arial";
FONT-SIZE: 13px;
}
</Style>
<Script language="JavaScript1.2;">;
Function postaction(){
//Aqui definiriamos el redireccionamiento
window.location="home.asp"
}
var percent = 0
var clipright=0
var widthIE=0
var widthNS=0
Function initializebar(){
If (document.all){
document.all.barMv.style.clip="rect(0 0 auto 0)"
baranchor.style.visibility="visible"
widthIE=barBg.style.pixelWidth
startIE=setInterval("increaseIE()",200)
}
If (document.layers){
widthNS=document.baranchorNS.document.barBgNS.clip .width
document.baranchorNS.document.barMvNS.clip.right=0
document.baranchorNS.visibility="show"
startNS=setInterval("increaseNS()",200)
}
}
Function increaseIE(){
percent = percent + 1
If (percent > 100) percent = 100
document.all.barMv.style.clip="rect(0 "+clipright+" auto 0)"
document.all.barBg.innerHTML = percent + "%"
document.all.prct.innerHTML = percent + "%"
If (clipright<widthIE)
clipright = Math.floor(widthIE * percent / 100)
Else{
clearInterval(startIE)
postaction()
}
}
Function increaseNS(){
percent = percent + 1
If (percent > 100) percent = 100
If (clipright<baranchor.style.width){
document.baranchorNS.document.barMvNS.clip.right=c lipright
clipright = Math.floor(widthNS * percent / widthNS)
}
Else{
clearInterval(startNS)
postaction()
}
}
</Script></HEAD><BODY onload="initializebar();">
</Script><Script language="JavaScript1.2;">
If (document.all){
document.write('<DIV id="baranchor" style="position:relative;width:400px;height:20px;v isibility:hidden;">')
document.write('<div id="barBg" align=center style="width:400px;height:20px;z-index:9">0%</div>')
document.write('<div id="barMv" align=center style="width:400px;height:20px;z-index:10">')
document.write('<TABLE cellSpacing=0 cellPadding=0 border=0 width=400 height=20><TBODY>')
document.write('<TR HEIGHT=20><TD Valign=middle ALIGN=center ID=prct>0%</TD></TR>')
document.write('</TBODY></TABLE></DIV></DIV>')
}
</Script><ilayer name="baranchorNS" visibility="hide" width=400 height=20><layer name="barBgNS" bgcolor=black width=400 height=20 z-index=10 Left=0 top=0></layer>
<layer name="barNS" bgcolor=red width=400 height=20 z-index=11 Left=0 top=0></layer>
</ilayer>
<p dir="ltr"><font face="Verdana" size="2">Por favor sea paciente<span lang="fr-ca">...</span></font>
</p>
</BODY>
</HTML>
Pero me lansa el siguiente error: en donde dice
.
.
}
</Script></HEAD><BODY onload="initializebar();">
</Script><Script language="JavaScript1.2;">
.
.
.
Se esperaba un objeto................
Por favor alguien me puede expicar que eso????
Miguel