Ir para conteúdo
Fórum Script Brasil

alugopejr

Membros
  • Total de itens

    6
  • Registro em

  • Última visita

Tudo que alugopejr postou

  1. Bom dia a todos, tenho um sistema de backup em PHP que está funcionando, ao clicar no botão de download o sistema efetua o download e abre a janela para o usuário salvar localmente o arquivo de backup .sql, eu preciso que após o usuário salvar ou cancelar o arquivo de backup, a página seja redirecionada, já alterei a ordem das linhas e nada, se colocar antes da linha readfile a página é redirecionada, mas não aparece a janela para o usuário salvar o arquivo de backup. Já pesquisei bastante no google e não solucionei meu problema. Alguma luz? readfile($arquivo_download); echo ("<br><script>window.location='principal.php';</script>"); exit;
  2. Boa tarde galera, uso o seguinte código javascript para salvar cookies no meu site, nele tenho um menu que altera entre 4 css's diferentes, funciona perfeitamente no IE e Firefox, porém não funciona no chrome, eu mudo o estilo (CSS) do site, quando eu clico no menu e vou para outra página o estilo é mantido, porém no chrome volta ao estilo padrão, dentro da mesma página muda normal o estilo, porém no chrome ao mudar de página volta ao estilo padrão, se alguém puder me dar uma força eu agradeço, já pesqusei bastante na net mas não encontrei a solução. Segue o código: jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE } // CAUTION: Needed to parenthesize options.path and options.domain // in the following expressions, otherwise they evaluate to undefined // in the packed version for some reason... var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { // only name given, get cookie var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } };
  3. Boa tarde a todos, estou desesperado, preciso entregar um site para um cliente, mostrei a ele uma animação de texto em javascript e ele amou, eu tinha testado em ie e chrome, porém ao testar no firefox não funcionou, alguém pelo amor de Deus pode me dar uma ajuda, abaixo segue o código completo. Antes só funcionava no IE, porém consegui fazer funcionar no Chrome alterando a linha if (document.all) { para if (document.all||document.getElementById) { Com essa alteração passou a funcionar no IE e tb no chrome, mas já pesquisei bastante sobre como funcionar no mozilla, mas nada dele trabalhaar com esse browser. Por favo, me ajudem, no aguardo. Desde já meu muito obrigado aos interessados. <html> <title>Javascript</title> <head> <script type="text/javascript"> text=new Array('Bem-vindo ao meu site', 'Calositas em Anápolis-GO', 'Contate-nos', '(62) 9296-0284', 'alugopejr@yahoo.com.br', 'Visualização em 1024X768' ) var numText=6 color=new Array('red', 'blue', 'white', 'green', 'yellow', 'red', 'blue', 'white', 'yellow', '00FF00') var numColors=10 var endSize=75 var Zspeed=150 var Cspeed=100 var font='Verdana' var hide=true var size=10 var gonum=0 var numero=0 if (document.all||document.getElementById) { n=0 ie=1 zoomText='document.all.zoom.innerText=text[num]' zoomSize='document.all.zoom.style.fontSize=size' closeIt="" fadeColor="document.all.zoom.style.color=color[numero]" } if (document.layers) { n=1;ie=0 zoomText="" zoomSize="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+size+'px; color:'+color[0]+'\">'+text[num]+'</p>')" closeIt="document.zoom.document.close()" fadeColor="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+endSize+'px; color:'+color[numero]+'\">'+text[numText-1]+'</p>')" } function zoom(num,fn){ if (size<endSize){ eval(zoomText) eval(zoomSize) eval(closeIt) size+=5; setTimeout("zoom("+num+",'"+fn+"')",Zspeed) }else{ eval(fn); } } function fadeIt(numero){ if (numero<numColors){ eval(fadeColor) eval(closeIt) numero+=1; setTimeout("fadeIt("+numero+")",Cspeed) } // }else{ // hideIt() // } } function hideIt(){ if(hide){ if(ie)document.all.zoom.style.visibility="hidden" if(n)document.layers.zoom.visibility="hidden" } } function init(){ if(ie){ document.all.zoom.style.color=color[0] document.all.zoom.style.fontFamily=font} go(0); } function VariosLoop(num){ size=10; for (x = 1; x < numText; x++){ zoom(num,'x'); fadeIt(0); } } function go(num){ gonum+=1 size=10 if(num<numText){ zoom(num,'go('+gonum+')') fadeIt(0) }else{ gonum=0 fadeIt(0) go(0) } } </script> <title>Banner de texto animado</title> </head> <body onLoad="init()" ;" text="#000000" bgcolor="#FFFFFF"> <center> <table border="10" width="980" height="120" bgcolor="#000000"> <tr> <td width="100%" valign="top"><div id="zoom" align="center" style="position:absolute;"></div></td> </tr> </table> </center></div> </body> </html>
  4. Opa Tenko, obrigado pela resposta, eu retirei a parte que você falou, aí ele mostra o conteúdo do menu, porém o menu passa por cima das mãozinhas, deve ser apenas um detalhe, mas ainda não está funcionando. você chegou a testar em seu PC? Ou apenas olhou o código sem executar. Por favor, me ajude, eu preciso muito desse menu funcionando nos outros browsers. Please.
  5. Olá, bom dia a todos, estou com um problema e gostaria da ajuda de vocês, o código abaixo executa perfeitamente um menu horizontal deslizante no Internet explorer 8, porém testei no mozilla e no chrome e apenas as "mãozinhas" aparecem, o conteúdo do menu não aparece de forma alguma, já pesquisei e não consegui resolver o problema. Alguma dica? Muito obrigado. <html> <body> <head> <style> body{ overflow-x:hidden; overflow-y:scroll; } A {color:Blue; font-family: Verdana, Arial, sans-serif; font-size: 14pt} :link{text-decoration: underline} :visited{text-decoration: underline} :active{color: Red; text-decoration: none} :hover{text-decoration: none; background: Yellow} </style> <FONT face=verdana size=3 color=black>Passe o mouse sobre a mão esquerda</FONT> &lt;script language="JavaScript1.2"> <!-- var goleftimage='maodireita.gif' var gorightimage='maoesquerda.gif' var menuwidth=700 var scrollspeed=6 var menucontents='<nobr><a href="http://www.google.com.br">menu 1</a> | <a href="http://www.google.com.br">menu 2</a> | <a href="http://www.google.com.br" target="_new">menu 3</a> | <a href="http://www.google.com.br" target="_new">menu 4</a> | <a href="http://www.google.com.br" target="_new">menu 5</a> | <a href="http://www.google.com.br" target="_new">menu 6</a> | <a href="http://www.google.com.br">menu 7</a> | <a href="http://www.google.com.br">menu 8</a> | <a href="http://www.google.com.br" target="_new">menu 9</a> | <a href="http://www.google.com.br" target="_new">menu 10</a> | <a href="http://www.google.com.br" target="_new">menu 11</a> | <a href="http://www.google.com.br" target="_new">menu 12</a> | <a href="http://www.google.com.br">menu 13</a> | <a href="http://www.google.com.br">menu 14</a> | <a href="http://www.google.com.br" target="_new">menu 15</a> | <a href="http://www.google.com.br" target="_new">menu 16</a></nobr>' var actualwidth='' var ns_scroll function fillup(){ if (document.all||document.getElementById){ test2.innerHTML=menucontents actualwidth=test2.offsetWidth } else if (document.layers){ ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2 ns_scroll.document.write(menucontents) ns_scroll.document.close() actualwidth=ns_scroll.document.width } } window.onload=fillup function moveleft(){ if (document.all&&test2.style.pixelLeft>(menuwidth-actualwidth)) test2.style.pixelLeft-=scrollspeed else if (document.getElementById&&test2.style.pixelLeft>(menuwidth-actualwidth)) test2.style.pixelLeft-=scrollspeed else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth)) ns_scroll.left-=scrollspeed lefttime=setTimeout("moveleft()",50) } function moveright(){ if (document.all&&test2.style.pixelLeft<0) test2.style.pixelLeft+=scrollspeed else if (document.getElementById&&test2.style.pixelLeft<0) test2.style.pixelLeft+=scrollspeed else if (document.layers&&ns_scroll.left<0) ns_scroll.left+=scrollspeed righttime=setTimeout("moveright()",50) } if (document.all||document.getElementById||document.layers){ with (document){ write('<table border="0" cellspacing="0" cellpadding="0">') write('<td valign="middle"><a href=#" onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"><img src="'+goleftimage+'"border=0 width=30></a>&nbsp;</td>') write('<td valign="top">') if (document.all||document.getElementById){ write('<span style="position:relative;width:'+menuwidth+';">') write('<span style="position:absolute;width:'+menuwidth+';clip:rect(0 '+menuwidth+' auto 0)">') write('<span id="test2" style="position:absolute;left:0;top:0">') write('</span></span></span>') } else if (document.layers){ write('<ilayer width='+menuwidth+' name="ns_scrollmenu">') write('<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>') } write('</td>') write('<td valign="middle">&nbsp;<a href="#" onMouseover="moveright()" onMouseout="clearTimeout(righttime)">') write('<img src="'+gorightimage+'" border=0 width=30></a>') write('</td></table>') } } //--> </script> </BODY> </HTML>
  6. Olá a todos, boa noite, possuo um código javascript que funciona perfeitamente no IE, porém não funciona no mozila e nem no chrome, abaixo segue o código da página html, alguém sabe o porque dele não funcionar??? Obrigado &lt;script type="text/javascript"> var aankleur = "#A93D3D" var uitkleur = "#480808" var nbr=23; function aan(m){ if(document.all){ m.filters.revealTrans.Transition=nbr m.filters[0].Apply() m.style.backgroundColor=aankleur m.filters[0].Play() }} function uit(m){ if(document.all){ m.filters.revealTrans.Transition=nbr m.filters[0].Apply() m.style.backgroundColor=uitkleur m.filters[0].Play() }} </script> <style type="text/css"> td.menu { background-color: #ffffff; filter: revealtrans(duration=0.3,transition=0); color: #ffffff; font: 12px tahoma; width: 110px; text-align: center; cursor: hand; } </style> <base target="_blank"> <table style="background-color: #000000" border="1" bordercolor="#CE1010" cellspacing="4"> <tr> <td class="menu" style="background-color: #000000; color: #800000; cursor: default" bordercolor="#CAB456"><b> <font color="#CAB456" face="Tahoma">Menu</font></b></td> </tr> <tr> <a href="http://www.ENDEREÇO DA PAGINA" style="text-decoration: none"> <td class="menu" onmouseover="aan(this)" onmouseout="uit(this)" style="background-color: #000000" bordercolor="#CAB456"> <font face="Tahoma" color="#CAB456">Link 1</font></td></a> </tr> <tr> <a href="http://www.ENDEREÇO DA PAGINA" style="text-decoration: none"> <td class="menu" onmouseover="aan(this)" onmouseout="uit(this)" style="background-color: #000000" bordercolor="#CAB456"> <font face="Tahoma" color="#CAB456">Link 2</font></td></a> </tr> <tr> <a href="http://www.ENDEREÇO DA PAGINA" style="text-decoration: none"> <td class="menu" onmouseover="aan(this)" onmouseout="uit(this)" style="background-color: #000000" bordercolor="#CAB456"> <font face="Tahoma" color="#CAB456">Link 3</font></td></a> </tr> <tr> <a href="http://www.ENDEREÇO DA PAGINA" style="text-decoration: none"> <td class="menu" onmouseover="aan(this)" onmouseout="uit(this)" style="background-color: #000000" bordercolor="#CAB456"> <font face="Tahoma" color="#CAB456">Link 4</font></td></a> </tr> <tr> <a href="http://www.ENDEREÇO DA PAGINA" style="text-decoration: none"> <td class="menu" onmouseover="aan(this)" onmouseout="uit(this)" style="background-color: #000000" bordercolor="#CAB456"> <font face="Tahoma" color="#CAB456">Link 5</font></td></a> </tr> <tr> <a href="http://www.ENDEREÇO DA PAGINA" style="text-decoration: none"> <td class="menu" onmouseover="aan(this)" onmouseout="uit(this)" style="background-color: #000000" bordercolor="#CAB456"> <font face="Tahoma" color="#CAB456">Link 6</font></td></a> </tr> </table>
×
×
  • Criar Novo...