Jump to content
Fórum Script Brasil
  • 0

Utilizar 2 Ou Mais Scripts Na Mesma Pagina


Guest Marcio Leandro

Question

Guest Marcio Leandro

<html>

<head>

<title>[ Carregando site ]</title></head>

<script>

<!--

/*Time limit script- Website Abstraction (http://www.wsabstract.com) Over

200+ free JavaScripts here!*/

//enter limit in "minutes:seconds" Minutes should range from 0 to inifinity.

Seconds should range from 0 to 59

var limit="0:15"

if (document.images){

var parselimit=limit.split(":")

parselimit=parselimit[0]*60+parselimit[1]*1

}

function begintimer(){

if (!document.images)

return

if (parselimit==1)

window.location="javascript:fullwin()"

else{

parselimit-=1

curmin=Math.floor(parselimit/60)

cursec=parselimit%60

if (curmin!=0)

curtime=curmin+" minutes and "+cursec+" seconds left"

else

curtime=cursec+" seconds left"

window.status=curtime

setTimeout("begintimer()",1000)

}

}

//-->

</script>

</head>

<body onLoad="begintimer()">

<script language="javascript">

<!--

function fullwin(){

window.open("open.html","","fullscreen,scrollbars")

}

//-->

</script>

<script language="JavaScript1.2">

/*

Typing Text Script-

Last updated: 99/06/17

© Dynamic Drive (www.dynamicdrive.com)

For full source code, installation instructions,

100's more DHTML scripts, and Terms Of

Use, visit dynamicdrive.com

*/

var it=0

function initialize(){

mytext=typing.innerText

var myheight=typing.offsetHeight

typing.innerText=''

document.all.typing.style.height=myheight

document.all.typing.style.visibility="visible"

typeit()

}

function typeit(){

typing.insertAdjacentText("beforeEnd",mytext.charAt(it))

if (it<mytext.length-1){

it++

setTimeout("typeit()",100)

}

else

return

}

if (document.all)

document.body.onload=initialize

</script>

<small><span id="typing" style="visibility:hidden" align="left">Carregando

...................... Sua pagina esta sendo redirecionada para melhor

visualização</span></small>

</body>

</html>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Guest Marcio LEandro

como faria aqui no onload?? pode ter mais de 1 javascript rodando!!???

Ex:

<body onLoad="begintimer()","initialize()","fullwin()">

1 - inicia com 15a20 segundo para ele fechar a janela, 2 - enquanto isso vai escrevendo na tela CArregando.......... ..., ai quando terminar 3 - Abrir uma pagina fullscreen e pede para fechar a janela pai...

já consegui fechar a janela e abrir a pagina automatico porem não fica muito ruim para usuario, sem um mensagem para ele...

tem como...

isso e possivel????

as funcoes estao no codigo que postei, porem so funciona 1, sera que agora rola.!!! no Onload??? assim ...

Link to comment
Share on other sites

  • 0
Guest Marcio Leandro

Obrigado pela ajuda...

ai ficou maneiro, pelo menos eu acho...

www.shadownetwork.kit.net

um abraço e obrigado pela força....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      651.8k
×
×
  • Create New...