<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Dimox.net - CSS, XHTML, jQuery and WordPress from Web Developer</title>
	
	<link>http://dimox.net</link>
	<description>CSS, XHTML, jQuery, WordPress</description>
	<lastBuildDate>Fri, 20 Aug 2010 16:48:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Dimox_net" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="dimox_net" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Say “Welcome back!” to Commentators on WordPress Using jQuery</title>
		<link>http://dimox.net/say-welcome-back-to-commentators-on-wordpress-using-jquery/</link>
		<comments>http://dimox.net/say-welcome-back-to-commentators-on-wordpress-using-jquery/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 11:53:18 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[comment form]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=21</guid>
		<description><![CDATA[I wrote a small jQuery script, which aims to improve the convenience of commenting on WordPress site, and I want to share it with you.

The essence of the script is as follows: it shows a welcome message for regular commentators.]]></description>
			<content:encoded><![CDATA[<p>I wrote a small jQuery script, which aims to improve the convenience of commenting on WordPress site, and I want to share it with you.</p>
<p>The essence of the script is as follows: it shows a welcome message for regular commentators.</p>
<h3>How it works</h3>
<p>It&#8217;s very simple. Script checks whether the required fields <code>Name/E-mail</code> are filled and performs the following:</p>
<ul>
<li>If a visitor of your blog at least once left a comment, next time he will see a &#8220;<strong>Welcome back, %username%!</strong>&#8221; message at the comment form.</li>
<li>The <code>Name/E-mail/URL</code> fields will hide, there will be only comment field.</li>
<li>Commentator can change his data by clicking on &#8220;Edit&#8221; link.</li>
<li>If visitor has disabled JavaScript in his browser, he will see the full comment form.</li>
</ul>
<p>For working the script it&#8217;s necessary to satisfy the two conditions:</p>
<ol>
<li>Cookies must work in visitor&#8217;s browser.</li>
<li>WordPress must remember a previously entered data in comment form.</li>
</ol>
<p>Always be sure that the second condition is satisfied, otherwise there will no sense in connecting the script. I know what some WordPress plugins can prevent to output entered data in the comment form.</p>
<h3>Examples</h3>
<ol>
<li>If you at least once left a comment on this blog, you will see &#8220;Welcome back&#8221; message near the comment form.</li>
<li>Also you can see an example on a separate page:</li>
</ol>
<div class="download">
<div class="dl">
<div class="demo"><a href="http://dimox.net/demo/welcome-back-commentator.html">View Demo</a></div>
<div class="leftFold"></div>
</div>
</div>
<h3>How to use it</h3>
<ol>
<li>
<p>Find in the <code>comments.php</code> file of your theme the code of a name, e-mail and URL fields and wrap them into the <code>&lt;div id="authorData">&lt;/div></code> container.</p>
<p>I&#8217;ll show an example with default WordPress theme.</p>
<p>Before:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;author&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;author&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo esc_attr($comment_author); ?&gt;</span></span>&quot; size=&quot;22&quot; tabindex=&quot;1&quot; <span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>$req<span style="color: #66cc66;">&#41;</span> echo <span style="color: #ff0000;">&quot;aria-required='true'&quot;</span>; ?&gt;</span> /&gt;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;author&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">small</span>&gt;</span>Name <span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>$req<span style="color: #66cc66;">&#41;</span> echo <span style="color: #ff0000;">&quot;(required)&quot;</span>; ?&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">small</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo esc_attr($comment_author_email); ?&gt;</span></span>&quot; size=&quot;22&quot; tabindex=&quot;2&quot; <span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>$req<span style="color: #66cc66;">&#41;</span> echo <span style="color: #ff0000;">&quot;aria-required='true'&quot;</span>; ?&gt;</span> /&gt;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">small</span>&gt;</span>Mail (will not be published) <span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>$req<span style="color: #66cc66;">&#41;</span> echo <span style="color: #ff0000;">&quot;(required)&quot;</span>; ?&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">small</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;url&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;url&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo esc_attr($comment_author_url); ?&gt;</span></span>&quot; size=&quot;22&quot; tabindex=&quot;3&quot; /&gt;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;url&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">small</span>&gt;</span>Website<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">small</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span></pre></div></div>

<p>After:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;authorData&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;author&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;author&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo esc_attr($comment_author); ?&gt;</span></span>&quot; size=&quot;22&quot; tabindex=&quot;1&quot; <span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>$req<span style="color: #66cc66;">&#41;</span> echo <span style="color: #ff0000;">&quot;aria-required='true'&quot;</span>; ?&gt;</span> /&gt;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;author&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">small</span>&gt;</span>Name <span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>$req<span style="color: #66cc66;">&#41;</span> echo <span style="color: #ff0000;">&quot;(required)&quot;</span>; ?&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">small</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo esc_attr($comment_author_email); ?&gt;</span></span>&quot; size=&quot;22&quot; tabindex=&quot;2&quot; <span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>$req<span style="color: #66cc66;">&#41;</span> echo <span style="color: #ff0000;">&quot;aria-required='true'&quot;</span>; ?&gt;</span> /&gt;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">small</span>&gt;</span>Mail (will not be published) <span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>$req<span style="color: #66cc66;">&#41;</span> echo <span style="color: #ff0000;">&quot;(required)&quot;</span>; ?&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">small</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;url&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;url&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo esc_attr($comment_author_url); ?&gt;</span></span>&quot; size=&quot;22&quot; tabindex=&quot;3&quot; /&gt;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;url&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">small</span>&gt;</span>Website<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">small</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

</li>
<li>
<p>Connect the following jQuery script to your site (and also don&#8217;t forget to connect the jQuery framework, if it still isn&#8217;t connected):</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #003366; font-weight: bold;">var</span> author <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#author'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> author <span style="color: #339933;">!=</span><span style="color: #3366CC;">''</span> <span style="color: #339933;">&amp;&amp;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#email'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span><span style="color: #3366CC;">''</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#authorData'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#authorData'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">before</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div id=&quot;welcome&quot;&gt;Welcome back, &lt;strong&gt;'</span> <span style="color: #339933;">+</span> author <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/strong&gt;! &lt;a href=&quot;#&quot;&gt;Edit &amp;raquo;&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#welcome a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span>
      <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#authorData'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Minimize &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
      <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#authorData'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Edit &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span></pre></div></div>

</li>
<li>That&#8217;s all.</li>
</ol>
<p>I think the commentators of you site will appreciate this feature ;0)</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/say-welcome-back-to-commentators-on-wordpress-using-jquery/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Making Pretty FeedBurner Counter With Only CSS3</title>
		<link>http://dimox.net/making-pretty-feedburner-counter-with-only-css3/</link>
		<comments>http://dimox.net/making-pretty-feedburner-counter-with-only-css3/#comments</comments>
		<pubDate>Tue, 18 May 2010 10:39:30 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[Feedburner]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=20</guid>
		<description><![CDATA[Lately I often play with CSS3, in particular with <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">border-radius</a> and <a href="http://dimox.net/cross-browser-css3-box-shadow/">box-shadow</a> properties. They allow to easily make a beautiful design of page elements like buttons, tabs etc.

As a result I have made pretty FeedBurner counter using only CSS3, and in this post I want to tell you, how to create such a counter on your site.]]></description>
			<content:encoded><![CDATA[<p>Lately I often play with CSS3, in particular with <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">border-radius</a> and <a href="http://dimox.net/cross-browser-css3-box-shadow/">box-shadow</a> properties. They allow to easily make a beautiful design of page elements like buttons, tabs etc.</p>
<p>As a result I have made pretty FeedBurner counter using only CSS3, and in this post I want to tell you, how to create such a counter on your site.</p>
<p>I made a demo with different colors of counter. Look at it.</p>
<div class="download">
<div class="dl">
<div class="demo"><a href="http://dimox.net/demo/feedburner-counter-with-only-css3.html">View Demo Online</a></div>
<div class="leftFold"></div>
</div>
</div>
<p>We will display the digits as text, therefore we&#8217;ll need a WordPress plugin, which able to do this. I very like <a href="http://devthought.com/projects/wordpress/feedburnercount/" target="_blank">FeedBurnerCount</a> plugin and I recommend to use it for our FeedBurner counter.</p>
<h3>HTML + PHP code</h3>
<p>HTML code of a counter including the PHP code of the FeedBurnerCount plugin will looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;feedcount&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;counter&quot;</span>&gt;&lt;?php echo fbc_count<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> ?&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;readers&quot;</span>&gt;</span>readers<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<h3>CSS styles</h3>
<p>Now we will design a counter using CSS. I will show an example on orange counter.</p>
<p>Main styles looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feedcount</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #933;">11px</span>/<span style="color: #933;">14px</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FC8205</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#F25805</span><span style="color: #00AA00;">;</span>
  <span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">85px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* only for IE6 and IE7 */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#readers</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#counter</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FDC077</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#F25805</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border-right-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FEE0BC</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border-bottom-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FEE0BC</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>We&#8217;ll get such a counter:</p>
<div class="caption"><img src="http://lh3.ggpht.com/_lQOZbCjTXW8/S_JgFZY3xUI/AAAAAAAAAJ0/XBYeshje2ag/feedburner-counters1.gif" width="92" height="22" alt="FeedBurner counter" class="aligncenter" />
<p>Figure 1</p>
</div>
<p>Now we add little bit of CSS3 styles to make the counter more glamorous. Firstly it&#8217;s rounded corners:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feedcount</span> <span style="color: #00AA00;">&#123;</span>
  -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
  border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Secondly it&#8217;s inner and outer shadow:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feedcount</span> <span style="color: #00AA00;">&#123;</span>
  -moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">,</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.15</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">,</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.15</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">,</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.15</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And the end result will look like:</p>
<div class="caption"><img src="http://lh6.ggpht.com/_lQOZbCjTXW8/S_Jg6e0yDNI/AAAAAAAAAJ4/d3SwpQzP7K0/feedburner-counters2.gif" width="94" height="24" alt="FeedBurner counter" class="aligncenter" />
<p>Figure 2</p>
</div>
<div class="download">
<div class="dl">
<div class="demo"><a href="http://dimox.net/demo/feedburner-counter-with-only-css3.html">View the Demo of Different Colors of FeedBurner Counter</a></div>
<div class="leftFold"></div>
</div>
</div>
<p>As you can see, it&#8217;s very easy to make sexy FeedBurner counter in any color just changing several CSS styles.</p>
<h3>What About Browsers?</h3>
<p>Of course, the shadows and rounded corners will work only in modern browsers: FireFox, Safari, Chrome, Opera. In Internet Explorer we&#8217;ll see a counter like on figure 1. One more thing &#8211; unfortunatelly, inset box-shadow not yet working in Safari.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/making-pretty-feedburner-counter-with-only-css3/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Cross Browser RGBa Support</title>
		<link>http://dimox.net/cross-browser-rgba-support/</link>
		<comments>http://dimox.net/cross-browser-rgba-support/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 19:13:26 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[RGBa]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=18</guid>
		<description><![CDATA[Yet another very nice feature, that gives to us the CSS3 specification, is the RGBa (stands for <strong>R</strong>ed <strong>G</strong>reen <strong>B</strong>lue <strong>A</strong>lpha) property. RGBa is used to create a semi-transparent background of some HTML element.

As well as other CSS3 properties, (like <a href="http://dimox.net/cross-browser-css3-box-shadow/">box-shadow</a>, <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">border-radius</a>), all the modern browsers (FireFox, Safari, Chrome, Opera) excellent supports the RGBa property, but only not Internet Explorer.

However, <strong>there is a simple way to make cross browser RGBa support</strong>, i.e. even in IE, moreover in all popular versions: IE6, IE7 and IE8.]]></description>
			<content:encoded><![CDATA[<p>Yet another very nice feature, that gives to us the CSS3 specification, is the RGBa (stands for <strong>R</strong>ed <strong>G</strong>reen <strong>B</strong>lue <strong>A</strong>lpha) property. RGBa is used to create a semi-transparent background of some HTML element.</p>
<p>Compared with the <code>opacity</code> CSS property (which also makes a translucent background), <strong>RGBa</strong> does not makes the contents of a HTML element semi-transparent.</p>
<p>As well as other CSS3 properties, (like <a href="http://dimox.net/cross-browser-css3-box-shadow/">box-shadow</a>, <a href="http://dimox.net/cross-browser-border-radius-rounded-corners/">border-radius</a>), all the modern browsers (FireFox, Safari, Chrome, Opera) excellent supports the RGBa property, but only not Internet Explorer.</p>
<p>However, <strong>there is a simple way to make cross browser RGBa support</strong>, i.e. even in IE, moreover in all popular versions: IE6, IE7 and IE8.</p>
<h3>RGBa CSS3 Definition For Modern Browsers</h3>
<p>It looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.style</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">204</span><span style="color: #00AA00;">,</span>000<span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>In this example we are using <strong>RGB</strong> format of this color: <code>#FFCC00</code>, and apply the 50% opacity.</p>
<h3>RGBa Support For Internet Explorer</h3>
<p>The following code emulates the RGBa in IE6, IE7 and IE8:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.style</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
  filter<span style="color: #00AA00;">:</span> progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.gradient<span style="color: #00AA00;">&#40;</span>startColorstr<span style="color: #00AA00;">=</span><span style="color: #cc00cc;">#7FFFCC00</span><span style="color: #00AA00;">,</span>endColorstr<span style="color: #00AA00;">=</span><span style="color: #cc00cc;">#7FFFCC00</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>RGBa represented here as a hex code and looks like <code>#AARRGGBB</code>, where the <code>AA</code> is the alpha value in hex format.</p>
<p>This code for Internet Explorer I recommend to put in a separate file and connect to the site with conditional comments.</p>
<p>A you can see, everything is simple.</p>
<p>Lastly, I want to advise you the <a href="http://kimili.com/journal/rgba-css-generator-for-internet-explorer" target="_blank">RGBa CSS Generator for Internet Explorer</a>. Enough to specify the RGBa definition in the form, and you will get IE version of RGBa.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/cross-browser-rgba-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery Comment Preview WordPress Plugin</title>
		<link>http://dimox.net/jquery-comment-preview-wordpress-plugin/</link>
		<comments>http://dimox.net/jquery-comment-preview-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 16:00:45 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[preview]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=17</guid>
		<description><![CDATA[<strong>jQuery Comment Preview WordPress Plugin</strong> allows the live comment preview without page reboot. It works on jQuery.

Requires WordPress version: <strong>2.5 or higher</strong>.

You can see an example on a current site.]]></description>
			<content:encoded><![CDATA[<p><strong>jQuery Comment Preview WordPress Plugin</strong> allows the live comment preview without page reboot. It works on jQuery.</p>
<p>Requires WordPress version: <strong>2.3 or higher</strong>.</p>
<p>You can see an example on a current site.</p>
<h3>Plugin features</h3>
<ul>
<li>Live comment preview, which does not take that extra space on the page.</li>
<li>Simple HTML-editor (instructions on using the editor are on the plugin options page).</li>
<li>You can customize comment preview block as you wish. You can display: comment author name, avatar (static or dinamic using gravatar.com), comment date and time, comment text. All this can be designed with CSS.</li>
<li>You may don&#8217;t connect plugin&#8217;s CSS file (optional) if you wish to reduce number of queries to your server.</li>
<li>Plugin&#8217;s JS and CSS files are connected only on the pages with comment form.</li>
</ul>
<h3>Download</h3>
<p><strong style="color:red">Attention:</strong> knowledge of CSS and HTML may require for using a plugin.</p>
<div class="download">
<div class="dl">
<h3><a href="http://downloads.wordpress.org/plugin/jquery-comment-preview.0.2.zip">jQuery Comment Preview WordPress Plugin</a></h3>
<p>Version: <strong>0.2</strong> / Last updated: <strong>05.02.2010</strong></p>
<div class="leftFold"></div>
</div>
</div>
<h3>Donation</h3>
<p>If you enjoy this plugin, you can thank me and leave a small donation.</p>
<p><a class="donate" href="http://dimox.net/visavi/" title="Donate" target="_blank">Donation</a></p>
<h3>Installation</h3>
<ol>
<li>Upload <code>jquery-comment-preview</code> folder to the <code>/wp-content/plugins/</code> directory.</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in admin interface of WordPress.</li>
<li>Play once with the <code>width</code> parameter of <code>#jquery-comment-wrap</code>, <code>#jquery-comment-preview</code> and <code>#comment_preview</code> identifiers (which are in the <code>jquery-comment-preview.css</code> file) to fit the width under your design.</li>
<li>If it&#8217;s necessary, you can customize options in admin interface at the <code>Options &rarr; jQuery Comment Preview</code> page.</li>
<li>If it&#8217;s necessary, you can edit other CSS styles for comment preview block in the <code>jquery-comment-preview.css</code> file.</li>
<li>That&#8217;s all.</li>
</ol>
<h3>HTML code of preview block</h3>
<p>The plugin creates the following structure of HTML code for the preview block (this may be useful in the design through CSS):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jquery-comment-wrap&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jquery-comment-preview&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;html-editor&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span>&gt;</span>button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span>&gt;</span>button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
      ...
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;preview-tab&quot;</span>&gt;</span>Preview<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">textarea</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;comment&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">textarea</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<h3>If nothing works</h3>
<ol>
<li>Make sure that you use the appropriate version of WordPress, which is required for a plugin work.</li>
<li>
<p>Make sure that the <code>header.php</code> file of your theme has the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>If not, insert it before the <code>&lt;/head&gt;</code> tag.</p>
</li>
<li>If the first 2 points are not solved the problem, give details in comments to this post.</li>
</ol>
<h3 id="versionHistory">Version history</h3>
<div id="history">
<ul>
<li><strong>Version 0.2</strong> (05.02.10):
<ul>
<li>text links in the preview now are clickable;</li>
<li>new option: &#8216;Add the target=&#8221;_blank&#8221; parameter to external links&#8217;;</li>
<li>new option: &#8216;Show button with WordPress smilies&#8217; &#8211; uses build-in WordPress smiles;</li>
<li>added French localization (thanks to <a href="http://www.wolforg.eu/" target="_blank">Wolforg</a>).</li>
</ul>
</li>
<li><strong>Version 0.1.7</strong> (03.18.10):
<ul>
<li>solved the problem, when preview did not work until the &#8220;Update Options&#8221; button not been pressed on a plugin options page;</li>
<li>jQuery 1.4.2 is now connected instead of jQuery 1.3.2.</li>
</ul>
</li>
<li><strong>Version 0.1.6</strong> (01.05.10):
<ul>
<li>solved the problem, when a tags have been inserted incorrectly in Internet Explorer when using the HTML editor;</li>
<li>adding a link now works like in WordPress HTML editor &#8211; when &#8216;link&#8217; button is clicked, there appear a window for entering a URL.</li>
</ul>
</li>
<li><strong>Version 0.1.5</strong> (12.20.09):
<ul>
<li>the design of preview panel has been changed. Now it looks like WordPress HTML editor;</li>
<li>the structure of the template of the HTML editor has been changed;</li>
<li>the script connects now to the <code>name</code> parameter of the <code>textarea</code> tag, but not to <code>id</code>;</li>
<li>solved the problem, when in some cases preview did not work;</li>
<li>the plugin&#8217;s JS and CSS files connects now in the <code>head</code> section of the page code;</li>
<li>jQuery now comes from Google.</li>
</ul>
</li>
<li><strong>Version 0.1.4</strong> (06.20.09):
<ul>
<li>added ability to indicate the value of the <code>id</code> acoderibute of the <code>textarea</code> tag;</li>
<li>added ability to insert comment date and time in preview block template;</li>
<li>added the option for displaying avatars from gravatar.com.</li>
</ul>
</li>
<li><strong>Version 0.1.3</strong> (02.07.09):
<ul>
<li>fine-tuned filters of text formacodeing in preview;</li>
<li>deleted automatic ficodeing the width of the preview panel under width of a <code>&lt;textarea&gt;</code> field, now need to change its width through CSS, for this you need to play once with the <code>width</code> parameter of <code>#jquery-comment-wrap</code> and <code>#jquery-comment-preview</code> identifiers, which are in the <code>jquery-comment-preview.css</code> file.</li>
</ul>
</li>
<li><strong>Version 0.1.2</strong> (12.19.08): the changes associated with incorrect display of the comment form in Internet Explorer on some WordPress themes.</li>
<li><strong>Version 0.1.1</strong> (12.17.08): fixed bug: the comment can not be submited.</li>
<li><strong>Version 0.1</strong> (12.16.08): the initial version.</li>
</ul>
</div>
<p><!-- #history --></p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/jquery-comment-preview-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>Simplest Universal jQuery Tabs Script</title>
		<link>http://dimox.net/simplest-universal-jquery-tabs-script/</link>
		<comments>http://dimox.net/simplest-universal-jquery-tabs-script/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 10:46:38 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tabs]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=15</guid>
		<description><![CDATA[My experience with jQuery for today is about 2 years. I began to learn this nice framework after I found somewhere in Internet a script, which lets to create a tabbed blocks.

During this 2 years I gained my experience in jQuery and <strong>created my own jQuery Tabs Script</strong> completely from scratch. And I want to share it with you in this post.]]></description>
			<content:encoded><![CDATA[<p>My experience with jQuery for today is about 2 years. I began to learn this nice framework after I found somewhere in Internet a script, which lets to create a tabbed blocks.</p>
<p>During this 2 years I gained my experience in jQuery and <strong>created my own jQuery Tabs Script</strong> completely from scratch. And I want to share it with you in this post.</p>
<p>I call it an <strong>universal</strong>, because it lets to create an unlimited number of tabbed blocks with an unlimited number of tabs, while the contents of the script remains unchanged (script size is <strong>only 0.4 kilobytes</strong>).</p>
<h3>jQuery Tabs Script code</h3>
<p>In my opinion, I&#8217;ve made a miniature and pretty jQuery script for a tabs:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ul.tabs'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'current'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">siblings</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'current'</span><span style="color: #009900;">&#41;</span>
          .<span style="color: #660066;">parents</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.section'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.box'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.box:eq('</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">150</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<h3>HTML code for the script</h3>
<p>It very similar on a structure of HTML code of another jQuery tabs solutions, which I was seen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;section&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabs&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;current&quot;</span>&gt;</span>First Tab<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Second Tab<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box visible&quot;</span>&gt;</span>
    Content of the first block
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box&quot;</span>&gt;</span>
    Content of the second block
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><span style="color: #808080; font-style: italic;">&lt;!-- .section --&gt;</span></pre></td></tr></table></div>

<h3>Requied CSS for this HTML</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.box</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.box</span><span style="color: #6666ff;">.visible</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The <code>.box</code> class hides all tabbed blocks by default, but the <code>.visible</code> shows the desired block.</p>
<div class="download">
<div class="dl">
<h3><a href="http://dimox.net/demo/simplest-universal-jquery-tabs-script.zip">Download Demo Files</a></h3>
<div class="demo"><a href="http://dimox.net/demo/simplest-universal-jquery-tabs-script/">View Demo Online</a></div>
<div class="leftFold"></div>
</div>
</div>
<p><strong>P.S.</strong>. Yes, perhaps I invented the wheel, but i get great pleasure from this process and simultaneously improve my experience in jQuery, and I don&#8217;t think this is so bad.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/simplest-universal-jquery-tabs-script/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
