..:: MX Studio Fóruns ::..: LOAD - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




ATENÇÃO

Para evitar posts desnecessários e que não influam para o andamento e desenvolvimento do fórum, clique aqui e leia todas as regras.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

LOAD ajuda ae

#1 User is offline   Pollo 

  • Group: Membros
  • Posts: 60
  • Joined: 05-September 05

Posted 19 February 2006 - 12:31 PM

E ae galera...juro q procurei no forum,no site mas nao achei...
keria saber como faço akelas paginas q aparecem "load" e carregam o site dps vai pro site...acho q deve ter JS...
acho q deu pra vcs entenderem né ??
vlw ae pela ajuda thumbup.gif
0

#2 User is offline   LeonardoBehnck 

  • Group: Membros
  • Posts: 479
  • Joined: 14-October 05

Posted 19 February 2006 - 12:50 PM

eu tambem gostaria de saber qual código faz isso sem ser em flahs claro, pode ser PHP acho que não, mais JavaScripth acho que pode ser sim, se alguem por favor souber responda, tambem presiso disso thumbsup.gif
0

#3 User is offline   RafaJaques 

  • Group: Moderadores
  • Posts: 549
  • Joined: 20-December 05

Posted 20 February 2006 - 01:55 PM

Eu sabia um mais simples (de uma linha só)... Mas infelizmente não consigo lembrar de cabeça... Sinto muito...

JavaScript
<!-- Inicio do Script -->
<!-- Este script e muitos outros estão disponíveis gratuitamente em http://www.scriptfacil.com -->

<html>



<body>



<p align="center"><strong><font face="Arial" size="4"> Por favor, espere 5 segundos <br><br>

antes de ser dirigido ao script</font></strong></p>



<script>



//defina abaixo a URL que será direcionada

var redirecturl="http://www.rjhost.com.br"

//defina abaixo em quantos segundos sera feito o redirecionamento

var pausefor=5





function postaction(){

if (window.timer){

clearInterval(timer)

clearInterval(timer_2)

}

window.location=redirecturl

}

setTimeout("postaction()",pausefor*1000)



</script>





<!--[if IE]>



<script language="JavaScript1.2">



<!--



// this script was originally authored by william kemper. I have no homepage.

var switchm=new Array

switchm[0]="ffaa00";

switchm[1]="ffff00";

switchm[2]="00ff00";

switchm[3]="0099ff";

switchm[4]="ff0000";

switchm[5]="ff00ff";

// if you want to add more colors go ahead, all the for limits are based on array length so

// you shouldn't need to change any of the code, just add more colors.



i=0

j=0

function STROBE()

{

if (j>increment.length-1)

{

j=0

i++

if (i>switchm.length-1)

{

i=0

}

}

document.all.increment[j].filters.blendTrans.apply()

document.all.increment[j].bgColor=switchm[i]

document.all.increment[j].filters.blendTrans.play()

j++

}

timer=setInterval("STROBE()",20) // change the number to effect the speed of the loadbar.

timer_2=setInterval("REVEAL()",20)

function REVEAL()

{

if (document.images[0].complete)

{

clearInterval(timer)

clearInterval(timer_2)

document.all.loadbar.style.visibility="hidden";

document.all.content.style.visibility="visible";

}

}

// i don't know how to put comments in the css, but change duration to effect the speed of the fade effect.







//-->

</script>

<style>

<!--

body

{

font-size:12px;

font-family:Arial;

color:000000

}

#increment

{

filter:blendTrans(duration=1)

}

-->

</style>



<![endif]-->



<!--[if IE]>



<div id=loadbar

style=position:absolute;top:expression(document.body.clientHeight/2-100);left:expression(document.body.clientWidth/2-50)>

<table cellspacing=0 cellpadding=0 width=100><tr><td

colspan=10><b>Loading...</b></td></tr><tr>

<script language="JavaScript"><!--

for (k=0;k<10;k++)

{

document.write("<td id=increment width=10 height=20></td>") // you could set the length of the loadbar by changing the upper limit of the for statement.

}

//-->

</script>

</tr></table>

</div>

<div id=content

style="position:absolute;top:expression((document.body.clientHeight-document.images[0].height)/2);left:expression((document.body.clientWidth-document.images[0].width)/2);visibility:hidden;">

<img src=placeholder.gif width=1 height=1>

</div>



<![endif]-->



</body>

</html>
<!-- Este script e muitos outros estão disponíveis gratuitamente em http://www.scriptfacil.com -->
<!-- Fim do Script -->

Fonte: ScriptFacil.com
0

#4 User is offline   Pollo 

  • Group: Membros
  • Posts: 60
  • Joined: 05-September 05

Posted 20 February 2006 - 08:55 PM

realmente grande d+
0

#5 User is offline   Sagu 

  • Group: Membros
  • Posts: 43
  • Joined: 23-February 06

Posted 23 February 2006 - 11:02 AM

Na verdade o que se faz é colocar uma Layer com o "Carregando" por baixo das Tables do site, e no final do código HTML colocar uma linha tornando esta Layer invisivel.

Assim quando se carregar até o final do HTML (ou terminar de carregar a página) a Layer se torna invisível.

Experimente:

<HTML>
<BODY>
<DIV ID="LrCarregando" STYLE="position:absolute; left:154px; top:128px; width:400; height:227; visibility:visible; z-index:1">Carregando....</DIV>

<!-- Todo o resto da pagina -->

<script LANGUAGE="JAVASCRIPT">
document.all.LrCarregando.visibility = "hidden";
document.all.LrCarregando.style.visibility = "hidden";
</SCRIPT>
</BODY>
</HTML>

No lugar do "Carregando" você pode colocar a animação que quiser...
0

#6 User is offline   LeonardoBehnck 

  • Group: Membros
  • Posts: 479
  • Joined: 14-October 05

Posted 23 February 2006 - 11:13 AM

é realmente código muito grande vou tentar o código do Sagu pra ver se funciona mesmo... thumbsup.gif
0

#7 User is offline   Sagu 

  • Group: Membros
  • Posts: 43
  • Joined: 23-February 06

Posted 23 February 2006 - 11:52 AM

Se não der certo, dá um toque que a gente tenta outra coisa...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic



Publicidade




1 User(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)