<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9129521942671006682</id><updated>2011-08-01T11:35:40.257-07:00</updated><category term='formatação'/><category term='Dojo'/><category term='checkbox'/><category term='select'/><category term='pop up'/><category term='widget'/><title type='text'>Exemplos Java Script e DHTML</title><subtitle type='html'>Alguns exemplos de Java Script e DHTML</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-8177054401601140617</id><published>2010-04-15T07:20:00.000-07:00</published><updated>2010-04-15T07:21:11.606-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='formatação'/><title type='text'>Formatação para telefone</title><content type='html'>&lt;pre&gt;/**-------------------------------------*&lt;br /&gt;* Formatação telefone [(99) 9999-9999] *&lt;br /&gt;* @autor: Ana Paula                    *&lt;br /&gt;* &lt; input onkeypress="javascript: return formatar(this,event);" type="text" /&gt;&lt;/pre&gt;&lt;pre&gt;* -------------------------------------*/&lt;br /&gt; function formatar(src, evt){&lt;br /&gt; evt = (evt) ? evt : window.event;&lt;br /&gt; var charCode = (evt.which) ? evt.which : evt.keyCode;&lt;br /&gt; if (charCode &amp;gt;= 48 &amp;amp;&amp;amp; charCode &amp;lt;= 56 &amp;amp;&amp;amp; src.value.length &amp;lt; 14) {&lt;br /&gt;  var i = src.value.length;&lt;br /&gt;  var texto = "";&lt;br /&gt;  if (i == 1) {&lt;br /&gt;   texto = "("+src.value;&lt;br /&gt;   } else if (i == 3) {&lt;br /&gt;    texto = src.value + ") ";&lt;br /&gt;   } else if (i == 9) {&lt;br /&gt;    texto = src.value + "-";&lt;br /&gt;   } else {&lt;br /&gt;    texto = src.value;&lt;br /&gt;   }&lt;br /&gt;   src.value = texto;&lt;br /&gt;  &lt;br /&gt;   return true;&lt;br /&gt;  }&lt;br /&gt;  return false;&lt;br /&gt;}&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-8177054401601140617?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/8177054401601140617/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=8177054401601140617' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/8177054401601140617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/8177054401601140617'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2010/04/formatacao-para-telefone.html' title='Formatação para telefone'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-6416482667731187793</id><published>2010-02-24T10:05:00.000-08:00</published><updated>2010-02-24T10:07:32.022-08:00</updated><title type='text'>Calcular tempo de execução em Java</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;pre&gt;&lt;br /&gt;# long inicio = System.currentTimeMillis();  &lt;br /&gt;# metodo();  &lt;br /&gt;# long fim  = System.currentTimeMillis();  &lt;br /&gt;# System.out.println( fim - inicio );&lt;br /&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;div class='zemanta-pixie'&gt;&lt;img src='http://img.zemanta.com/pixy.gif?x-id=45b1ab0c-8c8d-800f-a561-bccb6bb58163' alt='' class='zemanta-pixie-img'/&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-6416482667731187793?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/6416482667731187793/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=6416482667731187793' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/6416482667731187793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/6416482667731187793'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2010/02/calcular-tempo-de-execucao-em-java.html' title='Calcular tempo de execução em Java'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-5496790824208611707</id><published>2010-02-24T10:04:00.000-08:00</published><updated>2010-02-24T10:06:37.806-08:00</updated><title type='text'>Expressão regulares para validação</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;a href='http://www.mhavila.com.br/topicos/web/valform.html'&gt;http://www.mhavila.com.br/topicos/web/valform.html&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;div class='zemanta-pixie'&gt;&lt;img src='http://img.zemanta.com/pixy.gif?x-id=5003a398-91ae-8b53-b291-a3d72c7cb665' alt='' class='zemanta-pixie-img'/&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-5496790824208611707?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/5496790824208611707/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=5496790824208611707' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/5496790824208611707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/5496790824208611707'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2010/02/expressao-regulares-para-validacao.html' title='Expressão regulares para validação'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-5387130301552379934</id><published>2010-01-08T05:03:00.001-08:00</published><updated>2010-01-08T05:03:29.217-08:00</updated><title type='text'>Formatação data</title><content type='html'>&lt;code&gt;&lt;br /&gt;/**----------------------------------------------------------------------------&lt;br /&gt; * Formatação data &lt;br /&gt; * - DATA:OnKeyPress="formatar(this, '##/##/####')"&lt;br /&gt; * -----------------------------------------------------------------------------&lt;br /&gt; * */&lt;br /&gt;function formatar(src, mask,evt){&lt;br /&gt; evt = (evt) ? evt : window.event;&lt;br /&gt; var charCode = (evt.which) ? evt.which : evt.keyCode;&lt;br /&gt; var strCheck = '0123456789/';&lt;br /&gt; var key = String.fromCharCode(charCode);&lt;br /&gt; if (strCheck.indexOf(key) == -1) &lt;br /&gt;  return false; // Chave inválida&lt;br /&gt; &lt;br /&gt; var i = src.value.length;&lt;br /&gt; var saida = mask.substring(0,1);&lt;br /&gt; var texto = mask.substring(i)&lt;br /&gt; if (texto.substring(0,1) != saida)&lt;br /&gt; {&lt;br /&gt;  src.value += texto.substring(0,1);&lt;br /&gt; }&lt;br /&gt;}&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-5387130301552379934?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/5387130301552379934/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=5387130301552379934' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/5387130301552379934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/5387130301552379934'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2010/01/formatacao-data.html' title='Formatação data'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-284227875633224685</id><published>2010-01-08T05:02:00.003-08:00</published><updated>2010-01-08T05:02:43.889-08:00</updated><title type='text'>formata moeda</title><content type='html'>&lt;code&gt;// funcao que formata Moeda&lt;br /&gt;function formataMoeda(objTextBox, SeparadorMilesimo, SeparadorDecimal, e){&lt;br /&gt;    var sep = 0;&lt;br /&gt;    var key = '';&lt;br /&gt;    var i = j = 0;&lt;br /&gt;    var len = len2 = 0;&lt;br /&gt;    var strCheck = '0123456789';&lt;br /&gt;    var aux = aux2 = '';&lt;br /&gt;    var whichCode = (window.Event) ? e.which : e.keyCode;    &lt;br /&gt;    // 13=enter, 8=backspace as demais retornam 0(zero)&lt;br /&gt;    // whichCode==0 faz com que seja possivel usar todas as teclas como delete, setas, etc    &lt;br /&gt;    if ((whichCode == 13) || (whichCode == 0) || (whichCode == 8))&lt;br /&gt;     return true;&lt;br /&gt;    key = String.fromCharCode(whichCode); // Valor para o código da Chave&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    if (strCheck.indexOf(key) == -1) &lt;br /&gt;     return false; // Chave inválida&lt;br /&gt;    len = objTextBox.value.length;&lt;br /&gt;    for(i = 0; i &lt; len; i++)        if ((objTextBox.value.charAt(i) != '0') &amp;&amp; (objTextBox.value.charAt(i) != SeparadorDecimal))          break;    aux = '';    for(; i &lt; len; i++)        if (strCheck.indexOf(objTextBox.value.charAt(i))!=-1)          aux += objTextBox.value.charAt(i);    aux += key;    len = aux.length;    if (len == 0)      objTextBox.value = '';    if (len == 1)      objTextBox.value = '0'+ SeparadorDecimal + '0' + aux;    if (len == 2)      objTextBox.value = '0'+ SeparadorDecimal + aux;    if (len &gt; 2) {&lt;br /&gt;        aux2 = '';&lt;br /&gt;        for (j = 0, i = len - 3; i &gt;= 0; i--) {&lt;br /&gt;            if (j == 3) {&lt;br /&gt;                aux2 += SeparadorMilesimo;&lt;br /&gt;                j = 0;&lt;br /&gt;            }&lt;br /&gt;            aux2 += aux.charAt(i);&lt;br /&gt;            j++;&lt;br /&gt;        }&lt;br /&gt;        objTextBox.value = '';&lt;br /&gt;        len2 = aux2.length;&lt;br /&gt;        for (i = len2 - 1; i &gt;= 0; i--)&lt;br /&gt;         objTextBox.value += aux2.charAt(i);&lt;br /&gt;        objTextBox.value += SeparadorDecimal + aux.substr(len - 2, len);&lt;br /&gt;    }&lt;br /&gt;    return false;&lt;br /&gt;}&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-284227875633224685?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/284227875633224685/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=284227875633224685' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/284227875633224685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/284227875633224685'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2010/01/formata-moeda.html' title='formata moeda'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-3617182226230335448</id><published>2010-01-08T05:02:00.001-08:00</published><updated>2010-01-08T05:02:12.905-08:00</updated><title type='text'>validação de data</title><content type='html'>function ValidaData(data){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var exp = /^((((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))|(((0[1-9]|[12]\d|3[01])(0[13578]|1[02])((1[6-9]|[2-9]\d)?\d{2}))|((0[1-9]|[12]\d|30)(0[13456789]|1[012])((1[6-9]|[2-9]\d)?\d{2}))|((0[1-9]|1\d|2[0-8])02((1[6-9]|[2-9]\d)?\d{2}))|(2902((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00))))$/ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return exp.test(data)&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-3617182226230335448?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/3617182226230335448/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=3617182226230335448' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/3617182226230335448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/3617182226230335448'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2010/01/validacao-de-data.html' title='validação de data'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-6987950545323159727</id><published>2009-11-03T10:34:00.001-08:00</published><updated>2009-11-03T10:34:53.887-08:00</updated><title type='text'>removendo todos caracteres especiais</title><content type='html'>string.replace(/([^A-Za-z0-9 .,!?:...%@\n])/g, "");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-6987950545323159727?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/6987950545323159727/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=6987950545323159727' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/6987950545323159727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/6987950545323159727'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2009/11/removendo-todos-caracteres-especiais.html' title='removendo todos caracteres especiais'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-3253834714994719034</id><published>2007-07-12T06:41:00.000-07:00</published><updated>2007-07-12T06:53:01.830-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dojo'/><category scheme='http://www.blogger.com/atom/ns#' term='widget'/><title type='text'>Barra de rolagem no widget tabcontainer do Dojo Toolkit</title><content type='html'>Para aparecer barra de rolagem na área que é criada em um TabContainer basta adicionar o atributo style="overflow:auto" na tag do div do widget ContentPane.&lt;br /&gt;&lt;br /&gt;Exemplo:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt; id="mainTabContainer" dojotype="TabContainer" style="width: 100%; height: 30em;"&gt;&lt;br /&gt; &lt; style="overflow: auto;" id="tab2" dojotype="ContentPane" executescripts="true" refreshonshow="true" href="pagina1.html" label="Pagina 1"&gt;&lt; /div&gt;&lt;br /&gt; &lt; id="tab1" style="overflow: auto;" dojotype="ContentPane" executescripts="true" refreshonshow="true" href="pagina2.html" label="Pagina 2"&gt;&lt; /div&gt;&lt;br /&gt;&lt; /div&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-3253834714994719034?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/3253834714994719034/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=3253834714994719034' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/3253834714994719034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/3253834714994719034'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2007/07/barra-de-rolagem-no-widget-tabcontainer.html' title='Barra de rolagem no widget tabcontainer do Dojo Toolkit'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-4924507113335746382</id><published>2007-06-19T08:00:00.000-07:00</published><updated>2007-06-19T08:14:00.466-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='select'/><title type='text'>Desabilita select e 'seta' a seleção para primeiro item</title><content type='html'>JavaScript&lt;br /&gt;&lt;pre&gt;&lt;span style="font-size:130%;"&gt;function desabilita() {&lt;br /&gt;   f = document.forms['nomeForm'];&lt;br /&gt;   f.elements["nomeselect"].value = 0;&lt;br /&gt;   f.elements["nomeselect"].setAttribute('onfocus', 'blur()');&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;HTML&lt;br /&gt;&lt;pre&gt;&lt;span style="font-size:130%;"&gt;&lt; name="nomecheckbox" onclick="desabilita();" type="checkbox"&gt;&lt;br /&gt;&lt; name="nomeselect" class="texto"&gt;&lt;br /&gt;     &lt; value="0"&gt;--- Selecione ---&lt; /option &gt;&lt;br /&gt;     &lt; value="1"&gt;Item 1&lt; / option&gt;&lt;br /&gt;&lt; / select&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-4924507113335746382?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/4924507113335746382/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=4924507113335746382' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/4924507113335746382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/4924507113335746382'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2007/06/desabilita-select-e-seta-seleo-para.html' title='Desabilita select e &apos;seta&apos; a seleção para primeiro item'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-3968654349458176202</id><published>2007-06-19T07:54:00.000-07:00</published><updated>2007-06-19T07:57:53.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pop up'/><title type='text'>Pop Up</title><content type='html'>&lt;pre&gt;function buscaProduto(){&lt;br /&gt;    window.open("URL", "Nome Pagina", "location=no,status=yes,resizable=yes,scrollbars=yes,menubar=no,width=600,height=500,left=300,top=50");&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-3968654349458176202?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/3968654349458176202/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=3968654349458176202' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/3968654349458176202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/3968654349458176202'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2007/06/pop-up.html' title='Pop Up'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9129521942671006682.post-4538755842022165802</id><published>2007-06-19T07:34:00.000-07:00</published><updated>2007-06-19T07:51:53.498-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='checkbox'/><title type='text'>Check All or One Checkboxes</title><content type='html'>&lt;pre&gt;&lt;span style="font-size:130%;"&gt;function checkAll(){&lt;br /&gt;  var f =  document.forms['form'];&lt;br /&gt;  f.elements['check/0'].checked = f.elements['checkall'].checked;&lt;br /&gt;  f.elements['check/1'].checked = f.elements['checkall'].checked;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function checkOne(){&lt;br /&gt;  var f =  document.forms['form'];&lt;br /&gt;  var verd = true;&lt;br /&gt;  if (!f.elements['check/0'].checked){&lt;br /&gt;     verd = false;&lt;br /&gt;  }&lt;br /&gt;  if (!f.elements['check/1'].checked){&lt;br /&gt;     verd = false;&lt;br /&gt;  }&lt;br /&gt;  f.elements['checkall'].checked=verd;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;&lt;/span&gt;&lt;span class="start-tag"  style="font-size:130%;"&gt;input&lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt; type&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"checkbox" &lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt;name&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"checkall" &lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt;onclick&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"checkAll();"&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&gt;&lt;br /&gt;&lt;&lt;/span&gt;&lt;span class="start-tag"  style="font-size:130%;"&gt;input&lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt; type&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"checkbox" &lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt;value&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"1" &lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt;name&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"check/0" &lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt;onClick&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;'checkOne()'&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&gt;&lt;br /&gt;&lt;&lt;/span&gt;&lt;span class="start-tag"  style="font-size:130%;"&gt;input&lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt; type&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"checkbox" &lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt;value&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"1" &lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt;name&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;"check/1" &lt;/span&gt;&lt;span class="attribute-name"  style="font-size:130%;"&gt;onClick&lt;/span&gt;&lt;span style="font-size:130%;"&gt;=&lt;/span&gt;&lt;span class="attribute-value"  style="font-size:130%;"&gt;'checkOne()'&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9129521942671006682-4538755842022165802?l=exemplojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://exemplojs.blogspot.com/feeds/4538755842022165802/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9129521942671006682&amp;postID=4538755842022165802' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/4538755842022165802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9129521942671006682/posts/default/4538755842022165802'/><link rel='alternate' type='text/html' href='http://exemplojs.blogspot.com/2007/06/check-all-or-one-checkboxes.html' title='Check All or One Checkboxes'/><author><name>Ana Paula</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0WZEivKT9hU/Sei-KvkdrqI/AAAAAAAABUM/PFQn8Y88P2I/S220/img.jpg'/></author><thr:total>0</thr:total></entry></feed>
