- Fórum WMO
- → Dinho Z.'s Content
Dinho Z.'s Content
There have been 187 items by Dinho Z. (Search limited from 29/04/2023)
#382198 Atualizando a versão do PHP
Posted by Dinho Z. on 10/06/2004, 08:17 in Frameworks e Software relacionado a PHP
#385543 Tutorial De Camadas (divs)
Posted by Dinho Z. on 15/06/2004, 12:56 in Tutoriais e Artigos de (X)HTML e CSS
E invasoesdemaniacos, se você ler o post direito iria ver que eu expliquei o que é z-index, não era necessário perguntar de novo...
#382452 Tutorial De Camadas (divs)
Posted by Dinho Z. on 10/06/2004, 15:01 in Tutoriais e Artigos de (X)HTML e CSS
Quanto maior o número do z-index, ele fica em cima, e quanto menor, ele vai ficando embaixo...
Isto é CSS...
#383046 Tutorial De Camadas (divs)
Posted by Dinho Z. on 11/06/2004, 10:59 in Tutoriais e Artigos de (X)HTML e CSS
Se você tiver 5 elementos em uma página HTML, pode usar 0, 1, 2, 3 e 4, ou 1, 2, 3, 4, 5...
#402601 Como Converter Bytes Para Kbytes?
Posted by Dinho Z. on 12/07/2004, 10:49 in ASP
O correto seria 1024, e não 1000, e se você quer transformar de uma base menor para uma maior, por exemplo, bytes para Kbytes, use a divisão, e não multiplicação, e se quer transformar de uma maior para uma menor, aí sim usa-se a multiplicação...
#387311 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 18/06/2004, 08:18 in Sintaxe SQL
<CFPARAM name="Inicio" default="1"> <CFPARAM name="Exibir" default="5"> <cfquery name="rs" datasource="matheusreis"> SELECT * FROM REGISTRO INNER JOIN BLOG ON REGISTRO.reg_id = BLOG.reg_id ORDER BY post_id DESC </cfquery> <CFSET Final=Inicio + Exibir> <CFIF Inicio + Exibir GT rs.RecordCount> <CFSET Final=995> <CFELSE> <CFSET Final=Exibir> </CFIF> <html> <head> <title>M A T H E U S R E I S:blog --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- @import url("blog.css"); --> </style> <style type="text/css"> <!-- a:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #333333; text-decoration: none; } a:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #999999; text-decoration: underline; } a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #333333; text-decoration: none; } --> </style> <style> body{ overflow-x:hidden; } </style> </head> <body leftmargin="10" topmargin="10" marginwidth="0" marginheight="0"> <cfoutput query="rs" maxrows="5"> <cfquery name="n_coment" datasource="matheusreis"> SELECT COUNT(*) MAXIMO FROM comentario INNER JOIN blog ON comentario.post_id = blog.post_id WHERE comentario.post_id=#rs.post_id# </cfquery> <table width="590" border="1" cellspacing="0" cellpadding="0"> <tr> <td height="18" colspan="4" class="btoff"><font size="2"><strong>#rs.titulo#</strong></font></td> </tr> <tr> <td height="7"></td> <td width="2" height="7" valign="top" background="pontos_horiz.gif"><img src="trans.gif" width="2" height="2"></td> <td height="7"></td> <td height="7"></td> </tr> <tr> <td width="84" height="18" valign="top"> <div align="left"><a href="mail.cfm?userid=#rs.reg_id#"><img src="avatar/#rs.avatar#" width="70" height="70" border="0" align="top"></a><br> </div></td> <td width="2" height="18" valign="top" background="pontos_horiz.gif"><img src="trans.gif" width="2" height="2"></td> <td width="8" valign="top" class="tblmeio"> </td> <td width="516" valign="top" class="tblmeio">#replace(rs.post,Chr(13),"<br>","all")#<br> #n_coment.MAXIMO# Comentário(s) </td> </tr> <tr> <td height="3" colspan="3" align="left" valign="middle" background="pontos_horiz.gif"><img src="trans.gif" width="8" height="2"></td> <td height="3" colspan="3" align="left" valign="middle" background="pontos_horiz.gif" class="tblmeio"><img src="trans.gif" width="8" height="2"></td> </tr> <tr> <td height="19" align="left" valign="middle"> <div align="center"><a href="mail.cfm?userid=#rs.reg_id#"><strong>#rs.usuario#</strong></a></div></td> <td width="2" height="19" valign="top" background="pontos_horiz.gif"><img src="trans.gif" width="2" height="3"></td> <td width="8" valign="top" class="tblmeio"> </td> <td height="19" colspan="3" align="left" valign="middle" class="tblmeio"> <div align="right"></div> <table width="53%" height="19" border="1" align="center" cellpadding="0" cellspacing="2"> <tr> <td width="50%" class="tbldir"><div align="center"><strong><a href="coment.cfm?post=#rs.post_id#" target="load">COMENTAR</a></font></strong></strong></div> <strong></div></strong></td> <td width="50%" class="tbldir"><div align="center"><strong><a href="comentario.cfm?post=#rs.post_id#" target="load">COMENTÁRIOS</a> </strong></div></td> </tr> </table></tr> <tr> <td height="3" colspan="3" align="left" valign="middle" background="pontos_horiz.gif"><img src="trans.gif" width="8" height="2"></td> <td height="3" colspan="3" align="left" valign="middle" background="pontos_horiz.gif" class="tblmeio"><img src="trans.gif" width="8" height="2"></td> </tr> </table> <br> </cfoutput> <table width="590" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="590" align="center" valign="middle"> <cfoutput> <table width="52%" border="0" cellspacing="4" cellpadding="0"> <tr> <td width="50%" align="center" valign="middle" class="tbldir"> <CFIF Inicio NEQ 1> <CFIF Inicio GTE Exibir> <CFSET Anterior=Exibir> <CFSET AnteriorRegistro=Inicio - Exibir> <CFELSE> <CFSET Anterior=Inicio - 1> <CFSET AnteriorRegistro=1> </CFIF> <div align="center"><a href="exibepost.cfm?Inicio=#AnteriorRegistro#">#Anterior# Anteriores</a> </div> </CFIF> </td> <td width="50%" align="center" valign="middle" class="tbldir"> <CFIF Final LT rs.RecordCount> <CFIF Inicio + Exibir * 2 GTE rs.RecordCount> <CFSET Proxima=rs.RecordCount - Inicio - Exibir + 1> <CFELSE> <CFSET Proxima=Exibir> </CFIF> <div align="center"><a href="exibepost.cfm?Inicio=#Evaluate("Inicio + Exibir")#">Próximos #Proxima#</a> </div> </cfif> </td> </tr> </table></cfoutput> </td> </tr> </table> </body> </html>
#386935 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 17/06/2004, 14:59 in Sintaxe SQL
Estou começando a mexer com o Cold Fusion agora, não manjo muito, mas o seu problema era de Lógica, não de Cold, por isso consegui te ajudar...
Aonde você hospeda sua página ???
#387607 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 18/06/2004, 14:56 in Sintaxe SQL
Eu te adicionei no meu msn... dá uma olhada...
Aí eu tento te ajudar online...
#386776 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 17/06/2004, 11:14 in Sintaxe SQL
Da mesma maneira vc faz para inserir dentro do SQL...
#387524 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 18/06/2004, 13:57 in Sintaxe SQL
O SQL não tem nada a ver com o CF... Se deu erro no SQL, não é que o CF não suporta... Deve ser outra coisa...
Tente assim:
SELECT COUNT(*) AS MAXIMO FROM comentario INNER JOIN blog ON comentario.post_id = blog.post_id WHERE comentario.post_id=#rs.post_id#
#386989 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 17/06/2004, 16:19 in Sintaxe SQL
Me passa o código do seu RS para ver o que eu posso fazer... Aqui no trampo tem uns caras que manjam de CF...
#386655 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 17/06/2004, 08:04 in Sintaxe SQL
http://blog.matheusreis.com.br/coment.cfm?post=34
Este post=34 é o ID do seu post... ele tem que estar na variável...
No caso, se você fosse usar o mesmo esquema de links para chamar o seu BD, ficaria assim:
SELECT * FROM comentario INNER JOIN blog ON comentario.post_id = blog.post_id WHERE comentario.post_id= #url.post#
#385665 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 15/06/2004, 14:58 in Sintaxe SQL
SELECT * FROM comentario INNER JOIN blog ON comentario.post_id = blog.post_id WHERE comentario.post_id='VALOR_ID'
E no lugar de VALOR_ID vai o valor ou código do ID usando uma variável...
#384733 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 14/06/2004, 08:34 in Sintaxe SQL
SELECT * FROM REGISTRO INNER JOIN BLOG ON REGISTRO.reg_id = BLOG.reg_idAí é só chamar o campo NOME que está dentro da tabela REGISTRO...
#386039 Puxar Dados De Tabelas Diferentes
Posted by Dinho Z. on 16/06/2004, 08:12 in Sintaxe SQL
Ou você não sabe pegar o valor do post e por em uma variável ???
#384728 Rodar Php No Iis
Posted by Dinho Z. on 14/06/2004, 08:21 in IIS & PWS
Clique aqui e baixe o PHP Installer ou o PHP Zipado...
#441789 Arquivo Action De Um Form Em Nova Janela
Posted by Dinho Z. on 10/09/2004, 08:32 in Javascript / DOM / AJAX / ECMAScript
<form action="pag.php" method="post" target="_blank">
#433874 Alterando As Margens Da Impressão
Posted by Dinho Z. on 27/08/2004, 15:29 in HTML, CSS e Metodologias
Não tem como alterar as margens do navegador com script, mas vc pode definir por CSS, como no exemplo acima... É a única maneira...
#385535 Banner Randomico Por Flash
Posted by Dinho Z. on 15/06/2004, 12:45 in Javascript / DOM / AJAX / ECMAScript
Não sei de cabeça como ficaria a tag completa, mas faça uma busca nas seções de HTML ou de Flash de como inserir um filme flash e mude ele para o jeito que você quer...
#548431 Banner Randomico Por Flash
Posted by Dinho Z. on 07/03/2005, 11:39 in Javascript / DOM / AJAX / ECMAScript
#432956 Validação De Cnpj & Cpf
Posted by Dinho Z. on 26/08/2004, 13:17 in Javascript / DOM / AJAX / ECMAScript
Simples... a sua dúvida é de JavaScript, e estava postado em HTML...só não entendi pq o topico foi movido
#390526 Imagem Que Muda Sozinha
Posted by Dinho Z. on 23/06/2004, 17:35 in Javascript / DOM / AJAX / ECMAScript
#438148 Criar Layout ?
Posted by Dinho Z. on 03/09/2004, 18:16 in HTML, CSS e Metodologias
Imagens são editadas com programas como o Fireworks ou o PhotoShop, que são os mais usados, mas até no Paint do Windows vc pode criar ou mudar uma imagem, claro que sem os mesmos recursos que este programas oferecem...
Para baixar programas eu sempre procura em sites como o Superdownloads ou o Baixaki, ou até mesmo no Google
#437830 Criar Layout ?
Posted by Dinho Z. on 03/09/2004, 08:33 in HTML, CSS e Metodologias
Programas como o FreeHand, Fireworks, PhotoShop, Dreamweaver, Flash, entre outros, podem ser usados para se fazer Layout's...
Como você disse sobre o CSS, ele serve para definir a formatação da página...
O correto seria você montar a estrutura com o HTML, e definir cores e outros atributos que fazem parte do layout com o CSS...
Qualquer dúvida, é só postar de novo aqui...
#389901 Como Limpar Caixa De Texto
Posted by Dinho Z. on 22/06/2004, 17:08 in Javascript / DOM / AJAX / ECMAScript
if (form2.txt_fone.value == '') { alert("Favor entrar com o telefone do contato da empresa. OBRIGADO !!!"); form2.txt_fone.focus(); form2.txt_fone.value = ''; return(false); stop(); }
- Fórum WMO
- → Dinho Z.'s Content
- Privacy Policy
- Regras ·