- Fórum WMO
- → umbu's Content
umbu's Content
There have been 85 items by umbu (Search limited from 27/04/2023)
#619601 Mover Arquivos E Pastas
Posted by umbu on 29/07/2005, 09:46 in PHP
Estou com uma duvida se algum puder me ajudar a comerçar meu script ficarei grato.
Preciso fazer um script para mover arquivos ou pastas(com todos os seus arquivos) para outra pasta.
Nao consegui usar a funcao copy para isso, seria ela mesmo? ou tem outro metodo?
#654833 Abrir Arquivo Usando Url.
Posted by umbu on 26/10/2005, 18:52 in PHP
Tenho 2 sites, e gostaria de saber se é possivel abrir um arquivo que esta em outro site pela url dele ex. http://www.site.net/page.php que esta com o CHMOD 777 e alterar este arquivo e salvar no mesmo lugar?
Att;
umbu
#622693 Como Fazer O Menu Ficar Se Alinhar Junto A Pagina
Posted by umbu on 05/08/2005, 17:48 in HTML, CSS e Metodologias
menus em div:
<DIV id=div_hospedagem onmouseover="over('hospedagem');" style="VISIBILITY: <? echo"hidden"; ?>; POSITION: absolute; TOP: 58px;" onmouseout="out('hospedagem');"><IMG id=hospedagem height=0 width=0> <table width="126" border="0" cellpadding="0" cellspacing="0" style="MARGIN-LEFT: 243px; background:#D8E2E7; border-left:#8FA3AE 1px solid; border-right:#8FA3AE 1px solid; border-bottom:#8FA3AE 1px solid; border-top:#FFFFFF 2px solid;"> <tr> <td height="18" noWrap style="background:#D8E2E7; border-bottom:#FFFFFF 1px solid;" scope="col" onMouseOver='this.style.backgroundColor=0xB0C1C8' onMouseOut='this.style.backgroundColor=0xD8E2E7'><div align="left" class="texto_menu"><a href="index.php?pagina=Planos.Hospedagem">Planos Hospedagem</a></div></td> </tr> <tr> <td height="18" style="background:#D8E2E7; border-bottom:#FFFFFF 1px solid;" onMouseOver='this.style.backgroundColor=0xB0C1C8' onMouseOut='this.style.backgroundColor=0xD8E2E7'><div align="left" class="texto_menu">Planos Streaming</div></td> </tr> <tr> <td height="18" style="background:#D8E2E7; border-bottom:#FFFFFF 1px solid;" onMouseOver='this.style.backgroundColor=0xB0C1C8' onMouseOut='this.style.backgroundColor=0xD8E2E7'><div align="left" class="texto_menu"><a href="http://www.lwh.com.br:2082" target="_blank">Acessar cPanel</a></div></td> </tr> <tr> <td height="18" style="background:#D8E2E7; border-bottom:#FFFFFF 1px solid;" onMouseOver='this.style.backgroundColor=0xB0C1C8' onMouseOut='this.style.backgroundColor=0xD8E2E7'><div align="left" class="texto_menu"><a href="http://www.lwh.com.br/helpcenter/cgi-bin/pdesk.cgi" target="_blank">Acessar Suporte</a></div></td> </tr> <tr> <td height="18" style="background:#D8E2E7; border-bottom:#FFFFFF 1px solid;" onMouseOver='this.style.backgroundColor=0xB0C1C8' onMouseOut='this.style.backgroundColor=0xD8E2E7'><div align="left" class="texto_menu">Tutoriais</div></td> </tr> </table> </DIV>
code JS do menu:
tms=new Array() //Mostra o submenu no mouseover function over(topicImage){ if(typeof(tms[topicImage])!="undefined") clearTimeout(tms[topicImage]) var obj=document.getElementById(topicImage); document.getElementById('div_'+topicImage).style.left = obj.offsetLeft; //findPosX(obj); document.getElementById('div_'+ topicImage).style.visibility="visible" } //Esconde o submenu no mouseout function out(topicImage){ tms[topicImage]=setTimeout('document.getElementById("div_'+ topicImage + '").style.visibility="hidden"',0) } //Troca a cor dos links do menu function troca(topicImage){ document.getElementById(topicImage).style.color="#000000"; } function destroca(topicImage){ document.getElementById(topicImage).style.color="#ffffff"; }
Code pra chamar o menu:
onmouseover="over('hospedagem');" onmouseout="out('hospedagem');"
É isso ai tem um site com esse mesmo codigo mais no dele funciona quando a page ta centralizada os menus ficam no lugar certo tbm..
Se algume conhecer um codigo melhor que resolva meu problema aceito tbm obrigado.
#622508 Como Fazer O Menu Ficar Se Alinhar Junto A Pagina
Posted by umbu on 05/08/2005, 10:12 in HTML, CSS e Metodologias
Tenho um menu dakeles q vc coloca o mouse em um link e aparece varias opcoes usando <div> so q o problema é q nunca consegui fazer ele alinhar com a pagina centralizanda quando muda a resolucao do vide de 800x600 pra outras maoires, o site fica centralizado mais o menu fica torto.
Tem jeito isso
#667878 Duvidas Com Sistema
Posted by umbu on 04/12/2005, 13:53 in PHP
Estou querendo fazer um script simples de uptime que mostra a porcentagem de tempo online de um site.
Algo como os sistema de uptime como o hypersin, websitepulse entre outros.
Gostaria de ideia para a lógica, como funcionario um sistema destes?
abraços;
umbu
#663971 Clicar Em Imagem E Aparecer Um Imput
Posted by umbu on 23/11/2005, 13:31 in Javascript / DOM / AJAX / ECMAScript
att;
umbu
#653096 Por Que Esta Substituindo As "" Por \"
Posted by umbu on 21/10/2005, 11:01 in PHP
Tenho um sistema de news e estou usando nele o WYSIWYG para PHP.
Meu problema com ele é que quando mando por email o conteudo editado por ele ele substitui as " por \" fazendo com que as formataçoes, imagens, links não funcionem...
Agora se eu postar e mandar exibir com echo fica normal, entao acho que o problema nao é do WYSIWYG para PHP e sim no código que manda por email>
Envia.php
<? //inclui a configuraçao do bd include "includes/config.php"; set_time_limit (0); // DADOS DO EMAIL $assunto = $_POST['assunto']; $mensagem = $_POST['mensagem']; // É necessário indicar que o formato do e-mail é html $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $site <$email_site>\r\n"; // É necessário indicar que o formato do e-mail é html $mensagem2 = "<html> <head> </head> <body topmargin=0 leftmargin=0> <table width=778 border=0 cellspacing=0 cellpadding=0> <tr> <td>$mensagem</td> </tr> </table> </body> </html> "; // PEGANDO TODOS OS EMAILS $Cons = mysql_query ("SELECT email FROM $tabela_emails") or die (mysql_error ()); if (mysql_num_rows ($Cons) == 0) { echo "<script> alert(\"Newsletter\\n \\nOcorreu um erro ao enviar a newsletter!\"); window.location = 'javascript:history.back(1)'; </script>"; } else { while ($x = mysql_fetch_array ($Cons)) { $e = mail ($x["email"], $assunto, $mensagem2, $headers); echo "<script> alert(\"Newsletter\\n \\nNewsletter enviada com sucesso!\"); window.location = 'index.php?area=Emails'; </script>"; } } ?>
Agora vejam como fica quando chega em meu email:
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> <table width=778 border=0 cellspacing=0 cellpadding=0> <tr> <td><P><IMG alt=\"\" hspace=0 src=\"http://forum.wmonline.com.br/html/imagens/wm_01.gif\" align=baseline border=0></P></td> </tr> </table>
Ele some com as outras tags(html, head, body) e poe a barra: src=\"www.
O que pode ser isso?
- Fórum WMO
- → umbu's Content
- Privacy Policy
- Regras ·