Ir para conteúdo
Fórum Script Brasil
  • 0

Script Carreganda E Redireciona


alexandre henrique

Pergunta

1 resposta a esta questão

Posts Recomendados

  • 0

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<!-- --><HTML><HEAD><TITLE>BR Busca JS - Resultados da Busca</TITLE>

<STYLE type=text/css>

#divLoadCont {position:absolute; z-index:500; left:0px; top:0px; width:100%; height:100%; clip:rect(0px 100% 100% 0px); background-color:#ffffff; layer-background-color:#029dca;}

#divLoad1 {position:absolute; layer-background-color:silver; background-color:silver;}

#divLoad2 {position:absolute; left:0px; top:0px; layer-background-color:navy; background-color:navy;}

#divLoadText {position:absolute; background-color:transparent; font-family:monospace, arial, helvetica, sans-serif; color:navy; font-size:14px;}

</STYLE>

<script language=JavaScript type=text/javascript>

function lib_bwcheck(){ //Browsercheck (needed)

this.ver=navigator.appVersion

this.agent=navigator.userAgent

this.dom=document.getElementById?1:0

this.opera5=this.agent.indexOf("Opera 5")>-1

this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;

this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;

this.ie4=(document.all && !this.dom && !this.opera5)?1:0;

this.ie=this.ie4||this.ie5||this.ie6

this.mac=this.agent.indexOf("Mac")>-1

this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;

this.ns4=(document.layers && !this.dom)?1:0;

this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)

return this

}

var bw=new lib_bwcheck()

/*VARIABLES TO SET START: */

numImages = 10 //How many images you have in your page

loaderWidth = 300 //The width of the loadbar

/*

VARIABLES TO SET END: */

// A unit of measure that will be added when setting the position of a layer.

var px = bw.ns4||window.opera?"":"px";

currentImg = 0

//Document size object ********

function lib_doc_size(){

this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||innerWidth||0;

this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||innerHeight||0;

if(!this.x2||!this.y2) return message('Document has no width or height')

this.x50=this.x2/2;this.y50=this.y2/2;

return this;

}

//Lib objects ********************

function lib_obj(obj,nest){

nest=(!nest) ? "":'document.'+nest+'.'

this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;

this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt;

this.ref=this.css

this.w=this.evnt.offsetWidth||this.css.clip.width||

this.ref.width||this.css.pixelWidth||0;

return this

}

//Moving object to **************

lib_obj.prototype.moveIt = function(x,y){

this.x=x; this.y=y; this.css.left=x+px; this.css.top=y+px;

}

//Clipping object to ******

lib_obj.prototype.clipTo = function(t,r,b,l,setwidth){

this.ct=t; this.cr=r; this.cb=b; this.cl=l

if(bw.ns4){

this.css.clip.top=t;this.css.clip.right=r

this.css.clip.bottom=b;this.css.clip.left=l

}else{

if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0

this.css.clip="rect("+t+"px "+r+"px "+b+"px "+l+"px)";

if (setwidth){

this.css.pixelWidth = r;

this.css.pixelHeight = b;

this.css.width = r+px;

this.css.height = b+px;

}

}

}

var oLoad2

function startLoading(){

page = new lib_doc_size()

oLoadCont = new lib_obj('divLoadCont')

oLoad = new lib_obj('divLoad1','divLoadCont')

oLoad2 = new lib_obj('divLoad2','divLoadCont.document.divLoad1')

oLoadText = new lib_obj('divLoadText','divLoadCont.document.divLoad1')

oLoad.moveIt(page.x50-loaderWidth/2,page.y50-20)

oLoadText.moveIt(loaderWidth/2 - oLoadText.w/2,10)

oLoad.clipTo(0,loaderWidth,40,0,1)

oLoad2.per = loaderWidth/numImages

}

function loadIt(ok){

currentImg ++

if (oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1)

if (!ok){

oLoadCont.css.visibility = "hidden"

oLoadCont = null;

oLoad1 = null;

oLoad2 = null;

}

}

//DISPLAY FUNCTION - DELETE START -------- DELETE THIS *************

//LEAVE THIS FUNCTION WHILE TESTING. DELETE WHEN READY

function loadIt_display(ok){

currentImg ++

if (oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1)

if (currentImg<=numImages) setTimeout("loadIt_display(1)",200)

else{

oLoadCont.css.visibility = "hidden"

}

}

//DISPLAY FUNCTION - DELETE END *************************************

</SCRIPT>

<STYLE type=text/css>

A { text-decoration : none;}

</STYLE>

<script language=javascript>

//

var srchstr=new Array();

srchstr[0]=new Array(location.search);

flag=0;

var chrs=new Array('&','=','+');

for(i=0;i<chrs.length;i++)

for(j=0;j<srchstr.length;j++)

{ if(i==2 && j==1)

{ t=unescape(srchstr[j]);

srchstr[2][1]="";

for(k=0;k<t.length;k++)

{ c=t.charAt(k);

if(c=='"')

{ flag=(flag+1)%2; }

else

{ srchstr[2][1]+=(flag==1 && c=="+")?" ":c; };

};

};

srchstr[srchstr.length]=srchstr[j].split(chrs);

};

document.write('<script language="javascript" src="'+srchstr[3][1]+'"></scr'+'ipt>');

// **** User Defined Display

dsp=new Array();

dsp[dsp.length]='<tr><td><strong><font size="3" face="monospace, Verdana, arial" color="#f98d46">%num.</strong></td><td %bgc><a href="%link" target="%target"><font size="2" face="monospace,Verdana, arial">%title</a>';

dsp[dsp.length]='<tr><td align="right"><font size="2" face="monospace, Verdana, arial" color="#000000">Descrição:</td><td %bgc><font size="2" face="monospace, Verdana, arial" color="#000000">%description</td></tr>';

dsp[dsp.length]='<tr><td align="right"><font size="2" face="monospace, Verdana, arial" color="#000000">Palavras-chave:</td><td %bgc><font size="2" face="monospace, Verdana, arial" color="#000000">%keywords</td></tr>';

dsp[dsp.length]='<tr><td align="right"><font size="2" face="monospace, Verdana, arial" color="#000000">Banco de Dados:</td><td %bgc><font size="2" face="monospace, Verdana, arial" color="#aeaeae"><font size="2" face="monospace, Verdana, arial" color="#000000">Curitiba e Região</font>%dbase</td></tr>';

dsp[dsp.length]='<tr><td align="center" colspan=2><hr width=100%></td></tr>';

// **** End User Defined Display

</SCRIPT>

<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">

<META content="MSHTML 6.00.2600.0" name=GENERATOR>

<script language=JavaScript>

function blockError(){return true;}

window.onerror = blockError;

</SCRIPT>

<script language=JavaScript>

function disableselect(e)

{

return false

}

function reEnable()

{

return true

}

//if IE4+

document.onselectstart=new Function ("return false")

//if NS6

if (window.sidebar)

{

document.onmousedown=disableselect

document.onclick=reEnable

}

</SCRIPT>

</HEAD>

<BODY text=#029dca bgColor=#ffffff background="">

<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px"><A

onclick="self.close(); return false" href="#"></A></DIV><!-- END DELETE --><!-- ALWAYS HAVE THIS RIGHT AFTER THE BODY START TAG -->

<DIV id=divLoadCont>

<DIV id=divLoad1>

<DIV id=divLoad2>&nbsp;</DIV>

<DIV id=divLoadText>Carregando Arquivos...</DIV></DIV></DIV>

<script>

startLoading()

//onload=loadIt; //

loadIt_display(1) //

</SCRIPT>

<DIV align=center><FONT face=Verdana size=2></DIV>conteudo aqui</FONT></BODY></HTML>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,2k
×
×
  • Criar Novo...