- Fórum WMO
- → Naruto's Content
Naruto's Content
There have been 57 items by Naruto (Search limited from 30/03/2023)
#737708 Pegando Usuários Online, Como?!
Posted by Naruto on 06/05/2006, 20:49 in PHP
a cituação é essa:
em uma tabela de usuários, tenho um campo chamado `horaEntrada` INT onde é inserido a hora com o com comanto unis_timestamp(). E isso não pode ser mudado, pois é programaram assim e se eu colokar o campo INT como timestamp alguams coisas naum funcionam.
E preciso pegar os usuários online =/ e o tempo de "expiração dos usuários" é de 15minutos
usei a seguinte query mas non deu muito certo:
"SELECT * FROM `usuarios` WHERE (time() - (`horaEntrada`+60*15)) >= 0)"
alguem pode me dizer qual a maneira correta de se escrever essa query? xD
#715698 Ajuda Com If!
Posted by Naruto on 07/03/2006, 22:55 in PHP
To fazendo da seguinte maneira mas não ta dando muito certo, vejam:
$rs = mysql_query("SELECT * FROM `usuarios` WHERE `id`= '1'",$db); if($rs) { resultados aqui }
só que mesmo se não obtem nenhum resultado, o código continua à aparecer.. alguem poderia me ajudar nissu?!
#681364 Como Fazer Um Div Voltar Pra Baixo De Todos ?
Posted by Naruto on 30/12/2005, 18:22 in CSS & Semântica (Tableless)
DIV1 DIV2
---DIV3---
quero que o DIV1 fique do lado do DIV2 mas e o DIV3 embaixo dos 2. Pra fazer um ficar do lado do outro beleza, usei float:left no DIV1 e DIV2
porém quando coloko o DIV3 ele fica do lado do DIV2... como eu resolvo isso?!
#717973 Como Fazer Um Script Igual à Resposta Rápida
Posted by Naruto on 13/03/2006, 14:15 in HTML, CSS e Metodologias
#659027 Problemas Com Lista No Ie =/
Posted by Naruto on 08/11/2005, 11:41 in CSS & Semântica (Tableless)
NO FIREFOX: tudo funcionando perfeitamente conforme o código foi interpretado
NO IE (): podem ver que existe um espaço na parte de cima, antes da linha, de cada link sem contar que nos lados e embaixo a cor escura ultrapasse as bordas ficando por cima delas.
O código CSS
.lista { margin: 8px; background: #FFF; border-top: 1px solid #45230A; } .lista li { border-left: 3px solid #C7AE7E; border-right: 3px solid #C7AE7E; border-bottom: 1px solid #000; } .lista a { display: block; color: #000; padding: 5px; } .lista a:hover { background: #45230A; color: #FFF; } /* Correção para IE. e IE Mac */ * html .lista { width: 98%; margin: 10px 3px 10px 3px; }
O código HTML
<ul class="lista"> <li><a href="$link">$titulo</li> <li><a href="$link">$titulo</li> <li><a href="$link">$titulo</li> <li><a href="$link">$titulo</li> </ul>
Ela tava até pior que isso mas eu consegui da uma corrigida usando akele ultimo código ali no CSS, mesmo assim num fico 100% fico desse jeito que eu descrevi =/ alguem ai sabe algum jeito de arruma isso ai ou corrigir isso direito?
#659613 Problemas Com Lista No Ie =/
Posted by Naruto on 09/11/2005, 21:37 in CSS & Semântica (Tableless)
xa eu enfia minha cabeça de baixo da terra depois dessa x_X
#692907 Como Fazer Cantos Arredondados
Posted by Naruto on 22/01/2006, 21:42 in CSS & Semântica (Tableless)
#656896 Problemas Com Html Area + Php
Posted by Naruto on 01/11/2005, 17:14 in Javascript / DOM / AJAX / ECMAScript
http://forum.wmonlin...hlite=html area
#656876 Problemas Com Html Area + Php
Posted by Naruto on 01/11/2005, 16:21 in Javascript / DOM / AJAX / ECMAScript
Como ele retorna:
Aqui vai o código da index.php teste que eu fiz pra vocês darem uma olhada:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <!-- Configure the path to the editor. We make it relative now, so that the example ZIP file will work anywhere, but please NOTE THAT it's better to have it an absolute path, such as '/htmlarea/'. --> <script type="text/javascript"> _editor_url = "htmlarea/"; _editor_lang = "en"; </script> <!-- load the main HTMLArea file, this will take care of loading the CSS and other required core scripts. --> <script type="text/javascript" src="htmlarea/htmlarea.js"></script> <!-- load the plugins --> <script type="text/javascript"> // WARNING: using this interface to load plugin // will _NOT_ work if plugins do not have the language // loaded by HTMLArea. // In other words, this function generates SCRIPT tags // that load the plugin and the language file, based on the // global variable HTMLArea.I18N.lang (defined in the lang file, // in our case "lang/en.js" loaded above). // If this lang file is not found the plugin will fail to // load correctly and nothing will work. HTMLArea.loadPlugin("TableOperations"); HTMLArea.loadPlugin("SpellChecker"); HTMLArea.loadPlugin("FullPage"); HTMLArea.loadPlugin("CSS"); HTMLArea.loadPlugin("ContextMenu"); var editor = null; function initEditor() { // create an editor for the "ta" textbox editor = new HTMLArea("teste"); // register the FullPage plugin editor.registerPlugin(FullPage); // register the SpellChecker plugin editor.registerPlugin(TableOperations); // register the SpellChecker plugin editor.registerPlugin(SpellChecker); // register the CSS plugin editor.registerPlugin(CSS, { combos : [ { label: "Syntax:", // menu text // CSS class options: { "None" : "", "Code" : "code", "String" : "string", "Comment" : "comment", "Variable name" : "variable-name", "Type" : "type", "Reference" : "reference", "Preprocessor" : "preprocessor", "Keyword" : "keyword", "Function name" : "function-name", "Html tag" : "html-tag", "Html italic" : "html-helper-italic", "Warning" : "warning", "Html bold" : "html-helper-bold" }, context: "pre" }, { label: "Info:", options: { "None" : "", "Quote" : "quote", "Highlight" : "highlight", "Deprecated" : "deprecated" } } ] }); // add a contextual menu editor.registerPlugin("ContextMenu"); // load the stylesheet used by our CSS plugin configuration editor.config.pageStyle = "@import url(custom.css);"; setTimeout(function() { editor.generate(); }, 500); return false; } function insertHTML() { var html = prompt("Enter some HTML code here"); if (html) { editor.insertHTML(html); } } function highlight() { editor.surroundHTML('<span style="background-color: yellow">', '</span>'); } </script> </head> <body onLoad="initEditor()"> <form action="index.php?a=postar" id="edit" name="edit" method="post"> <p> <textarea name="teste" cols="50" rows="10" id="teste"></textarea> </p> <p> <label> <input type="submit" name="Submit" value="Enviar" /> </label> </p> </form> <? if ($a == "postar"){ echo $_POST["teste"]; } ?> </body> </html>
#655927 Como Saber Se Meu Host Tem Suporte à Biblioteca Gd
Posted by Naruto on 29/10/2005, 22:10 in PHP
#772642 Orientação à Objeto, Aonde Posso Aprender? ;__;
Posted by Naruto on 15/08/2006, 20:19 in PHP
alguém poderia me da uma ajuda ae.. sei lah fazer um exemplo bem besta pra eu tentar aprender sobre orientação a objeto?!
#741014 Comando Para Atrasar Fechamendo De Um Span
Posted by Naruto on 18/05/2006, 10:53 in CSS & Semântica (Tableless)
CSS:
#bbcode .botoes a span {
display: none;
}
#bbcode .botoes a:hover span {
display: block;
border: 1px solid #000;
background: #FFF;
padding: 3px;
width: 200px;
margin-left: -1px;
}
HTML:
<a><img src="imagens/icones/forecolor.gif" /><span>SPAN ESCONDIDO AQUI</span></a>
Só que quando executo ta tudo blz.. mas quando vou colocar o mouse emcima do span ele desabarece antes... alguem poderia me dizer qual é aquele código CSS que atrasa o SPAN alguns segundos antes dele se fechar?
#741811 Comando Para Atrasar Fechamendo De Um Span
Posted by Naruto on 20/05/2006, 18:10 in CSS & Semântica (Tableless)
#690885 Tem Como Muda A Borda De Um <select>?
Posted by Naruto on 18/01/2006, 19:47 in CSS & Semântica (Tableless)
pq tipo eu mudo aki no CSS e continua akela mesma cor.... xDD
#656947 Problemas Com Html Area + Php
Posted by Naruto on 01/11/2005, 20:43 in PHP
Como ele retorna:
Aqui vai o código da index.php teste que eu fiz pra vocês darem uma olhada:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <!-- Configure the path to the editor. We make it relative now, so that the example ZIP file will work anywhere, but please NOTE THAT it's better to have it an absolute path, such as '/htmlarea/'. --> <script type="text/javascript"> _editor_url = "htmlarea/"; _editor_lang = "en"; </script> <!-- load the main HTMLArea file, this will take care of loading the CSS and other required core scripts. --> <script type="text/javascript" src="htmlarea/htmlarea.js"></script> <!-- load the plugins --> <script type="text/javascript"> // WARNING: using this interface to load plugin // will _NOT_ work if plugins do not have the language // loaded by HTMLArea. // In other words, this function generates SCRIPT tags // that load the plugin and the language file, based on the // global variable HTMLArea.I18N.lang (defined in the lang file, // in our case "lang/en.js" loaded above). // If this lang file is not found the plugin will fail to // load correctly and nothing will work. HTMLArea.loadPlugin("TableOperations"); HTMLArea.loadPlugin("SpellChecker"); HTMLArea.loadPlugin("FullPage"); HTMLArea.loadPlugin("CSS"); HTMLArea.loadPlugin("ContextMenu"); var editor = null; function initEditor() { // create an editor for the "ta" textbox editor = new HTMLArea("teste"); // register the FullPage plugin editor.registerPlugin(FullPage); // register the SpellChecker plugin editor.registerPlugin(TableOperations); // register the SpellChecker plugin editor.registerPlugin(SpellChecker); // register the CSS plugin editor.registerPlugin(CSS, { combos : [ { label: "Syntax:", // menu text // CSS class options: { "None" : "", "Code" : "code", "String" : "string", "Comment" : "comment", "Variable name" : "variable-name", "Type" : "type", "Reference" : "reference", "Preprocessor" : "preprocessor", "Keyword" : "keyword", "Function name" : "function-name", "Html tag" : "html-tag", "Html italic" : "html-helper-italic", "Warning" : "warning", "Html bold" : "html-helper-bold" }, context: "pre" }, { label: "Info:", options: { "None" : "", "Quote" : "quote", "Highlight" : "highlight", "Deprecated" : "deprecated" } } ] }); // add a contextual menu editor.registerPlugin("ContextMenu"); // load the stylesheet used by our CSS plugin configuration editor.config.pageStyle = "@import url(custom.css);"; setTimeout(function() { editor.generate(); }, 500); return false; } function insertHTML() { var html = prompt("Enter some HTML code here"); if (html) { editor.insertHTML(html); } } function highlight() { editor.surroundHTML('<span style="background-color: yellow">', '</span>'); } </script> </head> <body onLoad="initEditor()"> <form action="index.php?a=postar" id="edit" name="edit" method="post"> <p> <textarea name="teste" cols="50" rows="10" id="teste"></textarea> </p> <p> <label> <input type="submit" name="Submit" value="Enviar" /> </label> </p> </form> <? if ($a == "postar"){ echo $_POST["teste"]; } ?> </body> </html>
PS: ao moderador que moveu meu tópico:
Existem uns 10 tópicos relacionados à HTML Área na seção PHP que não foram movidos. Então acho que também tenho direito de tirar uma duvida de um script que eu to tentando interagr com o PHP aqui também
http://forum.wmonlin...hlite=html area
pra você ver como não estou mentindo!
#744681 Como Descobrir A Largura De Uma Imagem No Meio De Um Texto?!
Posted by Naruto on 29/05/2006, 19:27 in PHP
$tetxo = "texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto <img src=\"http://www.site.com.br/imagem.jpg\" /> o texto texto texto texto texto texto texto texto texto texto texto texto to texto texto texto texto texto texto texto texto texto texto texto texto to texto texto texto texto texto texto texto texto texto texto texto texto";
como eu faria pra descobrir a resolução da imagem que está nesse texto?!
#740908 [bbcode] Esquema De Inserir Url Igual Do Invision!
Posted by Naruto on 17/05/2006, 22:48 in Javascript / DOM / AJAX / ECMAScript
Eu queria esse esquema de que quando a pessoa clique no botão Link, abra uma janela pra inserir a URL do site e depois uma outra para inserir o NOME DO SITE e por fim adicione o código pronto na textarea. Meu Website
quem puder ajuda ai eu agradeço xD
#741387 [bbcode] Esquema De Inserir Url Igual Do Invision!
Posted by Naruto on 19/05/2006, 09:52 in Javascript / DOM / AJAX / ECMAScript
- Fórum WMO
- → Naruto's Content
- Privacy Policy
- Regras ·