<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sentido Web &#187; Javascript</title>
	<atom:link href="http://sentidoweb.com/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://sentidoweb.com</link>
	<description>Desarrollo web, HTML, CSS, Javascript, PHP, MySQL</description>
	<lastBuildDate>Mon, 16 Jan 2012 10:16:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Progreso de subida de ficheros únicamente con HTML5</title>
		<link>http://sentidoweb.com/2011/11/19/progreso-de-subida-de-ficheros-unicamente-con-html5.php</link>
		<comments>http://sentidoweb.com/2011/11/19/progreso-de-subida-de-ficheros-unicamente-con-html5.php#comments</comments>
		<pubDate>Sat, 19 Nov 2011 21:03:58 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[progress]]></category>
		<category><![CDATA[subir ficheros]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2757</guid>
		<description><![CDATA[Uno de los mayores problemas con los que nos hemos encontrado a la hora de hacer aplicaciones que suben ficheros, es mostrar al usuario cuánto se ha subido y así poder saber cuánto queda. Ahora con HTML5 y XMLHttpRequest Level 2 podemos mostrarlo sin necesidad de parte del servidor. El script hace uso de Evento [...]]]></description>
			<content:encoded><![CDATA[<p>Uno de los mayores problemas con los que nos hemos encontrado a la hora de hacer aplicaciones que suben ficheros, es mostrar al usuario cuánto se ha subido y así poder saber cuánto queda. Ahora con HTML5 y XMLHttpRequest Level 2 podemos mostrarlo sin necesidad de parte del servidor.</p>
<p>El script hace uso de <a href="http://www.w3.org/TR/progress-events/">Evento de Progreso</a> de HTML5 para poder mostrar:</p>
<ul><li><strong>total</strong>: total de bytes</li>
<li><strong>loaded</strong>: bytes subidos</li>
<li><strong>lengthComputable</strong>: indica si el tamaño del fichero es conocido</li>
<li><strong>transferSpeed</strong>: velocidad de transferencia</li>
<li><strong>timeRemaining</strong>: tiempo que falta (en formato Date)</li>
</ul>
<p>Por ahora solo es compatible con Firefox, Chrome y Safari.</p>
<p>En el post lo explican con gran detalle.</p>
<p><a href="http://www.matlus.com/html5-file-upload-with-progress/">Html5 File Upload with Progress</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/11/19/progreso-de-subida-de-ficheros-unicamente-con-html5.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JSZip: crear ficheros ZIP mediante Javascript</title>
		<link>http://sentidoweb.com/2011/10/06/jszip-crear-ficheros-zip-mediante-javascript.php</link>
		<comments>http://sentidoweb.com/2011/10/06/jszip-crear-ficheros-zip-mediante-javascript.php#comments</comments>
		<pubDate>Thu, 06 Oct 2011 08:26:58 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jszip]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2750</guid>
		<description><![CDATA[Interesante librería que nos permite crear ficheros ZIP desde Javascript, con unas simples líneas de código podemos crear zips con ficheros de texto, imágenes, crear directorios&#8230; var zip = new JSZip&#40;&#41;; zip.add&#40;"Hello.txt", "Hello World\n"&#41;; img = zip.folder&#40;"images"&#41;; img.add&#40;"smile.gif", imgData, &#123;base64: true&#125;&#41;; content = zip.generate&#40;&#41;; location.href="data:application/zip;base64,"+content; El único problema que hay es a la hora de [...]]]></description>
			<content:encoded><![CDATA[<p>Interesante librería que nos permite crear ficheros ZIP desde Javascript, con unas simples líneas de código podemos crear zips con ficheros de texto, imágenes, crear directorios&#8230;</p>
<pre><code><pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> zip = <span style="color: #003366; font-weight: bold;">new</span> JSZip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
zip.<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"Hello.txt"</span>, <span style="color: #3366CC;">"Hello World<span style="color: #000099; font-weight: bold;">\n</span>"</span><span style="color: #66cc66;">&#41;</span>;
img = zip.<span style="color: #006600;">folder</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"images"</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"smile.gif"</span>, imgData, <span style="color: #66cc66;">&#123;</span>base64: <span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
content = zip.<span style="color: #006600;">generate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
location.<span style="color: #006600;">href</span>=<span style="color: #3366CC;">"data:application/zip;base64,"</span>+content;</pre></code></pre>
<p>El único problema que hay es a la hora de generar el nombre del fichero: Firefox crea un fichero con un nombre extraño y acabado en .part, Safari lo nombra &#8220;Unknown&#8221; sin extensión, Chrome &#8220;download.zip&#8221; e IE directamente ni funciona la librería.</p>
<p><a href="http://jszip.stuartk.co.uk/">JSZip</a></p>
<p>Vía / <a href="https://twitter.com/#!/devongovett/status/121656042483499008">@devongovett</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/10/06/jszip-crear-ficheros-zip-mediante-javascript.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PDF.js librería Javascript para leer PDF en Canvas</title>
		<link>http://sentidoweb.com/2011/06/15/pdf-js-libreria-javascript-para-leer-pdf-en-canvas.php</link>
		<comments>http://sentidoweb.com/2011/06/15/pdf-js-libreria-javascript-para-leer-pdf-en-canvas.php#comments</comments>
		<pubDate>Wed, 15 Jun 2011 16:48:49 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2737</guid>
		<description><![CDATA[Interesante librería Javascript que nos permite mostrar en Canvas (HTML5) el contenido de un PDF. Puede venir muy bien para aplicaciones móviles, ya que en navegación en escritorio normalmente la gente tiene instalado un visor de PDFs. &#60;html&#62; &#60;head&#62; &#60;title&#62;Simple pdf.js page viewer&#60;/title&#62; &#60;script type="text/javascript" src="pdf.js"&#62;&#60;/script&#62; &#60;style type"text/css"&#62; body { margin: 6px; padding: 0px; background-color: [...]]]></description>
			<content:encoded><![CDATA[<p>Interesante librería Javascript que nos permite mostrar en Canvas (HTML5) el contenido de un PDF. Puede venir muy bien para aplicaciones móviles, ya que en navegación en escritorio normalmente la gente tiene instalado un visor de PDFs.</p>
<pre><code><pre class="html"><span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html&gt;</span></a></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span>
  <span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>Simple pdf.js page viewer<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span>
  <span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span>
          <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"pdf.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
  <span style="color: #009900;"><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">&lt;style</span></a> <span style="color: #000066;">type</span><span style="color: #ff0000;">"text/css"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>
body {
  margin: 6px;
  padding: 0px;
  background-color: #c0bdb7;
}
#controls {
  border-bottom: 1px solid black;
  position:fixed;
  left: 0px; top: 0px;
  width: 100%;
  padding: 7px;
  background-color: rgb(242, 240, 238);
}
span#info {
  float: right;
  font: 14px sans-serif;
  margin-right: 10px;
}
#viewer {
  margin: auto;
  border: 1px solid black;
  width: 8.5in;
  height: 11in;
}
#pageNumber {
  text-align: right;
}
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style&gt;</span></span>
&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>
function queryParams() {
    var qs = window.location.search.substring(1);
    var kvs = qs.split(&quot;<span style="color: #ddbb00;">&amp;&quot;);</span>
    var params = { };
    for (var i = 0; i <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span></a> kvs.length; ++i<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        var kv = kvs<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.split<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"="</span><span style="color: #66cc66;">&#41;</span>;
        params<span style="color: #66cc66;">&#91;</span>unescape<span style="color: #66cc66;">&#40;</span>kv<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> = unescape<span style="color: #66cc66;">&#40;</span>kv<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    return params;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
var canvas, numPages, pageDisplay, pageNum;
function load<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    canvas = document.getElementById<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"canvas"</span><span style="color: #66cc66;">&#41;</span>;
    canvas.mozOpaque = true;
    pageDisplay = document.getElementById<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"pageNumber"</span><span style="color: #66cc66;">&#41;</span>;
    infoDisplay = document.getElementById<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"info"</span><span style="color: #66cc66;">&#41;</span>;
    pageNum = parseInt<span style="color: #66cc66;">&#40;</span>queryParams<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.page<span style="color: #66cc66;">&#41;</span> || <span style="color: #cc66cc;">1</span>;
    fileName = queryParams<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.file || <span style="color: #ff0000;">"compressed.tracemonkey-pldi-09.pdf"</span>;
    open<span style="color: #66cc66;">&#40;</span>fileName<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
function open<span style="color: #66cc66;">&#40;</span>url<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    document.title = url;
    req = new XMLHttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
    req.open<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"GET"</span>, url<span style="color: #66cc66;">&#41;</span>;
    req.mozResponseType = req.responseType = <span style="color: #ff0000;">"arraybuffer"</span>;
    req.expected = <span style="color: #66cc66;">&#40;</span>document.URL.indexOf<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"file:"</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> ? <span style="color: #cc66cc;">0</span> : <span style="color: #cc66cc;">200</span>;
    req.onreadystatechange = xhrstate;
    req.send<span style="color: #66cc66;">&#40;</span>null<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
function xhrstate<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    if <span style="color: #66cc66;">&#40;</span>req.readyState == <span style="color: #cc66cc;">4</span> &amp;&amp; req.status == req.expected<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        var <span style="color: #000066;">data</span> = req.mozResponseArrayBuffer ||
                   req.mozResponse ||
                   req.responseArrayBuffer ||
                   req.response;
        pdf = new PDFDoc<span style="color: #66cc66;">&#40;</span>new Stream<span style="color: #66cc66;">&#40;</span><span style="color: #000066;">data</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
        numPages = pdf.numPages;
        document.getElementById<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"numPages"</span><span style="color: #66cc66;">&#41;</span>.innerHTML = numPages.toString<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
        gotoPage<span style="color: #66cc66;">&#40;</span>pageNum<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
function displayPage<span style="color: #66cc66;">&#40;</span>num<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    pageDisplay.value = num;
&nbsp;
    var t0 = Date.now<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    var page = pdf.getPage<span style="color: #66cc66;">&#40;</span>pageNum = num<span style="color: #66cc66;">&#41;</span>;
&nbsp;
    var t1 = Date.now<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    var ctx = canvas.getContext<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"2d"</span><span style="color: #66cc66;">&#41;</span>;
    ctx.save<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
    ctx.fillStyle = <span style="color: #ff0000;">"rgb(255, 255, 255)"</span>;
    ctx.fillRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, canvas.width, canvas.height<span style="color: #66cc66;">&#41;</span>;
    ctx.restore<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    var gfx = new CanvasGraphics<span style="color: #66cc66;">&#40;</span>ctx<span style="color: #66cc66;">&#41;</span>;
&nbsp;
    // page.compile will collect all fonts <span style="color: #000066;">for</span> us, once we have loaded them
    // we can trigger the actual page rendering with page.display
    var fonts = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;
    page.compile<span style="color: #66cc66;">&#40;</span>gfx, fonts<span style="color: #66cc66;">&#41;</span>;
&nbsp;
    var t2 = Date.now<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    // This should be called when font loading is complete
    page.display<span style="color: #66cc66;">&#40;</span>gfx<span style="color: #66cc66;">&#41;</span>;
&nbsp;
    var t3 = Date.now<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    infoDisplay.innerHTML = <span style="color: #ff0000;">"Time to load/compile/render: "</span>+ <span style="color: #66cc66;">&#40;</span>t1 - t0<span style="color: #66cc66;">&#41;</span> + <span style="color: #ff0000;">"/"</span> + <span style="color: #66cc66;">&#40;</span>t2 - t1<span style="color: #66cc66;">&#41;</span> + <span style="color: #ff0000;">"/"</span> + <span style="color: #66cc66;">&#40;</span>t3 - t2<span style="color: #66cc66;">&#41;</span> + <span style="color: #ff0000;">" ms"</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
function nextPage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    if <span style="color: #66cc66;">&#40;</span>pageNum <span style="color: #000000; font-weight: bold;">&lt;</span></a> numPages<span style="color: #66cc66;">&#41;</span>
        ++pageNum;
    displayPage<span style="color: #66cc66;">&#40;</span>pageNum<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
function prevPage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    if <span style="color: #66cc66;">&#40;</span>pageNum <span style="color: #000000; font-weight: bold;">&gt;</span></a></span> 1)
        --pageNum;
    displayPage(pageNum);
}
function gotoPage(num) {
    if (0 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span></a>= num &amp;&amp; num <span style="color: #000000; font-weight: bold;">&lt;</span></a>= numPages<span style="color: #66cc66;">&#41;</span>
        pageNum = num;
    displayPage<span style="color: #66cc66;">&#40;</span>pageNum<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
  <span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span>
&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body</span></a> <span style="color: #000066;">onload</span>=<span style="color: #ff0000;">"load();"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>
  <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"controls"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/button.html"><span style="color: #000000; font-weight: bold;">&lt;button</span></a> <span style="color: #000066;">onclick</span>=<span style="color: #ff0000;">"prevPage();"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Previous<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button&gt;</span></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/button.html"><span style="color: #000000; font-weight: bold;">&lt;button</span></a> <span style="color: #000066;">onclick</span>=<span style="color: #ff0000;">"nextPage();"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Next<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button&gt;</span></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"pageNumber"</span> <span style="color: #000066;">onchange</span>=<span style="color: #ff0000;">"gotoPage(this.value);"</span>
           <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"4"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/input&gt;</span></span>
    / <span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"numPages"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>--<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"info"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
  <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"viewer"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>
    <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Canvas dimensions must be specified in CSS pixels.  CSS pixels
      -- are always 96 dpi.  These dimensions are 8.5x11in at 96dpi. --&gt;</span></span>
    <span style="color: #009900;">&lt;canvas <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"canvas"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"816"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"1056"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span></a>/canvas&gt;</span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span></pre></code></pre>
<p><a href="https://github.com/andreasgal/pdf.js">PDF.js</a></p>
<p>Vía / <a href="http://twitter.com/#!/badass_js/status/81002447287484416">@badass_js</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/06/15/pdf-js-libreria-javascript-para-leer-pdf-en-canvas.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Popcorn.js librería Javascript que permite sincronizar vídeo y contenido en HTML5</title>
		<link>http://sentidoweb.com/2011/06/08/popcorn-js-libreria-javascript-que-permite-sincronizar-video-y-contenido-en-html5.php</link>
		<comments>http://sentidoweb.com/2011/06/08/popcorn-js-libreria-javascript-que-permite-sincronizar-video-y-contenido-en-html5.php#comments</comments>
		<pubDate>Wed, 08 Jun 2011 16:25:54 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2733</guid>
		<description><![CDATA[Popcorn.js es una librería que permite sincronizar la etiqueta &#60;video&#62; de HTML5 con contenido que deseemos mostrar. Para ello utiliza las propiedades, métodos y eventos nativos de HTMLMediaElement. Además ofrece un sistema de plugins desarrollados por la comunidad: document.addEventListener&#40;"DOMContentLoaded", function &#40;&#41; &#123; // Create a popcporn instance by calling Popcorn(&#34;#id-of-my-video&#34;) var pop = Popcorn&#40;"#video"&#41;; // [...]]]></description>
			<content:encoded><![CDATA[<p>Popcorn.js es una librería que permite sincronizar la etiqueta &lt;video&gt; de HTML5 con contenido que deseemos mostrar. Para ello utiliza las propiedades, métodos y eventos nativos de HTMLMediaElement. Además ofrece un sistema de plugins desarrollados por la comunidad:</p>
<pre><code><pre class="javascript">document.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"DOMContentLoaded"</span>, <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #009900; font-style: italic;">// Create a popcporn instance by calling Popcorn(&quot;#id-of-my-video&quot;)</span>
      <span style="color: #003366; font-weight: bold;">var</span> pop = Popcorn<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#video"</span><span style="color: #66cc66;">&#41;</span>;
      <span style="color: #009900; font-style: italic;">// play the video right away</span>
      pop.<span style="color: #006600;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
      <span style="color: #009900; font-style: italic;">// add a footnote at 2 seconds</span>
        .<span style="color: #006600;">footnote</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>
          start: <span style="color: #CC0000;">2</span>,
          end: <span style="color: #CC0000;">6</span>,
          text: <span style="color: #3366CC;">"This footnote is the stepping stone of progress!"</span>,
          target: <span style="color: #3366CC;">"footnotediv"</span>
        <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>, <span style="color: #003366; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;</pre></code></pre>
<p>Podéis ver algunos <a href="http://popcornjs.org/demos">ejemplos</a> bastante interesantes. Una librería muy útil para presentaciones y vídeos corporativos.</p>
<p><a href="http://popcornjs.org/">Popcorn.js</a></p> ]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/06/08/popcorn-js-libreria-javascript-que-permite-sincronizar-video-y-contenido-en-html5.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MathJax: librería javascript para mostrar fórmulas matemáticas</title>
		<link>http://sentidoweb.com/2011/04/22/mathjax-libreria-javascript-para-mostrar-formulas-matematicas.php</link>
		<comments>http://sentidoweb.com/2011/04/22/mathjax-libreria-javascript-para-mostrar-formulas-matematicas.php#comments</comments>
		<pubDate>Fri, 22 Apr 2011 17:59:26 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[mathjax]]></category>
		<category><![CDATA[mathml]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2718</guid>
		<description><![CDATA[MathJax es una librería javascript que permite mostrar fórmulas LaTeX y MathML en nuestras páginas. Es compatible con casi todos los navegadores (menos IE5.5 lógicamente), permite copiar el código TeX y MathML de la página, utiliza fuentes CSS y no imágenes o Flash y muchas cosas más. &#60;!DOCTYPE html&#62; &#60;html&#62; &#60;head&#62; &#60;title&#62;MathJax TeX Test Page&#60;/title&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>MathJax</strong> es una librería javascript que permite mostrar fórmulas LaTeX y MathML en nuestras páginas. Es compatible con casi todos los navegadores (menos IE5.5 lógicamente), permite copiar el código TeX y MathML de la página, utiliza fuentes CSS y no imágenes o Flash y muchas cosas más.</p>
<pre><code><pre class="html"><span style="color: #00bbdd;">&lt;!DOCTYPE html&gt;</span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html&gt;</span></a></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>MathJax TeX Test Page<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/x-mathjax-config"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}});
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span>
  <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body&gt;</span></a></span>
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span></pre></code></pre>
<p><a href="http://www.mathjax.org">MathJax</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/04/22/mathjax-libreria-javascript-para-mostrar-formulas-matematicas.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Heatmap en tiempo real con Javascript y Canvas</title>
		<link>http://sentidoweb.com/2010/11/09/heatmap-en-tiempo-real-con-javascript-y-canvas.php</link>
		<comments>http://sentidoweb.com/2010/11/09/heatmap-en-tiempo-real-con-javascript-y-canvas.php#comments</comments>
		<pubDate>Tue, 09 Nov 2010 19:52:01 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[heatmap]]></category>

		<guid isPermaLink="false">http://www.webappers.com/2010/11/02/real-time-heatmap-with-javascript-html-canvas-element/</guid>
		<description><![CDATA[Los heatmaps son muy útiles para ver qué zonas de nuestras webs atraen la atención de los usuarios. Esta función de Javascript permite mostrar en tiempo real el heatmap que se va produciendo gracias a Javascript y el elemento HTML de Canvas. Real-time heatmap example with Javascript and HTMLCanvas Post originalVía / WebAppers]]></description>
			<content:encoded><![CDATA[<p>Los heatmaps son muy útiles para ver qué zonas de nuestras webs atraen la atención de los usuarios. Esta función de Javascript permite mostrar en tiempo real el heatmap que se va produciendo gracias a Javascript y el elemento HTML de Canvas.</p>
<p><img src="http://sentidoweb.com/wp-content/uploads/2010/11/heatmap.png" alt="" title="heatmap" width="299" height="294" class="center" /></p>
<p><a href="http://www.patrick-wied.at/static/heatmap/">Real-time heatmap example with Javascript and HTMLCanvas</a></p>
<p><a href="http://www.webappers.com/2010/11/02/real-time-heatmap-with-javascript-html-canvas-element/" title="Real-time Heatmap with Javascript &amp; HTML Canvas Element">Post originalVía / WebAppers</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/11/09/heatmap-en-tiempo-real-con-javascript-y-canvas.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Close Pixelate: pixela imágenes con HTML5</title>
		<link>http://sentidoweb.com/2010/10/20/close-pixelate-pixela-imagenes-con-html5.php</link>
		<comments>http://sentidoweb.com/2010/10/20/close-pixelate-pixela-imagenes-con-html5.php#comments</comments>
		<pubDate>Wed, 20 Oct 2010 17:25:18 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[imagen]]></category>
		<category><![CDATA[pixelate]]></category>

		<guid isPermaLink="false">http://www.webappers.com/2010/10/19/convert-images-into-a-pixelated-version-with-close-pixelate/</guid>
		<description><![CDATA[Close Pixelate es un script que convierte una imagen en su correspondiente pixelada haciendo uso de HTML5 y canvas. Se le pueden indicar las siguientes opciones: resolución, forma del pixelado, tamaño, desplazamiento y canal alpha Su uso es tan sencillo como ejecutar lo siguiente: var docReady = function&#40;&#41; &#123; document.getElementById&#40;'portrait-image'&#41;.closePixelate&#40;&#91; &#123; resolution : 24 &#125;, [...]]]></description>
			<content:encoded><![CDATA[<p>Close Pixelate es un script que convierte una imagen en su correspondiente pixelada haciendo uso de HTML5 y canvas. Se le pueden indicar las siguientes opciones: resolución, forma del pixelado, tamaño, desplazamiento y canal alpha</p>
<p><img src="http://sentidoweb.com/wp-content/uploads/2010/10/canvas.png" alt="" title="canvas" width="500" height="313" class="center" /></p>
<p>Su uso es tan sencillo como ejecutar lo siguiente:</p>
<pre><code><pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> docReady = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'portrait-image'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">closePixelate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span>
    <span style="color: #66cc66;">&#123;</span> resolution : <span style="color: #CC0000;">24</span> <span style="color: #66cc66;">&#125;</span>,
    <span style="color: #66cc66;">&#123;</span> shape : <span style="color: #3366CC;">'circle'</span>, resolution : <span style="color: #CC0000;">24</span>, size: <span style="color: #CC0000;">16</span>, offset: <span style="color: #CC0000;">12</span>, alpha: <span style="color: #CC0000;">0</span>.<span style="color: #CC0000;">5</span> <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>;
window.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span> <span style="color: #3366CC;">'DOMContentLoaded'</span>, docReady, <span style="color: #003366; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;</pre></code></pre>
<p><a href="http://desandro.com/resources/close-pixelate/">Close Pixelate</a></p>
<p>Vía / <a href="http://www.webappers.com/2010/10/19/convert-images-into-a-pixelated-version-with-close-pixelate/" title="Convert Images into a Pixelated Version with Close Pixelate">WebAppers</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/10/20/close-pixelate-pixela-imagenes-con-html5.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hacer un botón de &#8216;Ver código fuente&#8217;</title>
		<link>http://sentidoweb.com/2010/10/15/hacer-un-boton-de-ver-codigo-fuente.php</link>
		<comments>http://sentidoweb.com/2010/10/15/hacer-un-boton-de-ver-codigo-fuente.php#comments</comments>
		<pubDate>Fri, 15 Oct 2010 08:15:34 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[codigo fuente]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.webappers.com/2010/10/14/how-to-make-a-view-source-button-for-demo-pages/</guid>
		<description><![CDATA[Ejemplo bastante completo que nos explica cómo hacer un botón que nos permite mostrar el código fuente mediante javascript y CSS. Post original]]></description>
			<content:encoded><![CDATA[<p>Ejemplo bastante completo que nos explica cómo hacer un botón que nos permite mostrar el código fuente mediante javascript y CSS.</p>
<p><a href="http://www.webappers.com/2010/10/14/how-to-make-a-view-source-button-for-demo-pages/" title="How to Make a View Source Button for Demo Pages">Post original</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/10/15/hacer-un-boton-de-ver-codigo-fuente.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Carga asíncrona de scripts en Webkit</title>
		<link>http://sentidoweb.com/2010/09/24/carga-asincrona-de-scripts-en-webkit.php</link>
		<comments>http://sentidoweb.com/2010/09/24/carga-asincrona-de-scripts-en-webkit.php#comments</comments>
		<pubDate>Fri, 24 Sep 2010 07:48:29 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[async]]></category>
		<category><![CDATA[defer]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2604</guid>
		<description><![CDATA[Webkit está implementando en la última versión la carga de scripts de forma asíncrona, para ello hace uso de los atributos async y defer. Esta carga de scripts se realiza sin detener el renderizado del HTML y añade el evento onLoad para ejecutar un método cuando acabe de cargarse: &#60;script async src="myAsyncScript.js" onload="myInit()"&#62;&#60;/script&#62; &#60;script defer [...]]]></description>
			<content:encoded><![CDATA[<p>Webkit está implementando en la última versión la carga de scripts de forma asíncrona, para ello hace uso de los atributos <em>async</em> y <em>defer</em>. Esta carga de scripts se realiza sin detener el renderizado del HTML y añade el evento onLoad para ejecutar un método cuando acabe de cargarse:</p>
<pre><code><pre class="html"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> async <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"myAsyncScript.js"</span> <span style="color: #000066;">onload</span>=<span style="color: #ff0000;">"myInit()"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">defer</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"myDeferScript.js"</span> <span style="color: #000066;">onload</span>=<span style="color: #ff0000;">"myInit()"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></pre></code></pre>
<p>La diferencia entre async y defer es que async se ejecuta a la primera oportunidad después de que finalice la carga y antes de que se ejecute el evento load del objeto window, por lo que con bastante posibilidad el script se ejecute asíncronamente y no en el orden en el que se muestra en al página. Los scripts defer se ejecutarán en el orden en el que se indica en la página, pero empezará despues del parseo completo pero antes de que ocurra el evento DOMContentLoaded del objeto document.</p>
<p><a href="http://webkit.org/blog/1395/running-scripts-in-webkit/">Running scripts in WebKit</a></p>
<p>Vía / <a href="http://css-tricks.com/webkit-native-asynchronous-script-loading/">CSS-Tricks</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/09/24/carga-asincrona-de-scripts-en-webkit.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Añadir estilos y scripts a la administración de plugins en WordPress</title>
		<link>http://sentidoweb.com/2010/09/02/anadir-estilos-y-scripts-a-la-administracion-de-plugins-en-wordpress.php</link>
		<comments>http://sentidoweb.com/2010/09/02/anadir-estilos-y-scripts-a-la-administracion-de-plugins-en-wordpress.php#comments</comments>
		<pubDate>Thu, 02 Sep 2010 08:02:14 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2566</guid>
		<description><![CDATA[Cuando estamos desarrollando un plugin para WordPress y queremos que la administración del plugin tenga estilos y scripts propios, ya sea para darle cierta interactividad o diseño, o bien podremos incluir los estilos o librerías a pelo en la página del plugin, o bien podremos hacer que WordPress añada lo estilos y los scripts en [...]]]></description>
			<content:encoded><![CDATA[<p>Cuando estamos desarrollando un plugin para WordPress y queremos que la administración del plugin tenga estilos y scripts propios, ya sea para darle cierta interactividad o diseño, o bien podremos incluir los estilos o librerías a pelo en la página del plugin, o bien podremos hacer que WordPress añada lo estilos y los scripts en el head del HTML. Para realizar esto, deberemos utilizar las acciones <em>admin_print_styles</em> y <em>admin_print_scripts</em>:</p>
<pre><code><pre class="php">add_action<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'admin_print_styles'</span>, <span style="color: #ff0000;">'incluir_css'</span><span style="color: #66cc66;">&#41;</span>;
add_action<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'admin_print_scripts'</span>, <span style="color: #ff0000;">'incluir_script'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> incluir_css<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'&lt;link rel=&quot;stylesheet&quot; href=&quot;'</span>.get_bloginfo<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'wpurl'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">'/wp-content/plugins/miplugin/css/estilo.css&quot; /&gt;'</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> incluir_script<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'&lt;script type=&quot;text/javacript&quot; src=&quot;'</span>.get_bloginfo<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'wpurl'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">'/wp-content/plugins/miplugin/js/script.js&quot; &gt;&lt;/script&gt;'</span>;
<span style="color: #66cc66;">&#125;</span></pre></code></pre>
<p>Así de sencillo.</p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/09/02/anadir-estilos-y-scripts-a-la-administracion-de-plugins-en-wordpress.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

