gen
26
2012

An article by
Fabry19dice
Commenti

Ecco uno script JS per attendere il caricamento di una pagina in Asp.
<STYLE type=text/css>#cache {
Z-INDEX: 10; VISIBILITY: hidden; POSITION: absolute; TOP: 200px
}
</STYLE>
<BODY onload=cacheOff()>
<DIV id=cache>
<TABLE class=table1 style="WIDTH: 300px" height=150 cellSpacing=2 cellPadding=2 align=center border=1 bordercolor="blue" bgcolor="#3399FF">
<TBODY>
<TR>
<TD>
<TABLE class=table2 height="100%" cellSpacing=2 cellPadding=2 width="100%"
align=center>
<TBODY>
<TR>
<TD vAlign=center>
<CENTER><FONT class=titleorange>Attendere... Caricamento in
Corso!</FONT><BR><IMG src="Images/loadbar.gif"
VALIGN="MIDDLE"><BR><BR><FONT class=titleorange>Chiudi!</FONT><BR><A
href="javascript:cacheOff()"><IMG
src="Images/Giu.gif" border=0
VALIGN="MIDDLE"></A><BR></CENTER>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<SCRIPT language=JavaScript>
var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
if (nava) { cach = document.cache}
else if (dom) {cach = document.getElementById("cache").style}
else if (iex) {cach = cache.style}
largeur = screen.width;
cach.left = Math.round((largeur/2)-200);
cach.visibility = "visible";
function cacheOff()
{
cach.visibility = "hidden";
}
</SCRIPT>
Ciao Fab
Se volete seguire i post di www.informarea.it potete iscrivervi al suo feed RSS.
I Vostri commenti sono benvenuti!
Non esitate a lasciare le Vostre impressioni o a porre domande.