<?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-6849198796618200570</id><updated>2011-11-27T15:22:32.567-08:00</updated><category term='Php'/><category term='MySql'/><category term='CSS'/><category term='Javascript'/><category term='Notas'/><category term='HTML'/><title type='text'>.CODE</title><subtitle type='html'>Codigos de programación</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6849198796618200570.post-9051347398227451729</id><published>2008-09-15T10:29:00.000-07:00</published><updated>2008-09-15T10:31:44.168-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Seleccionar el contenido de un area de texto</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img370.imageshack.us/img370/7470/seleccionartextohl8.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://img370.imageshack.us/img370/7470/seleccionartextohl8.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Este script nos sirve para seleccionar todo lo que tenemos en un area de texto.&lt;br /&gt;&lt;pre style="background: rgb(246, 248, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 32); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(0, 74, 67);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;html&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;head&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;meta&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;http-equiv&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Content-Type"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;content&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"text/html; charset=utf-8"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;title&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;Untitled Document&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;title&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;SCRIPT LANGUAGE="&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;JavaScript&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(89, 89, 121);"&gt;&amp;lt;!--&lt;/span&gt; Original&lt;span style="color: rgb(64, 96, 128);"&gt;:&lt;/span&gt; Russ &lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;NewXS3@aol&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;com&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(48, 128, 128);"&gt;--&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(89, 89, 121);"&gt;&amp;lt;!--&lt;/span&gt; Web Site&lt;span style="color: rgb(64, 96, 128);"&gt;:&lt;/span&gt; http&lt;span style="color: rgb(64, 96, 128);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(89, 89, 121);"&gt;//dblast.cjb.net --&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(89, 89, 121);"&gt;&amp;lt;!--&lt;/span&gt; Begin&lt;br /&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;function&lt;/span&gt; copyit&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;theField&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(64, 96, 128);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;var&lt;/span&gt; tempval&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;eval&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"document."&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;+&lt;/span&gt;theField&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;br /&gt;tempval&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;focus&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;br /&gt;tempval&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;select&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;br /&gt;therange&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;tempval&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;createTextRange&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;br /&gt;therange&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;execCommand&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Copy"&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(89, 89, 121);"&gt;// End --&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;script&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;head&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;body&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;form&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;name&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"it"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;div&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;align&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"center"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;input&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;onclick&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"copyit('it.select1')"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;type&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"button"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;value&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Seleccionar el texto"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;&lt;br /&gt;name&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"cpy"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;p&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;align&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"center"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;textarea&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;name&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"select1"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;rows&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"3"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;cols&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"25"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;Texto del formulario, que sera Seleccionado con JavaScript&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;textarea&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;p&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;form&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;body&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;html&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&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/6849198796618200570-9051347398227451729?l=puntocode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/9051347398227451729/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6849198796618200570&amp;postID=9051347398227451729' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/9051347398227451729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/9051347398227451729'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/2008/09/seleccionar-el-contenido-de-un-area-de.html' title='Seleccionar el contenido de un area de texto'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6849198796618200570.post-2717535103031334417</id><published>2008-09-15T10:03:00.000-07:00</published><updated>2008-09-15T10:23:00.510-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Contar la cantidad de caracteres ingresados con Javascript</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img217.imageshack.us/img217/2513/cantidaddecaractesza0.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://img217.imageshack.us/img217/2513/cantidaddecaractesza0.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Este script ques esta hecho en JavaScript, nos ayuda a poner un limite en un area de texto. Este script nos puede de ser de mucha ayuda cuando queremos limitar la cantidad de caracteres ingresados por nuestros usuarios.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Codigo Completo:&lt;/span&gt;&lt;br /&gt;&lt;pre style="background: rgb(246, 248, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 32); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;HTML&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;HEAD&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;TITLE&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;Informar cantidad de caracateres&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;TITLE&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;HEAD&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;BODY&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;div&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;align&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"center"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;strong&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;face&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Geneva, Arial, Helvetica, sans-serif"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;Cantidad de caracteres Ingresados&lt;span style="color: rgb(0, 87, 166);"&gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;strong&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;table&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;tr&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;td&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;size&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"2"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;face&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Geneva, Arial, Helvetica, sans-serif"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;textarea&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;onKeyUp&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"max(this)"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;onKeyPress&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"max(this)"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;rows&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"4"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;cols&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"35"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;&lt;br /&gt;name&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Area"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;textarea&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;br&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;id&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Digitado"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;color&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"red"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt; Caracteres digitados / Restan &lt;span style="color: rgb(0, 87, 166);"&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;id&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Restante"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;color&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"red"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;600&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;td&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;tr&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;table&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;div&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;align&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"center"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="background: rgb(246, 248, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 32); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;&amp;lt;&lt;/span&gt;SCRIPT LANGUAGE&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;javascript&lt;span style="color: rgb(48, 128, 128);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;max&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;txarea&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;{&lt;/span&gt;&lt;br /&gt;total &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 140, 0);"&gt;600&lt;/span&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;tam &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; txarea&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;value&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;length&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;str&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;str&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;str&lt;span style="color: rgb(48, 128, 128);"&gt;+&lt;/span&gt;tam&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;Digitado&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;innerHTML &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; str&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;Restante&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;innerHTML &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; total &lt;span style="color: rgb(48, 128, 128);"&gt;-&lt;/span&gt; str&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;tam &lt;span style="color: rgb(48, 128, 128);"&gt;&gt;&lt;/span&gt; total&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;{&lt;/span&gt;&lt;br /&gt;aux &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; txarea&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;value&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;txarea&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;value &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; aux&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;substring&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;,&lt;/span&gt;total&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;Digitado&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;innerHTML &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; total&lt;br /&gt;Restante&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;innerHTML &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;/&lt;/span&gt;SCRIPT&lt;span style="color: rgb(48, 128, 128);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre style="background: rgb(246, 248, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 32); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;BODY&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;HTML&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Para configurar el script debemos tomar estas dos partes:&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;&lt;pre style="background: rgb(246, 248, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 32); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;id&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Digitado"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;color&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"red"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt; Caracteres digitados / Restan &lt;span style="color: rgb(0, 87, 166);"&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;id&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"Restante"&lt;/span&gt;&lt;span style="color: rgb(71, 71, 150);"&gt; &lt;/span&gt;&lt;span style="color: rgb(7, 71, 38);"&gt;color&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;"red"&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;600&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;font&lt;/span&gt;&lt;span style="color: rgb(0, 87, 166);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Donde el &lt;span style="font-weight: bold;"&gt;600 &lt;/span&gt;lo cambiaremos por la cantidad de caracteres que queramos que acepte(&lt;span style="font-weight: bold;"&gt;esto es solo para mostrar al usuario&lt;/span&gt;)&lt;/li&gt;&lt;li&gt;&lt;br /&gt;&lt;pre style="background: rgb(246, 248, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 32); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 0, 128); font-weight: bold;"&gt;max&lt;/span&gt;&lt;span style="color: rgb(48, 128, 128);"&gt;(&lt;/span&gt;txarea&lt;span style="color: rgb(48, 128, 128);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;{&lt;/span&gt;&lt;br /&gt;  total &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 140, 0);"&gt;600&lt;/span&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;  tam &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; txarea&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;value&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;length&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;  str&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(16, 96, 182);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;  str&lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt;str&lt;span style="color: rgb(48, 128, 128);"&gt;+&lt;/span&gt;tam&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;  Digitado&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;innerHTML &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; str&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;  Restante&lt;span style="color: rgb(48, 128, 128);"&gt;.&lt;/span&gt;innerHTML &lt;span style="color: rgb(48, 128, 128);"&gt;=&lt;/span&gt; total &lt;span style="color: rgb(48, 128, 128);"&gt;-&lt;/span&gt; str&lt;span style="color: rgb(64, 96, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Aqui es donde nuestro script aceptara "X" cantidad de caracteres que queramos, solo cambia el &lt;span style="font-weight: bold;"&gt;600 &lt;/span&gt;por la cantidad que tu quieras&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6849198796618200570-2717535103031334417?l=puntocode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/2717535103031334417/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6849198796618200570&amp;postID=2717535103031334417' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/2717535103031334417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/2717535103031334417'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/2008/09/contar-la-cantidad-de-caracteres.html' title='Contar la cantidad de caracteres ingresados con Javascript'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6849198796618200570.post-3893291188464959929</id><published>2008-09-12T22:57:00.000-07:00</published><updated>2008-09-12T22:58:53.348-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql'/><category scheme='http://www.blogger.com/atom/ns#' term='Php'/><title type='text'>Agregar datos a una tabla con PHP</title><content type='html'>&lt;p&gt;El siguiente codigo que publico es para agregar datos a una tabla dentro de una base de datos Mysql, porque que seria de php sin la interaccion con una base de datos, y es que podemos crear scripts en php que no utilizen base de datos como:&lt;br /&gt;-Formulario de Contacto&lt;br /&gt;-Contador de Visitas&lt;br /&gt;-Mostrar el ip&lt;br /&gt;-etc...&lt;/p&gt; Pero lo principal o mejor dicho para aprovechar el potencial de php es basico interactuar con una base de datos y aqui les muestro el siguiente codigo que sirbe para agregar datos a una tabla.&lt;br /&gt;&lt;pre style="background: rgb(255, 255, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(166, 87, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&amp;lt;?php&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(105, 105, 105); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;// Primero comprobamos que ningún campo esté vacío y que todos los campos existan.&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;if&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;isset&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;[&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;'nombre'&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;!&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;empty&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;[&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;'domicilio'&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;isset&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;[&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;'nombre'&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;!&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;empty&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;[&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;'domicilio'&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;{&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(105, 105, 105); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;// Si entramos es que &lt;/span&gt;&lt;span style="background: rgb(128, 128, 0) none repeat scroll 0% 50%; color: rgb(255, 255, 255); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;todo se ha realizado correctamente&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$link&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;=&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(64, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;mysql_connect&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;"localhost"&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;,&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;"root"&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;,&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;""&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(105, 105, 105); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;//"localhost" = al servidor "root" = al nombre de usuario de la bd y&lt;br /&gt;//""= a contraseña de la base de datos&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(64, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;mysql_select_db&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;"bd"&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;,&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$link&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(105, 105, 105); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;//aqui seleccionamos la base de datos que en mi caso se llama "bd"&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(105, 105, 105); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;// Con esta sentencia SQL insertaremos los datos en la base de datos&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(64, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;mysql_query&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;"INSERT INTO contenido (nombre,domicilio,edad,telefono,email)&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;//lo que se encuentra entre parentecis son los campos de mi tabla&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;VALUES ('&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST[nombre]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;','&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST[domicilio]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;','&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST[edad]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;','&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST[telefono]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;',&lt;br /&gt;'&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$_POST[email]&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;')"&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;,&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$link&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(105, 105, 105); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;// Ahora comprobaremos que &lt;/span&gt;&lt;span style="background: rgb(128, 128, 0) none repeat scroll 0% 50%; color: rgb(255, 255, 255); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;todo ha ido correctamente&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$my_error&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;=&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(64, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;mysql_error&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$link&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;if&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;!&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;empty&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;(&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$my_error&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 128, 48); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;)&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;{&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;echo&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;"Ha habido un error al insertar los valores. &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;$my_error&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;"&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;}&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;else&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;{&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;echo&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;"Los datos han sido introducidos satisfactoriamente"&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;}&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;}&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;else&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;{&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;"&gt;echo&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 230); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;"Error, no ha introducido todos los datos"&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(128, 0, 128); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;}&lt;/span&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 232) none repeat scroll 0% 50%; color: rgb(166, 87, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;?&gt;&lt;/span&gt;&lt;br /&gt;?&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/6849198796618200570-3893291188464959929?l=puntocode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/3893291188464959929/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6849198796618200570&amp;postID=3893291188464959929' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/3893291188464959929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/3893291188464959929'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/2008/09/agregar-datos-una-tabla-con-php.html' title='Agregar datos a una tabla con PHP'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6849198796618200570.post-8216953239732984791</id><published>2008-09-12T22:50:00.000-07:00</published><updated>2008-09-12T22:53:01.214-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Ver Código Fuente de una Web usando Javascrtipt</title><content type='html'>Para ver el código fuente de un sitio, por ejemplo usando Firefox solo tenemos que dar Ctrl+U, pero que pasa cuando en alguna aplicación web o cualquiera sitio queremos meter un visualizador de códigos fuentes?, es decir que cualquier usuario pueda ver el código de cualquier sitio con solo poner su URL, bueno para hacer esto utilizamos Javascript.&lt;br /&gt;&lt;span id="more-6"&gt;&lt;/span&gt;&lt;p&gt;Código Javascript(que colocaremos entre las etiquetas head y /head:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#808030; '&gt;&amp;lt;&lt;/span&gt;SCRIPT LANGUAGE&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"JavaScript"&lt;/span&gt;&lt;span style='color:#808030; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#696969; '&gt;&amp;lt;!--&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; viewSource&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#800080; '&gt;{&lt;/span&gt;&lt;br /&gt;document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;getSource&lt;span style='color:#808030; '&gt;.&lt;/span&gt;view&lt;span style='color:#808030; '&gt;.&lt;/span&gt;value&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"Por favor, espere...!"&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;setTimeout&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"document.getSource.view.value='Ver origen!'"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt;&lt;span style='color:#008c00; '&gt;6000&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;window&lt;span style='color:#808030; '&gt;.&lt;/span&gt;location&lt;span style='color:#808030; '&gt;.&lt;/span&gt;href&lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;"view-source:"&lt;/span&gt; &lt;span style='color:#808030; '&gt;+&lt;/span&gt; document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;getSource&lt;span style='color:#808030; '&gt;.&lt;/span&gt;url&lt;span style='color:#808030; '&gt;.&lt;/span&gt;value&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; &lt;span style='color:#0f4d75; '&gt;false&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#696969; '&gt;//--&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#808030; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#808030; '&gt;/&lt;/span&gt;script&lt;span style='color:#808030; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Código HTML:&lt;br /&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;Escribe la direccion completa &lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;br&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#a65700; '&gt;/&gt;&lt;/span&gt;&lt;br /&gt;de la web que deseas ver su coadigo &lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;span&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;br&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#a65700; '&gt;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;form&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;name&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#274796; '&gt;getSource &lt;/span&gt;&lt;span style='color:#074726; '&gt;onSubmit&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"return viewSource();"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;input&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;name&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#074726; '&gt;url&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;type&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#074726; '&gt;text&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;class&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"Estilo4"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;value&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"http://"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;br&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;br&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;input&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;name&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#274796; '&gt;view &lt;/span&gt;&lt;span style='color:#074726; '&gt;type&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#274796; '&gt;submit &lt;/span&gt;&lt;span style='color:#074726; '&gt;value&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"Ver codigo"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;form&lt;/span&gt;&lt;span style='color:#a65700; '&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/6849198796618200570-8216953239732984791?l=puntocode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/8216953239732984791/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6849198796618200570&amp;postID=8216953239732984791' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/8216953239732984791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/8216953239732984791'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/2008/09/ver-cdigo-fuente-de-una-web-usando.html' title='Ver Código Fuente de una Web usando Javascrtipt'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6849198796618200570.post-8936110973361781004</id><published>2008-09-12T22:46:00.000-07:00</published><updated>2008-09-12T22:54:26.600-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Evitando el doble envio de un form con Javascript</title><content type='html'>&lt;p&gt;En ocaciones cuando un form se esta enviando vemos como que el navegador no hace nada y ahi vamos nosotros a darle click de nuevo, lo que ocaciona el doble envio de un form y talvez la dupicacion de datos en una base de datoas. Para evitar esto utilizaremos el siguiente script en JavaScript para evitar el doble envio.&lt;/p&gt; &lt;p&gt;El siguiente script entre las etiquetas head y /head:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre style="background: rgb(255, 255, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&amp;lt;&lt;/span&gt;script language&lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;"JavaScript"&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&gt;&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;!&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;--&lt;/span&gt; &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;var&lt;/span&gt; cuenta&lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;function&lt;/span&gt; nodoble&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt; &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;cuenta &lt;span style="color: rgb(128, 128, 48);"&gt;==&lt;/span&gt; &lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt; cuenta&lt;span style="color: rgb(128, 128, 48);"&gt;++&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;return&lt;/span&gt; &lt;span style="color: rgb(15, 77, 117);"&gt;true&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;else&lt;/span&gt; &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt; alert&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;"El formulario ya está siendo enviado, por favor aguarde un instante."&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;&lt;br /&gt;return&lt;/span&gt; &lt;span style="color: rgb(15, 77, 117);"&gt;false&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt; &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt; &lt;span style="color: rgb(105, 105, 105);"&gt;// --&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;/&lt;/span&gt;script&lt;span style="color: rgb(128, 128, 48);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;HTML:&lt;br /&gt;&lt;pre style="background: rgb(255, 255, 255) none repeat scroll 0% 50%; color: rgb(0, 0, 0); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&amp;lt;&lt;/span&gt;form method&lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;"post"&lt;/span&gt; action&lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;"proceso.php"&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&amp;lt;&lt;/span&gt;strong&lt;span style="color: rgb(128, 128, 48);"&gt;&gt;&lt;/span&gt;onSubmit&lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;"return nodoble()"&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;/&lt;/span&gt;strong&lt;span style="color: rgb(128, 128, 48);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(105, 105, 105);"&gt;&amp;lt;!--&lt;/span&gt;Aqui los campos de nuestro Form&lt;span style="color: rgb(128, 128, 48);"&gt;--&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;&gt;&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;&amp;lt;&lt;/span&gt;input value&lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;"Enviar"&lt;/span&gt; type&lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;"submit"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt; &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;/&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;&gt; &amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;/&lt;/span&gt;form&lt;span style="color: rgb(128, 128, 48);"&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/6849198796618200570-8936110973361781004?l=puntocode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/8936110973361781004/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6849198796618200570&amp;postID=8936110973361781004' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/8936110973361781004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/8936110973361781004'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/2008/09/evitando-el-doble-envio-de-un-form-con.html' title='Evitando el doble envio de un form con Javascript'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6849198796618200570.post-2454143088335123449</id><published>2008-09-12T22:40:00.000-07:00</published><updated>2008-09-12T22:43:20.664-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Utilizar diferentes colores en un select con CSS</title><content type='html'>En ocasiones cuando estamos diseñando una página web y queremos dar la opción de que cambie "X" elemento de nuestro diseño podemos poner un select común que solo contenga el nobre del color, pero porque no hacerlo dandole fondo a cada elemento del select?, esto es muy sencillo utilizando Css.&lt;br /&gt;&lt;br /&gt;Codigo CSS:&lt;br /&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;body&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;background-color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt;&lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;666666&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt;&lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;FFFFFF&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;text-align&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt;&lt;span style='color:#074726; '&gt;center&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#696969; '&gt;/*Para definir las clases se coloca un punto delante del nombre*/&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;azul &lt;span style='color:#800080; '&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;background-color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt; &lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;0000FF&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt; &lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;ffffff&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;rojo &lt;span style='color:#800080; '&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;background-color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt; &lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;FF0000&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt; &lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;ffffff&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;verde &lt;span style='color:#800080; '&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;background-color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt; &lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;009900&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt; &lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;ffffff&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;amarillo&lt;span style='color:#800080; '&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;background-color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt; &lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;FFFF00&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#bb7977; font-weight:bold; '&gt;color&lt;/span&gt;&lt;span style='color:#808030; '&gt;:&lt;/span&gt; &lt;span style='color:#008c00; '&gt;#&lt;/span&gt;&lt;span style='color:#008000; '&gt;000000&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Codigo HTML:&lt;br /&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;form&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;method&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"post"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;action&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;""&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;label&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;for&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"color"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;Selecciona tu color favorito:&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;label&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;p&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;select&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;name&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"color"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;id&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"color"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;value&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;""&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;Selecciona Uno&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;value&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"amarillo"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;class&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"amarillo"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;amarillo&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;value&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"rojo"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;class&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"rojo"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;rojo&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;value&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"verde"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;class&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"verde"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;verde&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;value&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"azul"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;class&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"azul"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;azul&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;option&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;select&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;p&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;p&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;input&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;type&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"submit"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;name&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"submit"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;id&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"submit"&lt;/span&gt;&lt;span style='color:#274796; '&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#074726; '&gt;value&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"Enviar!"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#a65700; '&gt;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;p&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;form&lt;/span&gt;&lt;span style='color:#a65700; '&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/6849198796618200570-2454143088335123449?l=puntocode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/2454143088335123449/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6849198796618200570&amp;postID=2454143088335123449' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/2454143088335123449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/2454143088335123449'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/2008/09/utilizar-diferentes-colores-en-un.html' title='Utilizar diferentes colores en un select con CSS'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6849198796618200570.post-2198332280376926111</id><published>2008-09-12T22:36:00.000-07:00</published><updated>2008-09-12T22:40:08.107-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>Centrar una pagina con CSS</title><content type='html'>En ocaciones cuando estamos diseñando una web y queremos centrarla de forma sencilla, la mejor opción es utilizar Css, por la sencilles con que se hace y la rapides, y para esto aquí les dejo el codigo Html y el CssCódigo HTML:&lt;br /&gt;Codigo HTML:&lt;br /&gt;&lt;pre style="background: rgb(0, 0, 0) none repeat scroll 0% 50%; color: rgb(209, 209, 209); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;p&lt;/span&gt; id&lt;span style="color: rgb(210, 205, 134);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 196, 196);"&gt;"content"&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;p&lt;/span&gt; id&lt;span style="color: rgb(210, 205, 134);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 196, 196);"&gt;"cabecera"&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;h2&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&gt;&lt;/span&gt;Esto es una prueba&lt;span style="color: rgb(255, 137, 6);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;h2&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;p&lt;/span&gt; id&lt;span style="color: rgb(210, 205, 134);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 196, 196);"&gt;"contenido"&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;center&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&gt;&lt;/span&gt;Resultado Final&lt;span style="color: rgb(255, 137, 6);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;center&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;p&lt;/span&gt;&lt;span style="color: rgb(255, 137, 6);"&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Codigo CSS:&lt;br /&gt;&lt;pre style="background: rgb(0, 0, 0) none repeat scroll 0% 50%; color: rgb(209, 209, 209); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&amp;lt;&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;style&lt;/span&gt; type="&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;text&lt;/span&gt;/css"&lt;span style="color: rgb(210, 205, 134);"&gt;&gt;&lt;/span&gt; &lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;body&lt;/span&gt; &lt;span style="color: rgb(176, 96, 176);"&gt;{&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;margin&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;padding&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;text-align&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;center&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(176, 96, 176);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;#&lt;/span&gt;content &lt;span style="color: rgb(176, 96, 176);"&gt;{&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;text-align&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;left&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;margin&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;auto&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;background-color&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;#&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;ff0&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;width&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;800&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;height&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;800&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(176, 96, 176);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;#&lt;/span&gt;cabecera &lt;span style="color: rgb(176, 96, 176);"&gt;{&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;width&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt; &lt;span style="color: rgb(0, 168, 0);"&gt;800&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;height&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;100&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;background-color&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;blue&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(176, 96, 176);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;#&lt;/span&gt;menu &lt;span style="color: rgb(176, 96, 176);"&gt;{&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;width&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;150&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;height&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;650&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;float&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;left&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;background-color&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;#&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;888&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(176, 96, 176);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;#&lt;/span&gt;contenido &lt;span style="color: rgb(176, 96, 176);"&gt;{&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;width&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;650&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;height&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;650&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;float&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;left&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;background-color&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;#&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;ccc&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(176, 96, 176);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;#&lt;/span&gt;pie &lt;span style="color: rgb(176, 96, 176);"&gt;{&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;clear&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;both&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;width&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;800&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;height&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;50&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;px&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(144, 64, 80);"&gt;background-color&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;#&lt;/span&gt;&lt;span style="color: rgb(0, 168, 0);"&gt;0f0&lt;/span&gt;&lt;span style="color: rgb(176, 96, 176);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(176, 96, 176);"&gt;}&lt;/span&gt;&lt;br /&gt;&amp;lt;/&lt;span style="color: rgb(230, 97, 112); font-weight: bold;"&gt;style&lt;/span&gt;&lt;span style="color: rgb(210, 205, 134);"&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/6849198796618200570-2198332280376926111?l=puntocode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/2198332280376926111/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6849198796618200570&amp;postID=2198332280376926111' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/2198332280376926111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/2198332280376926111'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/2008/09/centrar-una-pagina-con-css.html' title='Centrar una pagina con CSS'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6849198796618200570.post-3413416601966107774</id><published>2008-09-12T22:31:00.001-07:00</published><updated>2008-09-12T22:32:15.483-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Notas'/><title type='text'>Bienvenidos</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt;Bienvenidos a mi blog &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic; font-family: trebuchet ms;"&gt;puntocode &lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;donde encontraras codigos de programacion que e realizado y otros que me e encontrado por este facinante mundo de la web&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6849198796618200570-3413416601966107774?l=puntocode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://puntocode.blogspot.com/feeds/3413416601966107774/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6849198796618200570&amp;postID=3413416601966107774' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/3413416601966107774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6849198796618200570/posts/default/3413416601966107774'/><link rel='alternate' type='text/html' href='http://puntocode.blogspot.com/2008/09/bienvenidos.html' title='Bienvenidos'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
