<?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>Design Chemical - jQuery, Wordpress, Tutorials &#38; Plugins&#187; Web Design Tips</title>
	<atom:link href="http://www.designchemical.com/blog/index.php/category/web-design-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designchemical.com/blog</link>
	<description>Your Business Catalyst</description>
	<lastBuildDate>Sun, 22 Jan 2012 12:55:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Choosing a Vertical Menu WordPress Plugin For Your Site</title>
		<link>http://www.designchemical.com/blog/index.php/wordpress-plugins/choosing-a-vertical-menu-wordpress-plugin-for-your-site/</link>
		<comments>http://www.designchemical.com/blog/index.php/wordpress-plugins/choosing-a-vertical-menu-wordpress-plugin-for-your-site/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 20:24:15 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[drill down]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mega menus]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[vertical]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=1421</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/choosing-a-vertical-menu-wordpress-plugin-for-your-site/"><img align="left" hspace="5" width="150" src="/media/images/vertical_accordion_menu.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>With all of the different types of vertical menu WordPress plugins out there it can sometimes be confusing as to what is the best option for your own WordPress site.</p>
<p>Today we review the 3 vertical menu plugins available on this site and summarise which one to use for each situation.</p>
The Vertical Menu Options
<ul class="content-list">
<li>jQuery Vertical Accordion</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/choosing-a-vertical-menu-wordpress-plugin-for-your-site/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>With all of the different types of vertical menu WordPress plugins out there it can sometimes be confusing as to what is the best option for your own WordPress site.</p>
<p>Today we review the 3 vertical menu plugins available on this site and summarise which one to use for each situation.</p>
<h3>The Vertical Menu Options</h3>
<ul class="content-list">
<li><a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">jQuery Vertical Accordion Menu Plugin</a></li>
<li><a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-mega-menu-widget/">jQuery Vertical Mega Menu Plugin</a></li>
<li><a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drill-down-ipod-menu-widget/">jQuery Drill Down iPod Menu Plugin</a></li>
</ul>
<p>When considering a menu type the main thing to take into account is the number of levels of the menu. Here we are looking at menus that have more than one level. You then need to consider whether the information in each sub-level is related or can be treat separately &#8211; i.e. are there advantages for the user if all menu options for each main menu link are displayed at the same time or is it important that you actually keep them separate.</p>
<h3>1. The Vertical Accordion Menu</h3>
<p>The accordion menu allows users to click on a menu link and have the sub-menu options slide out underneath. It  is very popular since it offers a fairly compact, easy to navigate system and the sliding effect gives a good visible cue for the user to know that further options are available.</p>
<p>Setting the menu so that only one main link can be open at any one time keeps the focus on the users current opton. Using CSS we can also add further styling to help indicate which is the current active menu item.</p>
<p class="text-center"><img src="/media/images/vertical_accordion_menu.png" alt="" /></p>
<p class="text-center"><strong>Basic 2 level Accordion Menu</strong></p>
<h4>Pros:</h4>
<p>Perfect for menus containing only 2 levels of navigation, where the sub-menus are easily recognisable. For a basic menu structure it offers a great way to effectively display your navigation in your web page side bar and offers a nice alternative to the standard flyout menus.</p>
<p>The accordion menu will also degrade gracefully to a standard nested HTML list in the event that the user has javascript disabled and is easily styled using CSS.</p>
<h4>Cons:</h4>
</p>
<p>For menus that have multiple levels it becomes harder to track which are parent links and which are the sub-menus for each parent. Even using more advanced CSS styling there is a limit to the number of levels you can effectively display without confusing the user.</p>
<h4>Recommendation</h4>
<p>Use for basic sidebar navigation that has parent links with one level of child links.</p>
<p>See the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress Vertical Accordion Menu Plugin</a> page for more information and examples.</p>
<h3>2. The Vertical Mega Menu</h3>
<p>The vertical mega menu creates a single &#8220;flyout&#8221; style container for each parent link, which contains all of the sub menus for that section. This allows the user to see all available options and therefore compare what link to click with other sub-menus.</p>
<p>These are very popular with online stores, where you want to display a lot of product information yet still keep some kind of categorisation for the products.</p>
<p>In terms of useability they are excellent since it only requires the user to activate the menu once to see all options. The larger area for the menu also makes it less tricky to navigate compared to multi-level flyout menus, which can sometimes test the users mouse skills.</p>
<p class="text-center"><img src="/media/images/vertical_mega_menu.png" alt="" /></p>
<p class="text-center"><strong>3 level Mega Menu Showing All Product Categories/Links</strong></p>
<h4>Pros:</h4>
<p>Excellent for displaying large groups of related links where the user will benefit from having the ability to view all options at the same time &#8211; perfect for online stores. Good useability and less awkward than multi-level flyout menus.</p>
<p>With only one parent link its fairly easy to style the menu to give visual clues as to which is the current active menu option.</p>
<h4>Cons:</h4>
<p>Large area and will inevitably block the main page content. Also requires javascript combined with fairly advanced CSS to create the mega menu effect. This style of menu is basically useless for only 2 levels of navigation.</p>
<h4>Recommendation</h4>
<p>For navigation using related categories and minimum 3 levels.</p>
<p>See the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-mega-menu-widget/">WordPress Vertical Mega Menu Widget Plugin</a> for more information and examples.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>3. The Drill Down Menu &#8211; iPod Stlye Menu</h3>
<p>Still relatively new, the drill down style menu offers an interesting and more fun method for users to navigate your links.</p>
<p>Following the iPod style, users can drill down multiple levels of the menu, selecting various options to ultimately arrive at a very defined and specific list of available links.</p>
<p class="text-center"><img src="/media/images/drill_down_menu.png" alt="" /></p>
<p class="text-center"><strong>Drill Down Menu With Breadcrumb Navigation Showing Previous Options</strong></p>
<h4>Pros:</h4>
<p>Perfect for navigation systems where you need to guide the user down specific options to ultimately offer exact links according to their needs and where different categories actually need to be kept separate.</p>
<p>This is great for products that have various components where the items selected are critical to the final product. Also very good for structures such as web directories, where you can add value to the user by allowing them to be more specific about their needs.</p>
<p>Due to their design and the way they operate they are <strong>very compact</strong>, occupy a fixed size in your sidebar and considering how they effectively manage large, complicated menu structures you cant beat it for size &#8211; obviously why Apple chose this style for the iPod!</p>
<h4>Cons:</h4>
<p>A lot of effort/clicks required by the user &#8211; it is therefore important that the drill down concept needs to actually add value to the users experience.</p>
<p>More complicated to backtrack and the menu style makes it difficult/impossible to compare across categories.</p>
<p>As with the vertical mega menu this also requires javascript to create the ipod effect, although CSS styling is fairly straightforward.</p>
<p>Not particularly useful with less than 3 levels of navigation or for standard page navigation.</p>
<h4>Recommendation</h4>
<p>For navigating unrelated categories/sub-categories of minimum 3 levels or where you need to guide the user to a specific menu option based on their previous choices.</p>
<p>Perfect for selling multi-component style products or navigation systems with a complicated heirarchy, where showing all available options would actually confuse the user.</p>
<p>Go to the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drill-down-ipod-menu-widget/">WordPress Drill Down iPod Menu Plugin</a> page to see drill down menu demos and more information.</p>
<h3>Summary</h3>
<p>The most important thing to keep in mind at all times, as well as selecting a menu plugin that looks good on your site, is that <strong>the method of navigation actually adds value to the users experience</strong>. If it doesnt add value, try alternatives and if it actually makes it more diffcult &#8211; you have the wrong plugin!</p>
<p>One advantage to all 3 plugins is that they all work from exactly the same HTML structure and you can try out the same custom WordPress menu with each different menu style and test which one works best for your WordPress site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/wordpress-plugins/choosing-a-vertical-menu-wordpress-plugin-for-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Equal Heights of Floated Elements Using jQuery</title>
		<link>http://www.designchemical.com/blog/index.php/jquery/setting-equal-heights-of-floated-elements-using-jquery/</link>
		<comments>http://www.designchemical.com/blog/index.php/jquery/setting-equal-heights-of-floated-elements-using-jquery/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 19:53:15 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=1123</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/jquery/setting-equal-heights-of-floated-elements-using-jquery/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/uploads/2011/01/no_resize.png" class="alignleft wp-post-image tfe" alt="no_resize" title="no_resize" /></a><p>As a web designer you are bound to come across the problem of how to handle unequal heights of floated elements, especially when it comes to layouts for online stores:</p>
Without Resizing
<p class="text-center"><img src="http://www.designchemical.com/blog/wp-content/uploads/2011/01/no_resize.png" alt="no_resize" title="no_resize" width="400" height="473" class="size-full wp-image-1124" /></p>
<p>Whilst many ecommerce/content management systems will automatically create standard thumbnails or you can use CSS to limit the height of the thumbnail shown sometimes it is &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/setting-equal-heights-of-floated-elements-using-jquery/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>As a web designer you are bound to come across the problem of how to handle unequal heights of floated elements, especially when it comes to layouts for online stores:</p>
<h3 class="margin-bottom text-center">Without Resizing</h3>
<p class="text-center"><img src="http://www.designchemical.com/blog/wp-content/uploads/2011/01/no_resize.png" alt="no_resize" title="no_resize" width="400" height="473" class="size-full wp-image-1124" /></p>
<p>Whilst many ecommerce/content management systems will automatically create standard thumbnails or you can use CSS to limit the height of the thumbnail shown sometimes it is not possible/desirable/liked by client to limit the thumbnail height.</p>
<p>Using jQuery we can easily overcome this problem to create an auto-resizing product list:</p>
<h3 class="margin-bottom text-center">Using jQuery to Resize</h3>
<p class="text-center"><img src="http://www.designchemical.com/blog/wp-content/uploads/2011/01/jquery_resize.png" alt="jquery_resize" title="jquery_resize" width="400" height="371" class="size-full wp-image-1128" /></p>
<h3>The jQuery Code:</h3>
<p>So, in the following jQuery code we are going to do a few things:</p>
<ol>
<li>Create a function to determine the greatest height of an element</li>
<li>Use the above function to get the height of the largest list item</li>
<li>Use the function again to get the height of the largest image</li>
<li>Use the above values to then set the CSS of the list item &#8211; for this example we set both the height of the list item as well as the bottom margin of the image to line-up the text</li>
</ol>
<pre class="brush: jscript; title: ; notranslate">
// The function to find the greatest height from a set of elements
function findMaxValue(element){
    var maxValue = undefined;
    $(element).each(function(){
        var val = parseInt($(this).height());
        if (maxValue === undefined || maxValue &lt; val) {
            maxValue = val;
        }
    });
    return maxValue;
}
// Using the above function we set the height of all list items and the bottom margin of the image
$(document).ready(function (){
    $listItem = $('ul li');
    maxValue = findMaxValue($listItem);
    $listItemImg = $('img',$listItem);
    maxImgHeight = findMaxValue($listItemImg);
    $listItem.each(function(){
        $(this).css(&quot;height&quot;,maxValue);
        var imageHeight = $('img',this).height();
        var imageMargin = maxImgHeight - imageHeight;
       $('img',this).css(&quot;margin-bottom&quot;,imageMargin);
    });
});
</pre>
<p>Whilst we have used a list of thumbnails and text to demonstrate the jQuery this can easily be applied to an selection of elements.</p>
<p><a href="http://www.designchemical.com/lab/jquery/demo/jquery_demo_set_equal_heights.htm" class="demo">View Demo &#8211; Set Equal Heights Using jQuery</a> <a href="http://www.designchemical.com/lab/jquery/demo/download/jquery_demo_set_equal_heights.zip" class="demo">Download source files</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/jquery/setting-equal-heights-of-floated-elements-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Simple Vertical Accordion Menu with Cookies</title>
		<link>http://www.designchemical.com/blog/index.php/jquery/jquery-simple-vertical-accordion-menu-with-cookies/</link>
		<comments>http://www.designchemical.com/blog/index.php/jquery/jquery-simple-vertical-accordion-menu-with-cookies/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 20:14:21 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vertical]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=919</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-simple-vertical-accordion-menu-with-cookies/"><img align="left" hspace="5" width="120" height="120" src="http://www.designchemical.com/blog/wp-content/uploads/2010/05/thumb_jquery_code.png" class="alignleft tfe wp-post-image" alt="thumb_jquery_code" title="thumb_jquery_code" /></a><p>Using the jQuery code from one of our previous tutorials on creating a simple vertical navigation menu we can add the very useful jQuery cookie plugin to create a more advanced navigation menu that remembers your visitors last location.</p>
The HTML, jQuery and CSS
<p>To speed up the tutorial we will assume that you have already followed the initial postings &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-simple-vertical-accordion-menu-with-cookies/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>Using the jQuery code from one of our previous tutorials on <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-simple-vertical-accordion-menu/">creating a simple vertical navigation menu</a> we can add the very useful <a href="http://stilbuero.de/jquery/cookie">jQuery cookie plugin</a> to create a more advanced navigation menu that remembers your visitors last location.</p>
<h3>The HTML, jQuery and CSS</h3>
<p>To speed up the tutorial we will assume that you have already followed the initial postings and therefore understand how to create the basic HTML/CSS structure for a vertical accordion menu and that you have the preliminary jQuery in place.</p>
<h3>Using jQuery Cookies</h3>
<p>What jQuery cookies allows us to do is very easily create/modify/store a cookie on the visitors computer that will hold the position of the last menu item visited. When they next visit the site we can therefore use this value to automatically open the relevent menu section.</p>
<h3>Creating a jQuery Cookie</h3>
<p>To create a cookie we simply declare the cookie name, followed by the value. For our accordion menu we will therefore create a cookie named &#8220;nav-item&#8221; and its value will be the index value of the last anchor tag clicked. So to create this we use:</p>
<pre class="brush: jscript; title: ; notranslate">
$('#nav &gt; li &gt; a').click(function(){
      var navIndex = $('#nav &gt; li &gt; a').index(this);
	  $.cookie(&quot;nav-item&quot;, navIndex);
	  $('#nav li ul').slideUp();
	   if ($(this).next().is(&quot;:visible&quot;)){
		   $(this).next().slideUp();
	   } else {
	   $(this).next().slideToggle();
	   }
	   $('#nav li a').removeClass('active');
	   $(this).addClass('active');
  });
</pre>
<p>In the above code &#8211; line 2 gets the index value and line 3 sets the cookie.</p>
<h3>Using the Cookie Value</h3>
<p>Now that we have a cookie on their computer we need to add the jQuery code that will check the visitors browser when the page loads, retrieve the cookie if it exists and use this to open the appropriate menu section:</p>
<pre class="brush: jscript; title: ; notranslate">
var checkCookie = $.cookie(&quot;nav-item&quot;);
  if (checkCookie != &quot;&quot;) {
	$('#nav &gt; li &gt; a:eq('+checkCookie+')').next().show();
  }
</pre>
<p>That is basically all that is required. Put it all together and the complete code &#8230;</p>
<h3>The Complete jQuery</h3>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function () {
  var checkCookie = $.cookie(&quot;nav-item&quot;);
  if (checkCookie != &quot;&quot;) {
	$('#nav &gt; li &gt; a:eq('+checkCookie+')').next().show();
  }
  $('#nav &gt; li &gt; a').click(function(){
      var navIndex = $('#nav &gt; li &gt; a').index(this);
	  $.cookie(&quot;nav-item&quot;, navIndex);
	  $('#nav li ul').slideUp();
	   if ($(this).next().is(&quot;:visible&quot;)){
		   $(this).next().slideUp();
	   } else {
	   $(this).next().slideToggle();
	   }
	   $('#nav li a').removeClass('active');
	   $(this).addClass('active');
  });
});
</pre>
<p><a href="http://www.designchemical.com/lab/jquery/demo/jquery_vertical_accordion_menu_using_cookies.htm" class="demo">Check out the online demo</a></p>
<h4 class="clear">Update 5th Mar 2011:</h4>
<p>We have now also released the <a href="/lab/jquery-vertical-accordion-menu-plugin/getting-started/">jQuery Vertical Accordion Menu Plugin</a>, which makes it easy to create accordion menus from any nested HTML lists. The plugin has several features including use of cookies and ability to select either hover or click to activate the menu.</p>
<p>Check out the project pages for more information and <a href="/lab/jquery-vertical-accordion-menu-plugin/examples/">examples</a> or go straight to the <a href="/lab/jquery-vertical-accordion-menu-plugin/download/">download page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/jquery/jquery-simple-vertical-accordion-menu-with-cookies/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Simple Tabs with AJAX and jQuery</title>
		<link>http://www.designchemical.com/blog/index.php/jquery/simple-tabs-with-ajax-and-jquery/</link>
		<comments>http://www.designchemical.com/blog/index.php/jquery/simple-tabs-with-ajax-and-jquery/#comments</comments>
		<pubDate>Sun, 02 May 2010 18:15:46 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=421</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/jquery/simple-tabs-with-ajax-and-jquery/"><img align="left" hspace="5" width="120" height="120" src="http://www.designchemical.com/blog/wp-content/uploads/2010/05/thumb_jquery_code.png" class="alignleft tfe wp-post-image" alt="thumb_jquery_code" title="thumb_jquery_code" /></a><p>One of the great things about jQuery is its complete suite of built in AJAX functions, which allow you to add quick and easy features to your website.</p>
<p>The example below came from a recent project to create an internal web application for a client, which utilised tab navigation, jQuery and AJAX to load data into the page without the &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/simple-tabs-with-ajax-and-jquery/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>One of the great things about jQuery is its complete suite of built in AJAX functions, which allow you to add quick and easy features to your website.</p>
<p>The example below came from a recent project to create an internal web application for a client, which utilised tab navigation, jQuery and AJAX to load data into the page without the need to refresh the web page.</p>
<h3>1. The HTML Code</h3>
<pre class="brush: plain; title: ; notranslate">

&lt;ul id=&quot;nav&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;page_1.html&quot;&gt;Page 1&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;page_2.html&quot;&gt;Page 2&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;page_3.html&quot;&gt;Page 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div id=&quot;ajax-content&quot;&gt;This is default text, which will be replaced&lt;/div&gt;
</pre>
<p>You can fill the &#8220;ajax-content&#8221; div with default text, which will be replaced when one of the tabs are clicked.</p>
<h3>2. The jQuery Code</h3>
<pre class="brush: jscript; title: ; notranslate">

$(document).ready(function() {
    $(&quot;#nav li a&quot;).click(function() {

        $(&quot;#ajax-content&quot;).empty().append(&quot;&lt;div id='loading'&gt;&lt;img src='images/loading.gif' alt='Loading' /&gt;&lt;/div&gt;&quot;);
        $(&quot;#nav li a&quot;).removeClass('current');
        $(this).addClass('current');

        $.ajax({ url: this.href, success: function(html) {
            $(&quot;#ajax-content&quot;).empty().append(html);
            }
	});
	return false;
    });
});
</pre>
<p>The above jQuery code will automatically use the URL written into each anchor tag as the source for the AJAX data.</p>
<p>So what is the above code doing?</p>
<ol>
<li>When a tab is clicked we first empty the contents of the ajax-content div and then load a loading graphic, whilst the content is being retrieved.</li>
<li>The jQuery then removes the &#8220;current&#8221; class from the tabs and adds the class to the newly clicked anchor tag allowing you to style the tabs to show which one is now active.</li>
<li>Once the data from the URL has been retrieved the loading image is removed and the content loaded into the &#8220;ajax-content&#8221; div.</li>
<li>Finally, the &#8220;return false&#8221; command is used to prevent the default action of the tabs browsing to the content pages.</li>
</ol>
<h3>3. Loading A Default Page</h3>
<p>If you wanted to use one of the external pages as your default content you can simply edit the code as below:</p>
<pre class="brush: jscript; title: ; notranslate">

$(document).ready(function() {
    $(&quot;#nav li a&quot;).click(function() {

        $(&quot;#ajax-content&quot;).empty().append(&quot;&lt;div id='loading'&gt;&lt;img src='images/loading.gif' alt='Loading' /&gt;&lt;/div&gt;&quot;);
        $(&quot;#nav li a&quot;).removeClass('current');
        $(this).addClass('current');

        $.ajax({ url: this.href, success: function(html) {
            $(&quot;#ajax-content&quot;).empty().append(html);
            }
	});
	return false;
    });

    $(&quot;#ajax-content&quot;).empty().append(&quot;&lt;div id='loading'&gt;&lt;img src='images/loading.gif' alt='Loading' /&gt;&lt;/div&gt;&quot;);
	$.ajax({ url: 'page_1.html', success: function(html) {
            $(&quot;#ajax-content&quot;).empty().append(html);
	}
    });
});
</pre>
<p>Substitute the URL for your required page in the code.</p>
<p>A very simple yet effective way to create a basic jQuery and AJAX application for your website</p>
<p><a href="/lab/jquery/demo/jquery_ajax_tabs_demo.htm" class="demo">Check out the demo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/jquery/simple-tabs-with-ajax-and-jquery/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Check Passwords Using jQuery</title>
		<link>http://www.designchemical.com/blog/index.php/jquery/check-passwords-using-jquery/</link>
		<comments>http://www.designchemical.com/blog/index.php/jquery/check-passwords-using-jquery/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 18:00:29 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Validation]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=387</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/jquery/check-passwords-using-jquery/"><img align="left" hspace="5" width="120" height="120" src="http://www.designchemical.com/blog/wp-content/uploads/2010/05/thumb_jquery_code.png" class="alignleft tfe wp-post-image" alt="thumb_jquery_code" title="thumb_jquery_code" /></a><p>We have had several requests on how to use jQuery to check that passwords match in your website registration form when requesting visitors to re-enter their passwords.</p>
<p>This can easily be achieved by using similar code shown in our previous posts on Using jQuery to Validate Search Box Input and Email Validation Using jQuery.</p>
1. The Password Input Fields
2.<p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/check-passwords-using-jquery/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>We have had several requests on how to use jQuery to check that passwords match in your website registration form when requesting visitors to re-enter their passwords.</p>
<p>This can easily be achieved by using similar code shown in our previous posts on <a href="/blog/index.php/jquery/using-jquery-to-validate-search-box-input/">Using jQuery to Validate Search Box Input</a> and <a href="/blog/index.php/jquery/email-validation-using-jquery/">Email Validation Using jQuery</a>.</p>
<h3>1. The Password Input Fields</h3>
<pre class="brush: plain; title: ; notranslate">
&lt;form method=&quot;post&quot; name=&quot;form1&quot; id=&quot;form-password&quot; action=&quot;&quot;&gt;
  &lt;fieldset&gt;
    &lt;label&gt;Password:&lt;/label&gt;
    &lt;input type=&quot;password&quot; name=&quot;password&quot; id=&quot;password&quot; value=&quot;&quot; size=&quot;32&quot; /&gt;
    &lt;label&gt;Re-Enter Password:&lt;/label&gt;
    &lt;input type=&quot;password&quot; name=&quot;password-check&quot; id=&quot;password-check&quot; value=&quot;&quot; size=&quot;32&quot; /&gt;
    &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; id=&quot;submit&quot;&gt;
  &lt;/fieldset&gt;
&lt;/form&gt;
</pre>
<h3>2. The jQuery Validation Code &#8211; Check That Both Passwords Match</h3>
<pre class="brush: jscript; title: ; notranslate">
jQuery(function(){
        $(&quot;#submit&quot;).click(function(){
        $(&quot;.error&quot;).hide();
        var hasError = false;
        var passwordVal = $(&quot;#password&quot;).val();
        var checkVal = $(&quot;#password-check&quot;).val();
        if (passwordVal == '') {
            $(&quot;#password&quot;).after('&lt;span class=&quot;error&quot;&gt;Please enter a password.&lt;/span&gt;');
            hasError = true;
        } else if (checkVal == '') {
            $(&quot;#password-check&quot;).after('&lt;span class=&quot;error&quot;&gt;Please re-enter your password.&lt;/span&gt;');
            hasError = true;
        } else if (passwordVal != checkVal ) {
            $(&quot;#password-check&quot;).after('&lt;span class=&quot;error&quot;&gt;Passwords do not match.&lt;/span&gt;');
            hasError = true;
        }
        if(hasError == true) {return false;}
    });
});
</pre>
<p>The above code will perform the following checks upon clicking the submit button:</p>
<ul>
<li>Check that a password has been entered and return an error message if the input field is empty.</li>
<li>Check that the &#8220;re-enter password&#8221; field contains text and return an error message if the input field is empty.</li>
<li>Finally &#8211; compare both password texts to check if they match</li>
</ul>
<p>If any of the validation checks return an error then the form submission on your website is stopped with the &#8220;return false&#8221; command.</p>
<p><a href="/lab/jquery/demo/check_passwords_using_jquery.htm" class="demo">Check out the demo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/jquery/check-passwords-using-jquery/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Web Design &#8211; Core Files</title>
		<link>http://www.designchemical.com/blog/index.php/web-design/web-design-core-files/</link>
		<comments>http://www.designchemical.com/blog/index.php/web-design/web-design-core-files/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 18:47:47 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=352</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/web-design/web-design-core-files/"><img align="left" hspace="5" width="120" height="120" src="http://www.designchemical.com/blog/wp-content/uploads/2010/05/http_header.jpg" class="alignleft tfe wp-post-image" alt="http_header" title="http_header" /></a><p>Since most websites start with the same set of core file requirements and most layouts have at least the same starting HTML and CSS structure you can speed up your initial web design by having a core set of files ready to use.</p>
<p>For our core files we usually have the main directory structure set up:</p>
<ul>
<li>CSS folder</li>
<li>Images</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/web-design/web-design-core-files/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>Since most websites start with the same set of core file requirements and most layouts have at least the same starting HTML and CSS structure you can speed up your initial web design by having a core set of files ready to use.</p>
<p>For our core files we usually have the main directory structure set up:</p>
<ul>
<li>CSS folder</li>
<li>Images Folders</li>
<li>Javscript folder for jQuery plugins</li>
<li>index.html file</li>
</ul>
<p>The index.html file already contains the link to download the latest jQuery library and of course the link to the basic CSS file. The page structure has the div tags for the header, main content and footer and associated CSS rules set up in the style.css file ready to create the main web design layout.</p>
<p>The CSS structure includes:</p>
<ul>
<li>CSS reset &#8211; to remove all default presentation from HTML tags</li>
<li>Coding to create a &#8220;sticky footer&#8221; on your web page</li>
<li>CSS classes to style the website main navigation &amp; footer navigation</li>
<li>Basic form presentation</li>
<li>CSS rules to to create buttons</li>
</ul>
<p>Although you need to develop your own core files that work best for your style of web design, you can however<br />
<a href="http://www.designchemical.com/lab/download/core.zip">download a copy of our core files</a> and are free to use these as a starting point or adapt them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/web-design/web-design-core-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Reverse-Order Ordered List Using jQuery</title>
		<link>http://www.designchemical.com/blog/index.php/web-design-tips/create-a-reverse-order-ordered-list-using-jquery/</link>
		<comments>http://www.designchemical.com/blog/index.php/web-design-tips/create-a-reverse-order-ordered-list-using-jquery/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 12:59:37 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=304</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/web-design-tips/create-a-reverse-order-ordered-list-using-jquery/"><img align="left" hspace="5" width="120" height="120" src="http://www.designchemical.com/blog/wp-content/uploads/2010/05/thumb_jquery_code.png" class="alignleft tfe wp-post-image" alt="thumb_jquery_code" title="thumb_jquery_code" /></a><p>Earlier today I came across a small website coding &#8220;problem&#8221;, which required me to create a &#8220;top-ten&#8221; list of items in reverse order for a client.</p>
<p>Usually ordered lists are very simple to in XHTML create using the following code:</p>
<p>Which will produce the following ordered list:</p>
<ol style="margin-left: 30px">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List</li></ol><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/web-design-tips/create-a-reverse-order-ordered-list-using-jquery/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>Earlier today I came across a small website coding &#8220;problem&#8221;, which required me to create a &#8220;top-ten&#8221; list of items in reverse order for a client.</p>
<p>Usually ordered lists are very simple to in XHTML create using the following code:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;ol&gt;
  &lt;li&gt;List item 1&lt;/li&gt;
  &lt;li&gt;List item 2&lt;/li&gt;
  &lt;li&gt;List item 3&lt;/li&gt;
  &lt;li&gt;List item 4&lt;/li&gt;
  &lt;li&gt;List item 5&lt;/li&gt;
&lt;/ol&gt;
</pre>
<p>Which will produce the following ordered list:</p>
<ol style="margin-left: 30px">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
<li>List item 5</li>
</ol>
<p>Unfortunately HTML won&#8217;t automatically handle reverse numbering. Adding the numbers manually into a standard unordered list looked messy and I wanted a solution that would automatically renumber the list in case anyone else came along and added more items &#8230; jQuery to the rescue.</p>
<p>Using some of the usual <a href="http://www.designchemical.com/blog/index.php/jquery/adding-jquery-to-your-website/" rel="external">jQuery magic</a> we can add the following code to the head of the document:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {   

   var countli = $('ol &gt; li').size();
   $(&quot;ol &gt; li&quot;).each(function(i) {
         var attrvalue = countli - i;
         $(this).attr(&quot;value&quot;,attrvalue);
   });
});
</pre>
<p>This will automatically reverse order all of the items in the ordered lists on the web page by adding the &#8220;value&#8221; attribute to each list item.</p>
<p><a href="/lab/jquery/demo/jquery_reverse_unordered_list.htm" title="Create a Reverse Order Ordered List Using jQuery" class="external demo">See demo for creating a reverse order ordered list using jQuery</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/web-design-tips/create-a-reverse-order-ordered-list-using-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick and Easy jQuery Image Swap</title>
		<link>http://www.designchemical.com/blog/index.php/jquery/quick-and-easy-jquery-image-swap/</link>
		<comments>http://www.designchemical.com/blog/index.php/jquery/quick-and-easy-jquery-image-swap/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 16:18:45 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=292</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/jquery/quick-and-easy-jquery-image-swap/"><img align="left" hspace="5" width="150" src="/lab/media/images/img_swap_off.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Here is a very quick and easy way to implement image swap on hover on your website using jQuery.</p>
<p>With the jQuery javascript library already added to your website add the following javascript code between the head tags in your web page:</p>
<p>Then simply create your 2 images &#8211; normal state called xxxxxx_off.jpg and the hover state xxxxxx_on.jpg, add the &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/quick-and-easy-jquery-image-swap/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>Here is a very quick and easy way to implement image swap on hover on your website using jQuery.</p>
<p>With the <a href="http://www.designchemical.com/blog/index.php/jquery/adding-jquery-to-your-website/">jQuery javascript library already added to your website</a> add the following javascript code between the head tags in your web page:</p>
<pre class="brush: jscript; title: ; notranslate">
jQuery(function(){
     $(&quot;.img-swap&quot;).hover(
          function(){this.src = this.src.replace(&quot;_off&quot;,&quot;_on&quot;);},
          function(){this.src = this.src.replace(&quot;_on&quot;,&quot;_off&quot;);
     });
});
</pre>
<p>Then simply create your 2 images &#8211; normal state called xxxxxx_off.jpg and the hover state xxxxxx_on.jpg, add the css class &#8220;img-swap&#8221; to the image tag in your html and jQuery will do the rest &#8230; see demo below:</p>
<p class="text-center"><img src="/lab/media/images/img_swap_off.png" alt="" class="img-swap" /></p>
<h4>Additional Notes:</h4>
<p>Refer to our later blog post &#8211; <a href="http://www.designchemical.com/blog/index.php/jquery/create-image-preloader-image-swap-function-jquery/">Create An Image Preloader For Image Swap Function Using jQuery</a> &#8211; for a preload function to improve the image swap performance.</p>
<p>For an example on how to use this to create a very simple jQuery gallery check out our tutorial &#8211; <a href="/blog/index.php/jquery/jquery-image-swap-gallery/">jQuery Image Swap Gallery</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/jquery/quick-and-easy-jquery-image-swap/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Thailand e Commerce Web Design</title>
		<link>http://www.designchemical.com/blog/index.php/web-design/thailand-e-commerce-web-design/</link>
		<comments>http://www.designchemical.com/blog/index.php/web-design/thailand-e-commerce-web-design/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 07:54:32 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Web Design Tips]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=223</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/web-design/thailand-e-commerce-web-design/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>eCommerce is a critical element for many businesses and usually requires a variety of technologies in order to be effective.  The first step is a foundation of good coding.</p>
<p>Design Chemical is focused on proper code, along with leveraging a variety of tools to make the eCommerce shopping cart both user friendly, as well as, SEO effective.</p>
]]></description>
			<content:encoded><![CDATA[<p>eCommerce is a critical element for many businesses and usually requires a variety of technologies in order to be effective.  The first step is a foundation of good coding.</p>
<p>Design Chemical is focused on proper code, along with leveraging a variety of tools to make the eCommerce shopping cart both user friendly, as well as, SEO effective.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/web-design/thailand-e-commerce-web-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thai Web Design</title>
		<link>http://www.designchemical.com/blog/index.php/web-design/thai-web-design/</link>
		<comments>http://www.designchemical.com/blog/index.php/web-design/thai-web-design/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 06:25:54 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
				<category><![CDATA[Web Design Tips]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=221</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/web-design/thai-web-design/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Design Chemical is earning a reputation for excellence in <strong>Thai Web Design.</strong></p>
<p><strong>CMS Content Management Systems, eCommerce sites, Graphic Image Galleries, Databases, Blog Setup, Forum Setup, SEO Search Engine Optimization, SEM Search Engine Marketing, Traffic Analytics, and Web Hosting<br />
</strong></p>
<p>A variety of technical skills and a commitment to professional service  make Design Chemical a good choice for Web &#8230; <a href="http://www.designchemical.com/blog/index.php/web-design/thai-web-design/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>Design Chemical is earning a reputation for excellence in <strong>Thai Web Design.</strong></p>
<p><strong>CMS Content Management Systems, eCommerce sites, Graphic Image Galleries, Databases, Blog Setup, Forum Setup, SEO Search Engine Optimization, SEM Search Engine Marketing, Traffic Analytics, and Web Hosting<br />
</strong></p>
<p>A variety of technical skills and a commitment to professional service  make Design Chemical a good choice for<a href="http://www.designchemical.com/blog/index.php/web-design/bangkok-web-design/"> Web Design and Web Development in Bangkok</a> and around the world.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/web-design/thai-web-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bangkok Web Design</title>
		<link>http://www.designchemical.com/blog/index.php/web-design/bangkok-web-design/</link>
		<comments>http://www.designchemical.com/blog/index.php/web-design/bangkok-web-design/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 06:21:48 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
				<category><![CDATA[Web Design Tips]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=219</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/web-design/bangkok-web-design/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Design Chemical is working hard to be recognized as the best in Bangkok Web Design.</p>
<ul class="content-list">
<li>eCommerce</li>
<li>CMS Content Management Systems,</li>
<li>jQuery</li>
<li>Dynamic Sites</li>
<li>Image Galleries</li>
<li>Database</li>
<li>Blogs</li>
<li>Forums</li>
<li>SEO Search Engine Optimization</li>
<li>SEM Search Engine Marketing</li>
<li>Analytics</li>
<li>Web Hosting</li>
</ul>
<p>A broad range of technical skills combined with a commitment to service and professionalism makes Design Chemical the &#8230; <a href="http://www.designchemical.com/blog/index.php/web-design/bangkok-web-design/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>Design Chemical is working hard to be recognized as the best in Bangkok Web Design.</p>
<ul class="content-list">
<li>eCommerce</li>
<li>CMS Content Management Systems,</li>
<li>jQuery</li>
<li>Dynamic Sites</li>
<li>Image Galleries</li>
<li>Database</li>
<li>Blogs</li>
<li>Forums</li>
<li>SEO Search Engine Optimization</li>
<li>SEM Search Engine Marketing</li>
<li>Analytics</li>
<li>Web Hosting</li>
</ul>
<p>A broad range of technical skills combined with a commitment to service and professionalism makes Design Chemical the best choice for <a href="http://www.designchemical.com/blog/index.php/web-design/thai-web-design/">Web Design and Web Development in Thailand</a> and around the globe.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/web-design/bangkok-web-design/feed/</wfw:commentRss>
		<slash:comments>83</slash:comments>
		</item>
		<item>
		<title>Hiding Your Email Addresses From Spam Harvesters &#8211; Part II</title>
		<link>http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters-part-ii/</link>
		<comments>http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters-part-ii/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 16:56:17 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=171</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters-part-ii/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Last week, in part I, we looked at hiding your email addresses from spam harvesters using simple techniques such as rewriting your email address for humans only and replacing your email with an inline image.</p>
<p>Today we have 2 more techniques, which utilise the jQuery javascript library. If you are not sure how to include the library code into your &#8230; <a href="http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters-part-ii/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>Last week, in part I, we looked at <a href="http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters/">hiding your email addresses from spam harvesters</a> using simple techniques such as rewriting your email address for humans only and replacing your email with an inline image.</p>
<p>Today we have 2 more techniques, which utilise the jQuery javascript library. If you are not sure how to include the library code into your web page then refer to our post &#8211; <a href="http://www.designchemical.com/blog/index.php/jquery/adding-jquery-to-your-website/">Adding jQuery To Your Website</a>. The following examples assume that your web page already includes the jQuery library.</p>
<h3><strong>3. Using The jQuery Spamless Plugin</strong></h3>
<p>This is a lightweight plugin, which renders the email address on the visitors browser using source code, which is scrambled (or obfuscated). To a spambot the source code only contains unreadable text.</p>
<p>Refer to the <a href="/lab/jquery-spamless-plugin-stop-email-spam/getting-started/">jQuery Spamless plugin project pages</a> for examples, information on how to use the plugin and to download the plugin file.</p>
<p>To create your scrambled email address with the default settings for the plugin:</p>
<ol>
<li>write the address backwards</li>
<li>Replacing the &#8220;@&#8221; symbol with &#8220;[at]&#8220;</li>
<li>Replace all &#8220;.&#8221; with &#8220;[dot]&#8220;</li>
</ol>
<p>Example: For email address &#8211; email@mydomain.com &#8211; you would use the following code:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;span class=&quot;email&quot;&gt;moc[dot]niamodym[at]liame&lt;/span&gt;
</pre>
<h3><strong>4. Using jQuery and AJAX</strong></h3>
<p>All of the previous 3 methods are unable to handle the addition of a &#8220;mailto:&#8221; link, which will allow your visitor to open up a blank email containing your email address. A feature, which many people find very useful.</p>
<p>One way of maintaining the link is to use AJAX and jQuery. Using this method we can get the browser to call in the email address code from an external file, after the page has loaded. In most cases spambots would therefore not see the email address in the source code.</p>
<p><a href="http://www.designchemical.com/lab/jquery/demo/ajax_email.htm" target="_blank">View a demo of hiding your email address and mailto link using jQuery and AJAX</a>.</p>
<p>If you view the source code of the above page in your browser you will see that the email address does not appear and only shows on the browser screen. This same method is also used in the footer of our website.</p>
<p><a href="http://www.designchemical.com/lab/jquery/demo/ajax_email.zip" target="_blank">Download the source code for this example</a></p>
<p>To use this method add the following code after the jQuery javascript library, between the head tags:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){

	var content = $(&quot;.email&quot;);
	content.load(&quot;email_address.htm&quot;);

});
&lt;/script&gt;
</pre>
<p>Finally in the body of the html page add the following code where you would like your email link to appear:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;span class=&quot;email&quot;&gt;&lt;/span&gt;
</pre>
<p>A very simple, yet effective solution for hiding your email address link from annoying spammers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters-part-ii/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hiding Your Email Addresses From Spam Harvesters &#8211; Part I</title>
		<link>http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters/</link>
		<comments>http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 06:40:09 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=113</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters/"><img align="left" hspace="5" width="120" height="84" src="http://www.designchemical.com/blog/wp-content/uploads/2010/05/email_symbol.png" class="alignleft tfe wp-post-image" alt="email_symbol" title="email_symbol" /></a><p>One of the biggest problems with putting your personal and/or business contact details onto your website is being inundated with spam just a few weeks after launching your site. This is due to automated programs trawling the internet and searching the source code of unsuspecting website owners for email addresses.</p>
<p>There are many methods that you can use to try &#8230; <a href="http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>One of the biggest problems with putting your personal and/or business contact details onto your website is being inundated with spam just a few weeks after launching your site. This is due to automated programs trawling the internet and searching the source code of unsuspecting website owners for email addresses.</p>
<p>There are many methods that you can use to try and hide your details from the spammers. Some require just simple changes to your text, whilst others, although a little more advanced, can be equally simple to implement.</p>
<p>The following are a few ideas that you can use to disguise your email address online. These are by no means the only ways but we have found them useful in the past in web design projects. The best method for you does of course depend on your own website requirements &#8230;</p>
<h3><strong>1. Rewriting Your Email Address</strong></h3>
<p>The most simple is probably just to rewrite your email address so that humans can understand it and spam harvesters tend to skip over it. Example:</p>
<p>email@mydomain.com could be rewritten as &#8230; email [AT] mydomain dot com.</p>
<p>Unfortunately this method obviously relies on the visitor to your website understanding what you mean and this is not necessarily going to fool all spam harvesters these days.</p>
<h3><strong>2. Replace Your Email Address with an Image</strong></h3>
<p>If you prefer to have your web page show your actual email address then one simple method is to replace the email text in your source code with an image as shown below:</p>
<p><img src="/blog/wp-content/uploads/2009/12/email_sample1.png" alt="email sample image" /></p>
<p>Hiding text in an image is a good way to stop spam harvesters picking out your email address &#8230; not impossible of course but far more tricky!</p>
<p>Whilst the above two methods work and offer lower risk ways of displaying your email address, one big problem is that you cannot use these to add the &#8220;mailto:&#8221; link. The mailto: link allows your visitor to automatically open their email software with a new blank email already populated with your email address as demonstrated if you click on the link below:</p>
<p><a href="mailto:someemail@somedomainexample.com">someemail@somedomainexample.com</a></p>
<p>Next week I will cover two more ways of beating the spammers, including one, which allows you to add a &#8220;mailto:&#8221; link with virtually no risk.</p>
<p><a href="http://www.designchemical.com/blog/index.php/2009/12/hiding-your-email-addresses-from-spam-harvesters-part-ii/">Hiding Your Email Addresses From Spam Harvesters &#8211; Part II</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/web-design-tips/hiding-your-email-addresses-from-spam-harvesters/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Domain Name Registration</title>
		<link>http://www.designchemical.com/blog/index.php/domain-name-registration/domain-name-registration/</link>
		<comments>http://www.designchemical.com/blog/index.php/domain-name-registration/domain-name-registration/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 17:08:26 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Domain Name Registration]]></category>
		<category><![CDATA[Web Design Tips]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=58</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/domain-name-registration/domain-name-registration/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>I have come across so many examples of problems where domain names have been registered for clients by their old web design companies with the web designer as the registrant. This seems to be a big problem with local web designers.</p>
<p>One word of advice &#8230; DO NOT use your web designer to register your domain name. It is better &#8230; <a href="http://www.designchemical.com/blog/index.php/domain-name-registration/domain-name-registration/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>I have come across so many examples of problems where domain names have been registered for clients by their old web design companies with the web designer as the registrant. This seems to be a big problem with local web designers.</p>
<p>One word of advice &#8230; DO NOT use your web designer to register your domain name. It is better to do this yourself using one of the international registrars or discuss with us and we can help walk you through the process.</p>
<p>Your domain name is part of your company identity and it is critical that you retain control of your domain name at all times and are free to change name servers to any hosting company. There is nothing worse than spending time, effort and money building up your online branding only to find out when you want to hire a new web designer that you do not actually own your domain name.</p>
<p>Starting from scratch with a new domain name puts you right back at square one when it comes to building up your traffic and search engine rankings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/domain-name-registration/domain-name-registration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding jQuery To Your Website</title>
		<link>http://www.designchemical.com/blog/index.php/jquery/adding-jquery-to-your-website/</link>
		<comments>http://www.designchemical.com/blog/index.php/jquery/adding-jquery-to-your-website/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 12:15:50 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Website Coding]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designchemical.com/blog/?p=123</guid>
		<description><![CDATA[<a href="http://www.designchemical.com/blog/index.php/jquery/adding-jquery-to-your-website/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The jQuery javascript library offers an excellent and easy way for both experienced and beginner web designers and website owners to add great effects or features to any site.</p>
<p>The jQuery website contains hundreds of plugins, which allow you to quickly add elements to your website such as web photo galleries, navigation, animation, slideshows, mp3 players, AJAX and many more. &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/adding-jquery-to-your-website/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.jquery.com" class="external">jQuery javascript library</a> offers an excellent and easy way for both experienced and beginner web designers and website owners to add great effects or features to any site.</p>
<p>The jQuery website contains hundreds of plugins, which allow you to quickly add elements to your website such as web photo galleries, navigation, animation, slideshows, mp3 players, AJAX and many more. These plugins are usually well supported and come with downloadable demo files, which makes it easier to integrate the code into your own website.</p>
<p>Later on in our blog we will show examples of where Design Chemical use this excellent resource in our web design projects. However, before you can start using jQuery features you must first know how to add the library to your web page.</p>
<p>There are two ways to include the jQuery library file:</p>
<h3><strong>1. Upload The jQuery Library File to Your Server</strong></h3>
<p>With this method you hold the main jQuery library file on your web server. You can download the latest version from the <a href="http://www.jquery.com">jQuery website</a>.</p>
<p>Inbetween the head tags include the link to the jQuery file &#8211; make sure that the path is correct based on your file structure. Example &#8211; if you download the file &#8220;jquery-1.3.2.min.js&#8221; to subdirectory &#8220;js/&#8221; then use the following code:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;/js/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Then upload the jQuery library file (e.g. jquery-1.3.2.min.js) to your web server along with your edited web page.</p>
<p>Make sure that the code comes before any other jQuery code in your document head.</p>
<h3><strong>2. Download The jQuery Library File Directly From Google</strong></h3>
<p>Instead of holding the file locally you can have your web page download directly from the google code repository. Main advantages of this is that if your visitor has already visited a website that uses the same code then your site can utilise the locally cached copy, which improves your page loading time. With jQuery becoming more and more popular, this method provides a definite advantage.</p>
<p>To download directly from google simply include the following code inbetween your head tags:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Upload your edited web page to your web server and that&#8217;s it!</p>
<p>Easy &#8230; now with the library included in your web page you are free to utilise the code to add great features to your web design. To see a sample of what jQuery can do click on one of the project images on our <a href="http://www.designchemical.com/portfolio.asp" title="Design Chemical Bangkok Web Design Portfolio">web design portfolio</a> to see a gallery sample in action.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designchemical.com/blog/index.php/jquery/adding-jquery-to-your-website/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

