Jump to content
Fórum Script Brasil
  • 0

Erro no javascript


preciso de ajuda

Question

<h2>oi pessoal vim aqui pedir a ajuda de vocês to editando uma pagina html

já esta quase acabada so falta 1 coisa , quando acaba o time de segundos para aparecer o link para download o link aparece certinho mas quando clica nele ele carrega a propria pagina.

abaixo o codigo da pagina:</h2>

<textarea rows="500" cols="500" style="background-color: #ffffff" wrap="soft">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0026)http://protetorcastor.com/ -->
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 

<meta name="robots" content="noindex,nofollow,noarchive,noodp,noydir">
<title>Pagina do Seu Download...</title> 
<style type="text/css">@import url('http://www.protetordelink.com/02/sdm.css');</style>
&lt;script>
function click() {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
  }
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")
</script>

&lt;script language="JavaScript"> 
<!--
function Abrir(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function MM_effectHighlight(targetElement, duration, startColor, endColor, restoreColor, toggle)
{
    Spry.Effect.DoHighlight(targetElement, {duration: duration, from: startColor, to: endColor, restoreColor: restoreColor, toggle: toggle});
}
//-->
</script> 
&lt;script language="JavaScript" type="text/javascript"> 
var segundos = 10;
function contador() {
document.getElementById('tempo').innerHTML=segundos;
if(segundos == 0) {
document.getElementById('link0').style.display="none";
document.getElementById('link').style.display="block";
document.getElementById('msg').style.display="none";
}
if (segundos != 0){
segundos = segundos-1;
setTimeout("contador()", 1000);
}
}
</script> 
&lt;script type="text/javascript"> 
function changeText(){
document.getElementById('ajuda').innerHTML = 'P: Por que eu estou nessa pagina? <br /> R: Essa pagina ajuda manter o site online e gratis. <br /><br /> P: Como Efetuo o download? <br /> R: Cadastre seu celular no campo acima e em seguida clique no botao de download. <br /><br /> P: Como sei que fui cadastrado(a) com sucesso? <br /> R: Voce recebe um codigo em seu celular e devera digita-lo acima. <br /><br /> P: Por que tenho que cadastrar o numero do meu celular? <br /> R: Para enviarmos Toques,Games,Themes ... , sem contar que ajuda o site. <br /><br /> P:  seguro colocar o numero do meu celular aqui? <br /> R: Sim, totalmente, seu numero não sera armazenado em local algum. <br /><br /> P: Eu preciso passar por essa pagina a cada download? <br /> R: não, so no primeiro download, nos seguintes basta cliacr em "Download"  <br /><br /> P: Como cancelar minha assinatura? <br /> R: Envie SAIR para o numero 48359.';
}
</script> 

&lt;script type="text/javascript">
function cadAtt(){
alert("Clique nos banners e em seguida ir a loja para liberar o download.");
}
</script>

&lt;script type="text/javascript"> 
function cadAlert(){
alert("Aguarde: Seu download est? sendo processado!");
}
</script> 

&lt;script> 
function iframe()
{
this.iframe = document.createElement('iframe');
this.id = null;
this.write = function()
{
if (this.id) {
document.getElementById(this.id).appendChild(this.iframe);
}
};
}
var pub = new iframe();
pub.id = 'ads'
pub.iframe.id = 'pub-ad';
pub.iframe.scrolling = 'no';
pub.iframe.border = '0';
pub.iframe.src = 'http://ads.glispa.com/sw/4180/CD4361/';
</script> 

</head>
<body onload="pub.write();" topmargin="0" leftmargin="0" bgcolor="#f1f1f1">
<span id="msg" style="display:none;">(<span id="tempo" class="c3">77</span>)</span>
<table width="963" height="288" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="table">
  <tbody><tr>
    <td bgcolor="#ffffff"><div align="center">
        </div>
    <div align="center">
        <img src="../Meus documentos/Downloads/Pagina do Seu Download..._files/backpc.jpg" alt="Download" border="0" width="950" height="131"></div></td>
  </tr>
  <tr>
    <td>

<!-- Publicidade 728x90 -->

<!-- Publicidade 728x90 -->


    </td>

  </tr>

  <tr>
    <td>

    <div align="center">

    </div></td></tr><tr>
      <td height="17" valign="middle" border="0" bgcolor="#FFFFFF" style="border: thin none #000000;">

&lt;script type="text/javascript">
function delayer(){
top.window.location = "v3Iup/lg.oog//:ptth"}

</script>
                                
                                <center>
                                <p style="margin-top: 0; margin-bottom: 0">
                                <span style="font-style: normal">
                                <font color="#000000">
                                </font></span>
                                &lt;script type="text/javascript" language="javascript" >lmd_source="23526932";lmd_si="33540860";lmd_pu="22498122";lmd_c="BR";lmd_wi="120";lmd_he="300";</script>                                  </p>
                                <p>
                                  
                                <p><!-- BEGIN QUEDESCONTO - TOP OFERTAS --><div id="quedesconto" style="width:728px;height:90px;overflow:hidden; margin: 0px; padding: 0px;">&lt;script type="text/javascript" language="javascript">lmd_source="23537812";banner_id="2";i_w="728";i_h="90";c="BR";</script>&lt;script src="http://apps3rd.lomadee.com/483/js/source.js"type="text/javascript" language="javascript"></script></div><!-- END QUEDESCONTO - TOP OFERTAS -->&nbsp;</p>
                                <p><font color="#000000"><img src="../Meus documentos/Downloads/Pagina do Seu Download..._files/exclamation.png" border="0px" style="margin-bottom:-2px; margin-right:6px;"><h1>Estamos 
                                Aguardando que você clique no banner e depois em ir a loja</h1></font></p>
                                <font color="#000000"><br> 
                                </font><p></p>
                                <p style="margin-top: 0; margin-bottom: 0">&nbsp;
</p><p style="margin-top: 0; margin-bottom: 0">
<a href="http://www.masterhdtv.com/index.php?ref=protetor" target="_blank" rel="nofollow"></a>
                                <span style="font-style: normal">
                                <font color="#000000">
        </font></span></p><font color="#000000">                                                        <b> <h2>Ajude-nos clicando no banner e em ir a loja !! a equipe god360torrent agredece Muito se você clicar :)))!e assim teramos mais jogos on demand</h2>
                                 
                                </b></font>
                                
<p>&nbsp;</p><center>

                                <div class="main_area" id="header"> 
<div id="link0" style="display: block;"> 
<p style="text-align: center"> 
<a href="http://protetorcastor.com/#topo" onmouseover="java script:cadAtt()" onmousemove="window.scrollTo(1, 1);"><a href="www.google.com.br" target="_blank">TEXTO</a></a></p></div> 


<div id="link" style="display:none"> 
<a href=""><img border="0" src="../Meus documentos/Downloads/Pagina do Seu Download..._files/download.jpg" alt="Voce já pode baixar o Arquivo.." width="938" height="73"></a>
</div> 
&lt;script>contador();</script> </div></center>
</center></td> 
</tr> 
</tbody></table>                    




&lt;script type="text/javascript">
var tags = document.getElementsByTagName("a");
for (i = 0; i < tags.length; i++ ) {
  tags[i].onclick = function() { if ( (this.getAttribute('href') != 'http://www.downloadsmais.com/cbdown.js')
                                    )
                                      {
                                        if ( LerCookie('dgffsafad5') != "1" ) {
                                          abreJanela();                                           
                                        }
                                        GerarCookie('dgffsafad5', '1', 1);
                                      };
                               } 
}

function abreJanela() { 
  var l = screen.availWidth; 
  var t = screen.availHeight; 
  var p = 'height='+t+',width='+l+',menubar=yes,toolbar=yes,location=yes,scrollbars=yes,status=yes,resizable=yes,left=0,top=0';
  nw = window.open("http://www.livreprabaixar.com/","nt",p);
  this.focus();
}

function GerarCookie(strCookie, strValor, lngDias)
{
    var dtmData = new Date();

    if(lngDias)
    {
        dtmData.setTime(dtmData.getTime() + (lngDias * 12 * 60 * 60 * 800));
        var strExpires = "; expires=" + dtmData.toGMTString();
    }
    else
    {
        var strExpires = "";
    }
    document.cookie = strCookie + "=" + strValor + strExpires + "; path=/";
}

function LerCookie(strCookie)
{
    var strNomeIgual = strCookie + "=";
    var arrCookies = document.cookie.split(';');

    for(var i = 0; i < arrCookies.length; i++)
    {
        var strValorCookie = arrCookies[i];
        while(strValorCookie.charAt(0) == ' ')
        {
            strValorCookie = strValorCookie.substring(1, strValorCookie.length);
        }
        if(strValorCookie.indexOf(strNomeIgual) == 0)
        {
            return strValorCookie.substring(strNomeIgual.length, strValorCookie.length);
        }
    }
    return null;
}

function ExcluirCookie(strCookie)
{
    GerarCookie(strCookie, '', -1);
}

</script>

                                
                                
                                
                                
                                
                                
                                
                
                                    
            


<div id="footer"></div>
        
      
    
    
  

 </body></html>
</textarea>

Edited by kuroi
Adicionar tag CODE
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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
      652k
×
×
  • Create New...