<?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>bavotasan.com &#187; button</title>
	<atom:link href="http://bavotasan.com/tag/button/feed/" rel="self" type="application/rss+xml" />
	<link>http://bavotasan.com</link>
	<description>by c.bavota</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:42:10 +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>Creating a Scrolling Back to Top Button with jQuery</title>
		<link>http://bavotasan.com/2010/scrolling-back-to-top-button-jquery/</link>
		<comments>http://bavotasan.com/2010/scrolling-back-to-top-button-jquery/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 20:55:39 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[body]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[Click]]></category>
		<category><![CDATA[Creating]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[hundred times]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[span]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[way]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2234</guid>
		<description><![CDATA[If you take a look way, way, way down at the bottom of this page, you will see a Back to Top button that scrolls the whole page until it reaches to top. It is a pretty simple effect to add to your site and looks a hundred-times cooler than just using your typical anchor [...]]]></description>
			<content:encoded><![CDATA[<p>If you take a look way, way, way down at the bottom of this page, you will see a Back to Top button that scrolls the whole page until it reaches to top. It is a pretty simple effect to add to your site and looks a hundred-times cooler than just using your typical anchor name and link. Getting it all to work takes nothing more than a few lines of <a href="http://jquery.com/">jQuery</a> version 1.4.2.<br />
<span id="more-2234"></span><br />
First, we need to create our button/link. I am just going to use an anchor tag and some text:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;javascript:void(0)&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;backtotop&quot;</span><span style="color: #339933;">&gt;</span>Back to Top<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div>

<p>Next we need to add some <a href="http://jquery.com/">jQuery</a> between the <code>&lt;head&gt;</code> tags:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span>
jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.backtotop'</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>
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'html, body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>scrollTop<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'slow'</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: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div>

<p>Remember, you can change the speed by replacing <code>slow</code> with a numerical value. You can also add some easing effects by including the <a href="http://jqueryui.com/">jQuery UI</a>. Read more about easing effects <a href="http://jqueryui.com/demos/effect/#easing">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/scrolling-back-to-top-button-jquery/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Feed Me, Seymour 1.2</title>
		<link>http://bavotasan.com/2010/feed-me-seymour-free-wordpress-theme/</link>
		<comments>http://bavotasan.com/2010/feed-me-seymour-free-wordpress-theme/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 13:05:24 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Admin Interface]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[Click]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[engine v2]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[info]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[lot]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Whole Lot]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=279</guid>
		<description><![CDATA[I have just updated Feed Me, Seymour for WordPress 3.0 and many of its new features. I have also cleaned up the code and added the Arturo Theme Engine v2.0 so that the admin interface works a whole lot better. Version 1.2 is currently only available on this site. Just click the download button below. [...]]]></description>
			<content:encoded><![CDATA[<p>I have just updated Feed Me, Seymour for WordPress 3.0 and many of its new features. I have also cleaned up the code and added the Arturo Theme Engine v2.0 so that the admin interface works a whole lot better. Version 1.2 is currently only available on this site. Just click the download button below.<br />
<span id="more-279"></span><br />
<em>Here are some examples of different layout options.</em></p>
<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/02/feedmeseymour.jpg"><img src="http://bavotasan.com/wp-content/uploads/2009/02/feedmeseymour-200x167.jpg" alt="feedmeseymour" title="feedmeseymour" width="160" class="alignleft size-thumbnail wp-image-280" /></a><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/02/feedme2.jpg"><img src="http://bavotasan.com/wp-content/uploads/2009/02/feedme2-200x175.jpg" alt="feedme2" title="feedme2" width="160" class="alignleft size-thumbnail wp-image-702" /></a><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/02/feedme3.jpg"><img src="http://bavotasan.com/wp-content/uploads/2009/02/feedme3-200x151.jpg" alt="feedme3" title="feedme3" width="160" class="alignleft size-thumbnail wp-image-703" /></a></p>
<hr style="clear:both;border:0;">
<p>For more info go to <a href="http://themes.bavotasan.com/our-themes/basic-themes/feed-me-seymour">Themes by bavotasan.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/feed-me-seymour-free-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>92</slash:comments>
		</item>
		<item>
		<title>Issue with the User Logout Button in WordPress 2.7</title>
		<link>http://bavotasan.com/2009/issue-with-the-user-logout-button-in-wordpress-27/</link>
		<comments>http://bavotasan.com/2009/issue-with-the-user-logout-button-in-wordpress-27/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 18:19:53 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=181</guid>
		<description><![CDATA[I noticed a small issue in WordPress 2.7 when I was designing a login bar at the top of a client&#8217;s site and the logout link would not log the user out. I had coded the same way I had coded a logout button in the past, but it wouldn&#8217;t function properly. That is because [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed a small issue in WordPress 2.7 when I was designing a login bar at the top of a client&#8217;s site and the logout link would not log the user out. I had coded the same way I had coded a logout button in the past, but it wouldn&#8217;t function properly. That is because WordPress 2.7 uses a new function to log a user out.<br />
<span id="more-181"></span><br />
Here is the code I use to use:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;">&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-login.php?action=logout&quot;&gt;Logout&lt;/a&gt;</pre></div></td></tr></table></div>

<p>And here is the new code I now use:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;">&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wp_logout_url<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Logout&lt;/a&gt;</pre></div></td></tr></table></div>

<p>And here is a little bit of spice to make it redirect back to the current page:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;">&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wp_logout_url<span style="color: #009900;">&#40;</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; &gt;Logout&lt;/a&gt;</pre></div></td></tr></table></div>

<p>Nore:  If you are using an theme that was designed before 2.7, you should go into your comments.php file and change the anchor tag around line 78 to fix your Logout link.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/issue-with-the-user-logout-button-in-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Adding a Simple Quicktag to the HTML Editor in WordPress</title>
		<link>http://bavotasan.com/2009/adding-a-simple-quicktag-to-the-html-editor-in-wordpress/</link>
		<comments>http://bavotasan.com/2009/adding-a-simple-quicktag-to-the-html-editor-in-wordpress/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 16:01:19 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[Functionality]]></category>
		<category><![CDATA[html editor]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Location]]></category>
		<category><![CDATA[quicktag]]></category>
		<category><![CDATA[span]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[var]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=158</guid>
		<description><![CDATA[When you are editing a post or writing a new post in WordPress, you might have noticed those buttons above the editing box. They add WYSIWYG type functionality to the WordPress editor for common functions such as bolding, italics and linking. WordPress refers to these buttons as Quicktags. They should look something like this if [...]]]></description>
			<content:encoded><![CDATA[<p>When you are editing a post or writing a new post in WordPress, you might have noticed those buttons above the editing box. They add WYSIWYG type functionality to the WordPress editor for common functions such as bolding, italics and linking. WordPress refers to these buttons as Quicktags.<br />
<span id="more-158"></span><br />
They should look something like this if you use the HTML editor.</p>
<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/01/quicktags.jpg"><img class="aligncenter size-medium wp-image-159" title="quicktags" src="http://bavotasan.com/wp-content/uploads/2009/01/quicktags-580x32.jpg" alt="quicktags" width="580" height="32" /></a></p>
<p>If you use the Visual editor they should look something like this.</p>
<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/01/quicktags2.jpg"><img class="aligncenter size-full wp-image-160" title="quicktags2" src="http://bavotasan.com/wp-content/uploads/2009/01/quicktags2.jpg" alt="quicktags2" width="459" height="33" /></a></p>
<p>If you have a function that you use often it is very simple to add it to the Quicktag bar. For this example, I am going to add a button that creates a span tag and asks for a class to the HTML editor Quicktag bar.</p>
<p>The file we need to work with is under <code>wp-includes/js/quicktags.js</code>.</p>
<p>First we need to create the button, so go to around line 36 and enter the following.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>36
37
38
39
40
41
42
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">edButtons<span style="color: #009900;">&#91;</span>edButtons<span style="color: #339933;">.</span>length<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span>
<span style="color: #000000; font-weight: bold;">new</span> edButton<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ed_class'</span>
<span style="color: #339933;">,</span><span style="color: #0000ff;">'span'</span>
<span style="color: #339933;">,</span><span style="color: #0000ff;">''</span>
<span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span>
<span style="color: #339933;">,</span><span style="color: #0000ff;">'p'</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// special case</span></pre></td></tr></table></div>

<p>Then we need to add the part that actually makes it call the function that asks the user to enter a class name. Find this part around line 166.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>166
167
168
169
170
171
172
173
174
175
176
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> edShowButton<span style="color: #009900;">&#40;</span>button<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>button<span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #0000ff;">'ed_img'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;input type=&quot;button&quot; id=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>id <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; accesskey=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>access <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; class=&quot;ed_button&quot; onclick=&quot;edInsertImage(edCanvas);&quot; value=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>display <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>button<span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #0000ff;">'ed_link'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;input type=&quot;button&quot; id=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>id <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; accesskey=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>access <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; class=&quot;ed_button&quot; onclick=&quot;edInsertLink(edCanvas, '</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #0000ff;">');&quot; value=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>display <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;input type=&quot;button&quot; id=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>id <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; accesskey=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>access <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; class=&quot;ed_button&quot; onclick=&quot;edInsertTag(edCanvas, '</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #0000ff;">');&quot; value=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>display <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;  /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>And make it this.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>166
167
168
169
170
171
172
173
174
175
176
177
178
179
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> edShowButton<span style="color: #009900;">&#40;</span>button<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>button<span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #0000ff;">'ed_img'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;input type=&quot;button&quot; id=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>id <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; accesskey=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>access <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; class=&quot;ed_button&quot; onclick=&quot;edInsertImage(edCanvas);&quot; value=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>display <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>button<span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #0000ff;">'ed_link'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;input type=&quot;button&quot; id=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>id <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; accesskey=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>access <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; class=&quot;ed_button&quot; onclick=&quot;edInsertLink(edCanvas, '</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #0000ff;">');&quot; value=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>display <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>button<span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #0000ff;">'ed_class'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;input type=&quot;button&quot; id=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>id <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; accesskey=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>access <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; class=&quot;ed_button&quot; onclick=&quot;edInsertClass(edCanvas, '</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #0000ff;">');&quot; value=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>display <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;input type=&quot;button&quot; id=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>id <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; accesskey=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>access <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; class=&quot;ed_button&quot; onclick=&quot;edInsertTag(edCanvas, '</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #0000ff;">');&quot; value=&quot;'</span> <span style="color: #339933;">+</span> button<span style="color: #339933;">.</span>display <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;  /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>And it needs one last part, the actual function, to work properly, so go to the end of the file and add this.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>403
404
405
406
407
408
409
410
411
412
413
414
415
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> edInsertClass<span style="color: #009900;">&#40;</span>myField<span style="color: #339933;">,</span> i<span style="color: #339933;">,</span> defaultValue<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>defaultValue<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
defaultValue <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>edCheckOpenTags<span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000000; font-weight: bold;">CLASS</span> <span style="color: #339933;">=</span> prompt<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Enter the Image location'</span> <span style="color: #339933;">,</span>defaultValue<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">CLASS</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
edButtons<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>tagStart <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;span class=&quot;'</span> <span style="color: #339933;">+</span> <span style="color: #000000; font-weight: bold;">CLASS</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">;</span> edInsertTag<span style="color: #009900;">&#40;</span>myField<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
edInsertTag<span style="color: #009900;">&#40;</span>myField<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>v <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>When it comes down to it, this might actually be a little bit more complicated of a  Quicktag to create but there you go.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/adding-a-simple-quicktag-to-the-html-editor-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Create an Aqua Button in Adobe Illustrator</title>
		<link>http://bavotasan.com/2008/how-to-create-an-aqua-button-in-adobe-illustrator-cs3/</link>
		<comments>http://bavotasan.com/2008/how-to-create-an-aqua-button-in-adobe-illustrator-cs3/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 21:55:38 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Adobe Illustrator]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[illustrator]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[MoveClose]]></category>
		<category><![CDATA[Placing]]></category>
		<category><![CDATA[Shape]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=66</guid>
		<description><![CDATA[I recently needed to create some buttons for a client&#8217;s website and I thought it would be a fun little tutorial to put together to show you how quick and easy it is to create one of those nifty looking aqua buttons you see everywhere. It is only really a five step process and you [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to create some buttons for a client&#8217;s website and I thought it would be a fun little tutorial to put together to show you how quick and easy it is to create one of those nifty looking aqua buttons you see everywhere. It is only really a five step process and you can use any shape you choose.<br />
<span id="more-66"></span><br />
Here are some samples I created.</p>
<p><img src="http://bavotasan.com/wp-content/uploads/2008/11/aquabutton.png" alt="" title="aquabutton" class="alignnone nobox size-thumbnail wp-image-67" /><br />
<img src="http://bavotasan.com/wp-content/uploads/2008/11/circle.png" alt="" title="circle" class="alignnone nobox size-thumbnail wp-image-68" /></p>
<p>Placing text or an image on top of the buttons is pretty simple and these buttons can really add some nice visuals to any professional web design. </p>
<p><a href="#" onclick="return hs.htmlExpand(this, { contentId: 'highslide-html' } )" class="highslide"><img src="http://bavotasan.com/wp-content/uploads/2008/11/createaqua.jpg" alt="" width="565" /></a>
<div class="highslide-html-content" id="highslide-html">
<div class="highslide-header">
<ul>
<li class="highslide-move"><a href="#" onclick="return false">Move</a></li>
<li class="highslide-close"><a href="#" onclick="return hs.close(this)">Close</a></li>
</ul>
</div>
<div class="highslide-body"><img src="http://bavotasan.com/wp-content/plugins/flash-video-player/default_video_player.gif" /></div>
<div class="highslide-footer">
<div><span class="highslide-resize" title="Resize"><span></span></span></div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2008/how-to-create-an-aqua-button-in-adobe-illustrator-cs3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

