<?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>MediaFormations &#187; web design</title>
	<atom:link href="http://mediaformations.com/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://mediaformations.com</link>
	<description>Welcome to Media Formations</description>
	<lastBuildDate>Fri, 02 Jul 2010 04:25:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Vertical Sliding Menu with Jquery</title>
		<link>http://mediaformations.com/vertical-sliding-menu-with-jquery/</link>
		<comments>http://mediaformations.com/vertical-sliding-menu-with-jquery/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:00:24 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://mediaformations.com/?p=464</guid>
		<description><![CDATA[When WordPress changed their administrator layout I was fascinated with the navigation menu. It has a sleek and useful feel to it. Notable features would include the active styling to your current page, the sliding action of each menu section, the hover effect that shows the user which menu can be opened and how it [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-555" title="VerticalMenuTitle" src="http://mediaformations.com/wp-content/uploads/2009/11/VerticalMenuTitle.png" alt="VerticalMenuTitle" width="525" height="194" />When WordPress changed their administrator layout I was fascinated with the navigation menu. It has a sleek and useful feel to it. Notable features would include the active styling to your current page, the sliding action of each menu section, the hover effect that shows the user which menu can be opened and how it keeps menus open between page views. Someone who designs and codes web sites can not just look at the end user experience but also the code behind the menu. I think WordPress does a very good job of using images and css to style the menu efficiently and cleanly but enough about WordPress let me get to what this article will be about.</p>
<p>I want to show how a vertical sliding menu can take on some of the features WordPress has implemented but also keep it simple to explain. I did not want to use any images to style the menu and keep everything as clean as possible. What I ended up with was 50% css, 25% jquery and 25% html. I used a few advanced CSS selectors and attributes (like border radius) to refine the effect.</p>
<p>Take a look at the <a href="http://mediaformations.com/examples/VerticalSlideMenuPart1.html" target="_blank">final product here</a> and read on for the explanation. Like always I have put the CSS and jquery in the same file to make it easy for you to inspect and download.</p>
<p><span id="more-464"></span>Lets start out with the base HTML. We start with a simple list</p>
<pre>&lt;div id="menu"&gt;
 &lt;ul class="navmenu"&gt;
   &lt;li&gt;&lt;div class="menutop"&gt;&lt;a href="#"&gt;Posts&lt;/a&gt;&lt;div class="toggle"&gt;+&lt;/div&gt;&lt;/div&gt;
     &lt;ul class="submenu"&gt;
       &lt;li&gt;&lt;a href="#"&gt;Add New&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;Tags&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
   &lt;/li&gt;
   &lt;li&gt;&lt;div class="menutop"&gt;&lt;a href="#"&gt;Pages&lt;/a&gt;&lt;div class="toggle"&gt;+&lt;/div&gt;&lt;/div&gt;
     &lt;ul class="submenu"&gt;
       &lt;li&gt;&lt;a href="#"&gt;Add New&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;Edit&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
   &lt;/li&gt;
   &lt;li&gt;&lt;div class="menutop menusingle"&gt;&lt;a href="#"&gt;Comments&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
   &lt;li&gt;&lt;div class="menutop"&gt;&lt;a href="#"&gt;Users&lt;/a&gt;&lt;div class="toggle"&gt;+&lt;/div&gt;&lt;/div&gt;
     &lt;ul class="submenu"&gt;
       &lt;li&gt;&lt;a href="#"&gt;Manage&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;Add New&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;Profile&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
   &lt;/li&gt;
 &lt;/ul&gt;
 &lt;/div&gt;</pre>
<p>I start by wrapping the whole thing in a div with a class of &#8216;menu&#8217;. Then everything else is nested unordered lists. Let me go over the rest of the class names.</p>
<p><img class="aligncenter size-full wp-image-548" title="menuCss" src="http://mediaformations.com/wp-content/uploads/2009/11/menuCss.png" alt="menuCss" width="525" height="400" /></p>
<dl>
<dt>navmenu</p>
</dt>
<dd>This is the class for the top most unordered list.</p>
</dd>
<dt>menutop</p>
</dt>
<dd>This is given a div within the line items that will be displayed as visual headers for each section. Wrapping your links inside of a div is only necessary for the heading line items.</p>
</dd>
<dt>menusingle</p>
</dt>
<dd>This is a special class applied to the heading line items that will not have a nested list.</p>
</dd>
<dt>toggle</p>
</dt>
<dd>This class is applied to a div tag which is inside the menutop div. This allows you to link the header title to a page while the toggle div is clicked to expand the list.</p>
</dd>
<dt>submenu</p>
</dt>
<dd>This is applied to the &#8216;ul&#8217; tag of the nested lists. </dd>
</dl>
<p>What really makes the list look nice is the CSS.</p>
<pre> /*Toggle Area*/
 #menu .toggle {float:right;width:9px; padding:5px; cursor:pointer; border-top:1px solid white; border-left:1px solid #E0E0E0; color:#999;}
 #menu ul.navmenu li:first-child .toggle{border-width:0 0 0 1px;}

 /*Menu Setup*/
 #menu ul{padding:0; margin:0; width:150px;}
 #menu ul ul{border:1px solid #CCC;}
 #menu ul.navmenu li {margin:0; list-style:none;}
 /*Links*/
 #menu ul.navmenu a, #menu ul.navmenu a:visited {text-decoration:none; padding:5px; display:block; color:#008FDD;}
 #menu ul.navmenu ul.submenu a:hover{background:#FFF4D2; color:#333;}
 /*Heading Outer div*/
 #menu ul.navmenu .menutop{border:1px solid #CCC; border-width:0 1px; overflow:hidden; width:150px; background:#F9F9F9; }
 /*Header Links*/
 #menu ul.navmenu .menutop a{width:120px;float:left;margin:0 0 1px 0; border-top:1px solid white;}
 /*Header Link Hover*/
 #menu ul.navmenu .menutop a:hover{color:#333;}
 /*Removes white border for the first header*/
 #menu ul.navmenu li:first-child .menutop a {border-width:0px;}

 /*Single Menu Width Fix*/
 #menu ul.navmenu .menusingle a{width:140px;}

 /*Border Radius and Special Border Width*/
 #menu ul.navmenu li:first-child .menutop{border-width:1px 1px 0 1px; -moz-border-radius:5px 5px 0 0;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;}
 #menu ul.navmenu li:last-child .menutop{border-width:0px 1px 1px 1px; -moz-border-radius:0 0 5px 5px; -webkit-border-bottom-left-radius:5px;-webkit-border-bottom-right-radius:5px;}
 #menu ul.navmenu li:last-child ul.submenu{-moz-border-radius:0 0 5px 5px;-webkit-border-bottom-left-radius:5px;-webkit-border-bottom-right-radius:5px;}
 #menu ul.navmenu li:last-child .menutop-open{-moz-border-radius:0;-webkit-border-radius:0px; border-width:0 1px;}</pre>
<p>Lets break it down. There is a lot here so I am only going to hit on each area.</p>
<dl>
<dt>Toggle Area</dt>
<dd>This sets up the styling for the area with the &#8220;+&#8221; and &#8220;-&#8221;. Because this is floated to the right of the heading div it needs a width and it will be used as a click-able area so I added the pointer when you roll over it. The line that uses li:first-child only selects the first line item within the ul.navmneu selection. That this way I can remove the white top border for the very first header</dd>
<dt>Menu Setup</p>
</dt>
<dd>This is the basic stuff to reset the margin, padding and to set the list style to none. I also add a border around the nested lists so that they create some separation when opened.</p>
</dd>
<dt>Links</p>
</dt>
<dd>Nothing to special here. I make sure to apply all the padding that I want for each line to the link tag. That way when I apply a hover style I can change the background color and the whole line will change.<img title="padding" src="http://mediaformations.com/wp-content/uploads/2009/11/padding.png" alt="padding" width="525" height="230" /></p>
</dd>
<dt>Heading Outer Div</p>
</dt>
<dd>In order to get the appropriate border around the menu I decided to let each heading area have a border and then the nested list get their own border. This area not only applies the border to just the sides of the heading div but also sets it&#8217;s width and overflow. The overflow is important because the items within the div will be floated so the height will not be calculated correctly without the overflow setting.<img title="HeaderArea" src="http://mediaformations.com/wp-content/uploads/2009/11/HeaderArea.png" alt="HeaderArea" width="525" height="300" /></p>
</dd>
<dt>Heading Links</p>
</dt>
<dd>This area sets up the links within the heading section. The width is set because the item is floated. Remember to add in your padding and border widths when figuring your widths.</p>
</dd>
<dt>Single Menu</p>
</dt>
<dd>I wanted to show the flexibility of coding for different situations. I made sure to take into account if a menu heading will not have any sub links. This sets the width correctly thinking that the toggle area will be removed.</p>
</dd>
<dt>Border Widths and Radius</p>
</dt>
<dd>This area has a lot of extra code for the rounded borders that look nice in Firefox and Webkit. However it also creates the top and bottom border that completes the border around the whole menu. I am using :first-child and :last-child to select the top and bottom header items. As a special note none of the border radius styles will work in IE, which is no big deal. However the :last-child also is not followed by IE but I have a fix for that in the java code. </dd>
</dl>
<p>I tried to create something that was usable out of the box but still very simple. If you are having trouble understanding the CSS I recommend getting Firebug for Firefox and using that to see what CSS is effecting what area.</p>
<p>For the javascript I am using the Jquery library and it looks like this.</p>
<pre>if ($.browser.msie){
   $('#menu ul.navmenu li:last-child .menutop').css('border-width','0 1px 1px;')
 }

 $('.toggle:not(.toggle-open)') .addClass('toggle-closed') .parents('li') .children('ul') .hide();    

 $('.toggle') .click(function(){
   if ($(this) .hasClass('toggle-open')) {
     $(this) .removeClass('toggle-open') .addClass('toggle-closed') .empty('') .append('+') .parents('li') .children('ul') .slideUp(250);
     $(this) .parent('.menutop') .removeClass('menutop-open') .addClass('menutop-closed');
   }else{
     $(this) .parent('.menutop') .removeClass('menutop-closed') .addClass('menutop-open');
     $(this) .removeClass('toggle-closed') .addClass('toggle-open') .empty('') .append('&amp;ndash;') .parents('li') .children('ul') .slideDown(250);
 }
 })</pre>
<p>This all within the normal doc.ready function that starts up the Jquery code. I first start out with a simple fix for IE not following the :last-child selector. I thought if IE does not support it I bet Jquery still does and this works. I check to see if the browser is IE and then apply the style as an inline element.</p>
<p>Before proceeding I need to explain a little about how the menu is going to work. Basically the java code will check for any toggle divs with the class of &#8220;toggle-open&#8221; and then close all the menus where the open class is not found. This is also how the java code will know if a menu is open or closed and how you can style items depending on if they are open or not.</p>
<pre>$('.toggle:not(.toggle-open)') .addClass('toggle-closed') .parents('li') .children('ul') .hide();</pre>
<p>This line looks for all the items with the class &#8220;toggle&#8221; and then looks to see if that item has &#8220;toggle-open&#8221; if not it finds the previous line item and then the next ul tag and hides it. We could have just hand coded in to hide all the sub menus before hand however this will allow those people without java enable to still view the contents of the menu. Also this allows you to specify if a menu is going to be open or not before the java gets to it.</p>
<p>The next java line is a click function that makes the sub menus slide open and closed. It starts with an if statement that looks to see if the toggle element has the class &#8220;toggle-open&#8221;, if not then it knows the menu is closed.</p>
<pre>$(this) .removeClass('toggle-open') .addClass('toggle-closed') .empty('') .append('+') .parents('li') .children('ul') .slideUp(250);</pre>
<p>The next line is used if the &#8220;toggle-open&#8221; class if found and the menu should be closed. &#8220;This&#8221; refers to the clicked item. So it removes the open class and adds the &#8220;toggle-closed&#8221; class. It then empties the text held within the toggle div and adds a plus sign. Then the parent line item is found and the next ul tag after that. Finally it slides up the sub menu.</p>
<p>The next line that adds the open or closed class to the menutop div is just for styling and I do not use it here. This would allow you to style the whole heading area for each section depending of if they are open or closed.</p>
<p>After the else statement the code is just the opposite. The only special thing is instead of adding a plus sign I add an &#8220;ndash&#8221;. This looks better than the minus sign but you can change this to add whatever you want or not add anything if you are using background images.</p>
<p>That is it. It seems like a lot of code for something so small but having a menu that is easy to use and easy on the eyes can go a long way. Please leave any questions or comments down below and thanks for reading.</p>
<p>Check out the final product in the demo.</p>
<div class='demobox'>
<div class="demo"><a href="/examples/VerticalSlideMenuPart1.html" target="_blank">Demo</a></div>
<div class="demo"><a href="/examples/VerticalSlideMenuUP.html" target="_blank">Demo &#8211; Menu that slides Up</a></div>
</div>
<p>In the next installment I will talk about how to set cookies in order to remember what menus are open between page views and also and easy way to create active styling for the current page.</p>



Share with friends:


	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F&amp;title=Vertical%20Sliding%20Menu%20with%20Jquery&amp;notes=When%20WordPress%20changed%20their%20administrator%20layout%20I%20was%20fascinated%20with%20the%20navigation%20menu.%20It%20has%20a%20sleek%20and%20useful%20feel%20to%20it.%20Notable%20features%20would%20include%20the%20active%20styling%20to%20your%20current%20page%2C%20the%20sliding%20action%20of%20each%20menu%20section%2C%20the%20ho" title="del.icio.us"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F&amp;title=Vertical%20Sliding%20Menu%20with%20Jquery&amp;bodytext=When%20WordPress%20changed%20their%20administrator%20layout%20I%20was%20fascinated%20with%20the%20navigation%20menu.%20It%20has%20a%20sleek%20and%20useful%20feel%20to%20it.%20Notable%20features%20would%20include%20the%20active%20styling%20to%20your%20current%20page%2C%20the%20sliding%20action%20of%20each%20menu%20section%2C%20the%20ho" title="Digg"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F&amp;t=Vertical%20Sliding%20Menu%20with%20Jquery" title="Facebook"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F&amp;title=Vertical%20Sliding%20Menu%20with%20Jquery" title="Mixx"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F&amp;title=Vertical%20Sliding%20Menu%20with%20Jquery" title="DZone"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Vertical%20Sliding%20Menu%20with%20Jquery&amp;link=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F" title="FriendFeed"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F&amp;title=Vertical%20Sliding%20Menu%20with%20Jquery&amp;source=MediaFormations+Welcome+to+Media+Formations&amp;summary=When%20WordPress%20changed%20their%20administrator%20layout%20I%20was%20fascinated%20with%20the%20navigation%20menu.%20It%20has%20a%20sleek%20and%20useful%20feel%20to%20it.%20Notable%20features%20would%20include%20the%20active%20styling%20to%20your%20current%20page%2C%20the%20sliding%20action%20of%20each%20menu%20section%2C%20the%20ho" title="LinkedIn"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F" title="Propeller"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F&amp;title=Vertical%20Sliding%20Menu%20with%20Jquery" title="Reddit"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fvertical-sliding-menu-with-jquery%2F&amp;title=Vertical%20Sliding%20Menu%20with%20Jquery" title="StumbleUpon"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://mediaformations.com/feed/" title="RSS"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://mediaformations.com/vertical-sliding-menu-with-jquery/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Thickbox in quirks mode</title>
		<link>http://mediaformations.com/thickbox-in-quirks-mode/</link>
		<comments>http://mediaformations.com/thickbox-in-quirks-mode/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 02:45:20 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://mediaformations.com/?p=473</guid>
		<description><![CDATA[I recently was doing some upgrades on a site that was built by a previous company. The site in question was not built with standards in mind and displays in quirks mode. The site looks fine in most browsers and although not the best idea, I have been making updates to work in quirks mode. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-477" title="ThickBox" src="http://mediaformations.com/wp-content/uploads/2009/10/ThickBox-head.jpg" alt="ThickBox" width="525" height="200" /></p>
<p>I recently was doing some upgrades on a site that was built by a previous company. The site in question was not built with standards in mind and displays in quirks mode. The site looks fine in most browsers and although not the best idea, I have been making updates to work in quirks mode. As you might have guessed I wanted to incorporate the Jquery library, Thickbox for image viewing. The only problem is that when you view an image while scrolled down on a page the Thickbox image shows at the top of the page. You have to scroll up in order to see the image. This only happens in IE and only when viewing a page in quirks mode.</p>
<p><span id="more-473"></span></p>
<p>I took a little time to figure out what exactly the problem was. It turns out that if you specify a top margin while in IE and quirks mode the browser interprets that margin from the top of the page and not the top of the display window. So if you specify a top margin of 100px the window will be placed 100px from the literal top of the page and not the top of where you have scrolled to. To fix this we just add a few lines into the Thickbox code to check for IE and quirks mode. They are as follows.</p>
<pre>if (jQuery.browser.msie &amp;&amp; document.compatMode=="BackCompat"){ }
 else{
 $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
 }</pre>
<p>I added this in the function tb_position() around line 282. You should see the $(&#8216;#TB_window&#8217;) line. This is what adds the top margin to the box. I have added a simple if statement that checks to see if the browser is Microsoft IE and if the document is in BackCompat (Quirks) mode. If these are true then I just have a blank statement but you could add something if you need. The else statement just has the line which is already in the Thickbox code. That is all you need to do. Compress your code if you wish, I used <a href="http://javascriptcompressor.com/" target="_blank">javascriptcompressor.com</a>.</p>
<p>This is my whole tb_position function.</p>
<pre>function tb_position() {
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
 if ( !(jQuery.browser.msie &amp;&amp; jQuery.browser.version &lt; 7)) { // take away IE6
 if (jQuery.browser.msie &amp;&amp; document.compatMode=="BackCompat"){ }
 else{
 $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
 }
 }
}</pre>
<p>After taking a look at the <a href="http://jquery.com/demo/thickbox/" target="_blank">Thickbox</a> web page I noticed that it is not being maintained and I am sorry to hear that. So add these few lines of code if you already implement it and need quirks mode compatibility.</p>



Share with friends:


	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F&amp;title=Thickbox%20in%20quirks%20mode&amp;notes=%0D%0A%0D%0AI%20recently%20was%20doing%20some%20upgrades%20on%20a%20site%20that%20was%20built%20by%20a%20previous%20company.%20The%20site%20in%20question%20was%20not%20built%20with%20standards%20in%20mind%20and%20displays%20in%20quirks%20mode.%20The%20site%20looks%20fine%20in%20most%20browsers%20and%20although%20not%20the%20best%20idea%2C%20I%20have%20" title="del.icio.us"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F&amp;title=Thickbox%20in%20quirks%20mode&amp;bodytext=%0D%0A%0D%0AI%20recently%20was%20doing%20some%20upgrades%20on%20a%20site%20that%20was%20built%20by%20a%20previous%20company.%20The%20site%20in%20question%20was%20not%20built%20with%20standards%20in%20mind%20and%20displays%20in%20quirks%20mode.%20The%20site%20looks%20fine%20in%20most%20browsers%20and%20although%20not%20the%20best%20idea%2C%20I%20have%20" title="Digg"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F&amp;t=Thickbox%20in%20quirks%20mode" title="Facebook"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F&amp;title=Thickbox%20in%20quirks%20mode" title="Mixx"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F&amp;title=Thickbox%20in%20quirks%20mode" title="DZone"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Thickbox%20in%20quirks%20mode&amp;link=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F" title="FriendFeed"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F&amp;title=Thickbox%20in%20quirks%20mode&amp;source=MediaFormations+Welcome+to+Media+Formations&amp;summary=%0D%0A%0D%0AI%20recently%20was%20doing%20some%20upgrades%20on%20a%20site%20that%20was%20built%20by%20a%20previous%20company.%20The%20site%20in%20question%20was%20not%20built%20with%20standards%20in%20mind%20and%20displays%20in%20quirks%20mode.%20The%20site%20looks%20fine%20in%20most%20browsers%20and%20although%20not%20the%20best%20idea%2C%20I%20have%20" title="LinkedIn"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F" title="Propeller"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F&amp;title=Thickbox%20in%20quirks%20mode" title="Reddit"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fthickbox-in-quirks-mode%2F&amp;title=Thickbox%20in%20quirks%20mode" title="StumbleUpon"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://mediaformations.com/feed/" title="RSS"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://mediaformations.com/thickbox-in-quirks-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Run In With The Quirks Mode Police</title>
		<link>http://mediaformations.com/a-run-in-with-the-quirks-mode-police/</link>
		<comments>http://mediaformations.com/a-run-in-with-the-quirks-mode-police/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 14:00:06 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://mediaformations.com/?p=344</guid>
		<description><![CDATA[When I first started to design this site I did not pay much attention to standards or validation. I fired up my php / html editor and Firefox then got to work. When I got the basic template squared away I decided to check out what Internet Explorer 8 had done to my design. I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-345" title="Validation" src="http://mediaformations.com/wp-content/uploads/2009/08/Validation.jpg" alt="Validation" width="525" height="303" /></p>
<p>When I first started to design this site I did not pay much attention to standards or validation. I fired up my php / html editor and Firefox then got to work. When I got the basic template squared away I decided to check out what Internet Explorer 8 had done to my design. I was naive to think that Microsoft had retooled IE8 into a smart self helping browser. All of my floats were the wrong width, the text was much larger basically the whole layout was broken. I noticed that IE was rendering in the dreaded quirks mode. This started several rounds of Googling to find out if I was using the right DocType or maybe I was missing a tag or it could be any number of other items IE thought I needed.</p>
<p>Turns out that with IE8 came a brand new compatibility tag that would force the browser to use a specified rendering mode.</p>
<pre><span>&lt;<span>meta</span><span> <span>content</span>="<span>IE=8(Insert browser mode here)</span>"</span><span> <span>http-equiv</span>="<span>X-UA-Compatible</span>"</span><span>/&gt;</span></span></pre>
<p><span><span>This will force IE8 to specifically use the friendly and more standards compliant IE8 rendering mode. The fix works but this only targets IE8, all the people still using IE7 (upgrade please) will get the broken quirks mode. You may ask you self &#8220;Change the above code to IE=7 and all is good&#8221;. This will force IE8 to use the rendering engine of IE7 however IE7 will still do its own thing.</span></span></p>
<p><span><span>This is where the &#8220;House&#8221; </span></span>epiphany <span><span>moment happened. I found a <a href="http://www.thedreamshed.com/?p=29" target="_blank">web site</a> that mentioned something about having a commented line above the DocType would make Internet Explorer do weird things. I took a look at my code and I had a commented line </span></span></p>
<pre><span><span>&lt;!-- Insert Header File --&gt;
&lt;?php get_header(); ?&gt;
</span></span></pre>
<p><span><span>above my php line of code that inserted the header. I removed the commented line and all is well.</span></span></p>
<pre><span><span>&lt;?php get_header(); ?&gt;
</span></span></pre>
<p>I do not even need the special IE8 rendering mode meta tag anymore. I could not believe that something so ridiculous would keep IE from rendering things in a standards mode.</p>



Share with friends:


	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F&amp;title=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police&amp;notes=%0D%0A%0D%0AWhen%20I%20first%20started%20to%20design%20this%20site%20I%20did%20not%20pay%20much%20attention%20to%20standards%20or%20validation.%20I%20fired%20up%20my%20php%20%2F%20html%20editor%20and%20Firefox%20then%20got%20to%20work.%20When%20I%20got%20the%20basic%20template%20squared%20away%20I%20decided%20to%20check%20out%20what%20Internet%20Explor" title="del.icio.us"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F&amp;title=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police&amp;bodytext=%0D%0A%0D%0AWhen%20I%20first%20started%20to%20design%20this%20site%20I%20did%20not%20pay%20much%20attention%20to%20standards%20or%20validation.%20I%20fired%20up%20my%20php%20%2F%20html%20editor%20and%20Firefox%20then%20got%20to%20work.%20When%20I%20got%20the%20basic%20template%20squared%20away%20I%20decided%20to%20check%20out%20what%20Internet%20Explor" title="Digg"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F&amp;t=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police" title="Facebook"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F&amp;title=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police" title="Mixx"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F&amp;title=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police" title="DZone"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police&amp;link=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F" title="FriendFeed"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F&amp;title=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police&amp;source=MediaFormations+Welcome+to+Media+Formations&amp;summary=%0D%0A%0D%0AWhen%20I%20first%20started%20to%20design%20this%20site%20I%20did%20not%20pay%20much%20attention%20to%20standards%20or%20validation.%20I%20fired%20up%20my%20php%20%2F%20html%20editor%20and%20Firefox%20then%20got%20to%20work.%20When%20I%20got%20the%20basic%20template%20squared%20away%20I%20decided%20to%20check%20out%20what%20Internet%20Explor" title="LinkedIn"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F" title="Propeller"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F&amp;title=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police" title="Reddit"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fa-run-in-with-the-quirks-mode-police%2F&amp;title=A%20Run%20In%20With%20The%20Quirks%20Mode%20Police" title="StumbleUpon"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://mediaformations.com/feed/" title="RSS"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://mediaformations.com/a-run-in-with-the-quirks-mode-police/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a simple feedback button</title>
		<link>http://mediaformations.com/creating-a-simple-feedback-button/</link>
		<comments>http://mediaformations.com/creating-a-simple-feedback-button/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 14:00:40 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://mediaformations.com/?p=295</guid>
		<description><![CDATA[A trend that has becoming more popular is having a floating feedback button on your home page so you can take advantage of your visitors opinion. The button can link to a form where the user can express their thoughts about the site or a page that allows them to vote on what features they [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-307" title="FeedBackButtonTitle" src="http://mediaformations.com/wp-content/uploads/2009/07/FeedBackButtonTitle.jpg" alt="FeedBackButtonTitle" width="525" height="242" /></p>
<p>A trend that has becoming more popular is having a floating feedback button on your home page so you can take advantage of your visitors opinion. The button can link to a form where the user can express their thoughts about the site or a page that allows them to vote on what features they would like to see on the site. You can mimic the feedback button for your own site with a some basic html and css.</p>
<p>Sneak a peek at the <a href="http://mediaformations.com/examples/SimpleFeedbackButton.html" target="_blank">final product</a>. (I hope you like the red, white and blue.)</p>
<p><span id="more-295"></span></p>
<p>After completing the example page I was surprise how easy this is to do. I will start out with a simple page that has a container which is centered on the page. Inside that I have a header, navigation area, content area and a footer.</p>
<pre>&lt;div id="container"&gt;
 &lt;div id="header"&gt;&lt;h2&gt;Header Here&lt;/h2&gt;&lt;/div&gt;
 &lt;div id="nav"&gt;Simple Nav&lt;/div&gt;
 &lt;div id="content"&gt;
    &lt;h3&gt;Content&lt;/h3&gt;
    &lt;p&gt;Words and paragraphs go here&lt;/p&gt;
 &lt;/div&gt;
 &lt;div id="footer"&gt;&lt;h4&gt;Footer&lt;/h4&gt;&lt;/div&gt;
&lt;/div&gt;</pre>
<p>Nothing crazy here just some simple divs and the following CSS. I have added some <a href="http://www.lipsum.com/" target="_blank">lorem ispum</a> to the content area in my example. I do not show it in the code to save space.</p>
<pre> body{font:.8em/1.6 Arial, Helvetica, sans-serif ; background:#CCC;}
 img{border:none;}
 #container{width:800px; margin:0 auto; border:1px solid #666666;}
 #header,#content,#footer{margin:0; padding:20px;}
 #header{background:red;}
 #nav{background:#333333; color:white; padding:10px;}
 #content{background:white;}
 #footer{background:blue;}</pre>
<p>Again some simple background colors so we can tell where each section is being displayed. The above makes something that looks like this.</p>
<p><img class="aligncenter size-full wp-image-305" title="FeedBackButtonPage" src="http://mediaformations.com/wp-content/uploads/2009/07/FeedBackButtonPage.jpg" alt="FeedBackButtonPage" width="525" height="461" /></p>
<p>The feedback button has text that runs vertically and I thought it would be easy to do with CSS or Javascript. However after some looking around I found a few complicated Javascript solutions that only work with specific fonts and a CSS solution that only works in IE. For ease of implementation  I find that you get a much better result if you create an image file for the text. I choose to create a simple PNG file with white letters and a slight drop shadow.</p>
<p><img class="aligncenter size-full wp-image-310" title="FeedBackButtonPNG" src="http://mediaformations.com/wp-content/uploads/2009/07/FeedBackButtonPNG.jpg" alt="FeedBackButtonPNG" width="500" height="129" /></p>
<p>Here I show the feedback letters on different backgrounds for illustration purposes. I will use a png file where the background is transparent. This will allow for the maximum flexability. Now with the image made we can create the html and CSS needed. First lets create a div for the feedback image to be displayed in.</p>
<pre>&lt;div id="feedback"&gt;&lt;a href"#"&gt;&lt;img src="images/feedback.png" /&gt;&lt;/a&gt;&lt;/div&gt;</pre>
<p>I have made a div with an id of &#8220;feedback&#8221; and inside of that a hyperlink anchor tag and finally inside of that the feedback text image. This div can be placed any where on your page however I suggest that it goes toward the bottom. This will allow the more important things on your page to load first. Now for the CSS that will position this div in the correct spot.</p>
<pre>#feedback a{ display:block; position:fixed; top:200px; right:-1px; background:green; padding:7px 5px;
 border:1px solid #030;
 border-left-color:#060;
 border-top-color:#090;
 }
 #feedback a:hover{background:#030;border:1px solid #030;}</pre>
<p>I started off with selecting the hyperlink anchor tag with in the div &#8220;feedback&#8221;.</p>
<p><img class="aligncenter size-full wp-image-306" title="FeedBackButton" src="http://mediaformations.com/wp-content/uploads/2009/07/FeedBackButton.jpg" alt="FeedBackButton" width="387" height="242" /></p>
<dl>
<dt>display:block</dt>
<dd>Because the anchor tag is not a block level item we need to tell it to display as one. This will allow the positioning to work.</dd>
<dt>position:fixed</dt>
<dd>A fixed position will plant the feedback button in one location relative to the browser window.</dd>
<dt>top:200px; right:-1px;</dt>
<dd>Top places the feedback button exactly 200 pixels from the top of the window and right places button one pixel to the right off the window. This is done so that when a one pixel border is applied it doesn&#8217;t show on the right side.</dd>
<dt>background:green;</dt>
<dd>This creates a green background for the feedback button. You can choose any color you like.</dd>
<dt>padding:7px 5px;</dt>
<dd>This creates a little padding around the image. This may or may not be necessary depending on your image.</dd>
<dt>border:1px solid #030;</dt>
<dd>Finally I created a dark green border around the feedback image. I have added other border colors to create a more three dimensional look.</dd>
</dl>
<p>The next selector uses the CSS pseudo hover class to create a rollover effect. The class changes the background to a darker green and applies the same color for the border.</p>
<p>I want to add that I probably didn&#8217;t need to have hyperlink anchor tag inside of a div tag. I could have selected the anchor by placing a class on it. I feel like the code is easier to read and skim when you have divs that outline what is going on. It is a matter of personal choice. It will work either way with a little CSS tweaking.</p>
<p>That is all there is to it. <a href="/contact">Let me know</a> if you have any other web elements you would like to see explained or if you have any questions.</p>
<p><a href="/examples/SimpleFeedbackButton.html" target="_blank">Feedback button example</a></p>



Share with friends:


	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F&amp;title=Creating%20a%20simple%20feedback%20button&amp;notes=%0D%0A%0D%0AA%20trend%20that%20has%20becoming%20more%20popular%20is%20having%20a%20floating%20feedback%20button%20on%20your%20home%20page%20so%20you%20can%20take%20advantage%20of%20your%20visitors%20opinion.%20The%20button%20can%20link%20to%20a%20form%20where%20the%20user%20can%20express%20their%20thoughts%20about%20the%20site%20or%20a%20page%20tha" title="del.icio.us"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F&amp;title=Creating%20a%20simple%20feedback%20button&amp;bodytext=%0D%0A%0D%0AA%20trend%20that%20has%20becoming%20more%20popular%20is%20having%20a%20floating%20feedback%20button%20on%20your%20home%20page%20so%20you%20can%20take%20advantage%20of%20your%20visitors%20opinion.%20The%20button%20can%20link%20to%20a%20form%20where%20the%20user%20can%20express%20their%20thoughts%20about%20the%20site%20or%20a%20page%20tha" title="Digg"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F&amp;t=Creating%20a%20simple%20feedback%20button" title="Facebook"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F&amp;title=Creating%20a%20simple%20feedback%20button" title="Mixx"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F&amp;title=Creating%20a%20simple%20feedback%20button" title="DZone"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Creating%20a%20simple%20feedback%20button&amp;link=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F" title="FriendFeed"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F&amp;title=Creating%20a%20simple%20feedback%20button&amp;source=MediaFormations+Welcome+to+Media+Formations&amp;summary=%0D%0A%0D%0AA%20trend%20that%20has%20becoming%20more%20popular%20is%20having%20a%20floating%20feedback%20button%20on%20your%20home%20page%20so%20you%20can%20take%20advantage%20of%20your%20visitors%20opinion.%20The%20button%20can%20link%20to%20a%20form%20where%20the%20user%20can%20express%20their%20thoughts%20about%20the%20site%20or%20a%20page%20tha" title="LinkedIn"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F" title="Propeller"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F&amp;title=Creating%20a%20simple%20feedback%20button" title="Reddit"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fcreating-a-simple-feedback-button%2F&amp;title=Creating%20a%20simple%20feedback%20button" title="StumbleUpon"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://mediaformations.com/feed/" title="RSS"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://mediaformations.com/creating-a-simple-feedback-button/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Accordion Tables with Jquery</title>
		<link>http://mediaformations.com/accordion-tables-with-jquery/</link>
		<comments>http://mediaformations.com/accordion-tables-with-jquery/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 14:00:09 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://mediaformations.com/?p=223</guid>
		<description><![CDATA[This idea of collapsing tables came to me while trying to retrofit a Lotus Domino web application with better usability. The main principal is to use Jquery to hide part of the table when a specific cell or row is clicked. Peek at the final product. There are several really great Jquery html integration tutorials on [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-238" title="Heading" src="http://mediaformations.com/wp-content/uploads/2009/07/Heading.jpg" alt="Heading" width="520" height="182" /></p>
<p>This idea of collapsing tables came to me while trying to retrofit a Lotus Domino web application with better usability. The main principal is to use Jquery to hide part of the table when a specific cell or row is clicked.<a href="http://mediaformations.com/examples/AccordionTableExample.html" target="_blank"></a></p>
<p><a href="http://mediaformations.com/examples/AccordionTableExample.html" target="_blank">Peek at the final product.</a></p>
<p>There are several really great Jquery html integration tutorials on the web. In fact <a href="http://net.tutsplus.com/tutorials/javascript-ajax/using-jquery-to-manipulate-and-filter-data/" target="_blank">this</a> is a really great one. The previously linked page details how to setup Jquery to easily create zebra rows, row hover effect and row filtering. I will be showing you something a little different but equally easy to setup.</p>
<p>I will be setting up a table so that when you click on the head row the body will collapse or hide. This sounds pretty easy if you have a little Jquery knowledge but I am going to show you a few things that make the effect easy to reproduce when you do not know how many tables you will end up with. The main problem that I was having with the Lotus web application was that the tables was being created dynamically. Some times there might be 3 tables and sometimes there might be 10. Also I had nested tables which complicates things a little. I will explain more as we get into it. So lets start.</p>
<p><span id="more-223"></span></p>
<p>First we are going to need a table. I am going to assume you know how to create a table in html. There are a few important parts. The table needs a head section and a body section.</p>
<p><img class="aligncenter size-full wp-image-237" title="SingleTable" src="http://mediaformations.com/wp-content/uploads/2009/07/SingleTable.png" alt="SingleTable" width="520" height="140" /></p>
<pre>&lt;table class="StateTable" rules="all" cellpadding="0" cellspacing="0"&gt;
   &lt;thead&gt;     &lt;!--You need to have a table head section--&gt;
      &lt;tr class="statetablerow"&gt;
         &lt;th&gt;Missouri&lt;/th&gt;     &lt;!--Use "th" tags for your table heading cells--&gt;
         &lt;th&gt;Type&lt;/th&gt;
         &lt;th&gt;Users&lt;/th&gt;
      &lt;/tr&gt;
   &lt;/thead&gt;     &lt;!--Close the table head section--&gt;
   &lt;tbody&gt;     &lt;!--Open the table body section--&gt;
      &lt;tr&gt;
         &lt;td&gt;&lt;/td&gt;     &lt;!--Use normal "td" tags for the body cells--&gt;
         &lt;td&gt;Admin&lt;/td&gt;
         &lt;td&gt;User Name #1&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;&lt;/td&gt;
         &lt;td&gt;Reader&lt;/td&gt;
         &lt;td&gt;User Name #2&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;&lt;/td&gt;
         &lt;td&gt;Reader&lt;/td&gt;
         &lt;td&gt;User Name #3&lt;/td&gt;
      &lt;/tr&gt;
   &lt;/tbody&gt;
&lt;/table&gt;</pre>
<p>We are going to nest a new table inside the last row of the first table. We need to create a new row and a single cell that spans all the columns of the table. With a nested table the code should look like this.</p>
<p><img class="aligncenter size-full wp-image-236" title="NestedTable" src="http://mediaformations.com/wp-content/uploads/2009/07/NestedTable.png" alt="NestedTable" width="520" height="281" /></p>
<pre>&lt;table class="StateTable" rules="all" cellpadding="0" cellspacing="0"&gt;
   &lt;thead&gt;
      &lt;tr class="statetablerow"&gt;
         &lt;th&gt;Missouri&lt;/th&gt;
         &lt;th&gt;Type&lt;/th&gt;
         &lt;th&gt;Users&lt;/th&gt;
      &lt;/tr&gt;
   &lt;/thead&gt;
   &lt;tbody&gt;
      &lt;tr&gt;
         &lt;td&gt;&lt;/td&gt;
         &lt;td&gt;Admin&lt;/td&gt;
         &lt;td&gt;User Name #1&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;&lt;/td&gt;
         &lt;td&gt;Reader&lt;/td&gt;
         &lt;td&gt;User Name #2&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;&lt;/td&gt;
         &lt;td&gt;Reader&lt;/td&gt;
         &lt;td&gt;User Name #3&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr colspan="3"&gt;     &lt;!--Added row for the nested table--&gt;
         &lt;td&gt;
            &lt;table class="CityTable" rules="all" cellpadding="0" cellspacing="0"&gt;     &lt;!--Start of the nested table--&gt;
               &lt;thead&gt;
                  &lt;tr&gt;
                     &lt;th&gt;St. Louis&lt;/th&gt;
                     &lt;th&gt;Type&lt;/th&gt;
                     &lt;th&gt;Users&lt;/th&gt;
                  &lt;/tr&gt;
               &lt;/thead&gt;
               &lt;tbody&gt;
                  &lt;tr&gt;
                     &lt;td&gt;&lt;/td&gt;
                     &lt;td&gt;Admin&lt;/td&gt;
                     &lt;td&gt;User Name #1&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                     &lt;td&gt;&lt;/td&gt;
                     &lt;td&gt;Reader&lt;/td&gt;
                     &lt;td&gt;User Name #2&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                     &lt;td&gt;&lt;/td&gt;
                     &lt;td&gt;Reader&lt;/td&gt;
                     &lt;td&gt;User Name #3&lt;/td&gt;
                 &lt;/tr&gt;
              &lt;/tbody&gt;
           &lt;/table&gt;
        &lt;/td&gt;
     &lt;/tr&gt;
   &lt;/tbody&gt;
&lt;/table&gt;</pre>
<p>Ok now for the fun stuff. With the correct ground work setup we can now implement our Jquery JavaScript code. The first thing to do is link the Jquery library. You can do this by linking directly from Googles code server, from Jquery or download and host your own copy. I chose to link from Google. This code goes in the head section of your page.</p>
<pre>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;</pre>
<p>You may have noticed that both of my tables have classes applied to them. This is so we can determine if the user clicked on the outer or inner table. If you have multiple inner tables they would have the same class. We now have to create the javascript that Jquery will use. I will start with the inner city table.</p>
<pre>$('table.CityTable th') .click(
	function() {
		$(this) .parents('table.CityTable') .children('tbody') .toggle();
	}
)</pre>
<p>That is it, not much to it. This needs to go into a Document.ready function so it will be loaded when the page is finished loaded. See Jquery documentation if you do not know what I am talking about. To help you understand I will go over this line by line.</p>
<dl>
<dt>$(&#8216;table.CityTable th&#8217;) .click(</dt>
<dd>This line starts the Jquery function. It tells Jquery to find the css element &#8220;<em>table.CityTable th</em>&#8221; or a header cell inside a table that has the class of CityTable. Then because elements in one line are executed right after each other the &#8220;<em>.click</em>&#8221; tells Jquery to add a click event to the previous css element.</dd>
<dt>function() {</dt>
<dd>This line opens the function that will happen when the click event is triggered.</dd>
<dt>$(this) .parents(&#8216;table.CityTable&#8217;) .children(&#8216;tbody&#8217;) .toggle();</dt>
<dd>This is where the magic happens. It is a long one so I will try and explain each part. When the click event goes off it will trigger this line. Start with a Jquery function as before but instead of putting the css element we want to use we put the text &#8220;<em>this</em>&#8220;. &#8220;<em>This</em>&#8221; refers to the element being used in the triggering function, which is &#8220;<em>table.CityTable th</em>&#8220;.</dd>
<dd>Then we apply the selector &#8220;<em>.parents()</em>&#8221; which tells Jquery to look for the previous element that is &#8220;<em>table.CityTable</em>&#8220;. Effectively we are now selecting the css element &#8220;<em>table.CityTable</em>&#8221; where the click happened. So if you have more than one table with this element you will only select the table were the user clicked. However our main objective is to had the body of the table when the user clicks on the header.</dd>
<dd>With the table now selected we need to continue and select just the body. This happens with the &#8220;<em>.children()</em>&#8221; selector. It tells Jquery to look for the next &#8220;<em>tbody</em>&#8221; tag within the previous element. Now we have effectively selected the css element &#8220;<em>table.CityTable tbody</em>&#8221; within the table where the click happened.</dd>
<dd>Finally with the right element selected we can hide it. Jquery has a simple function for this called &#8220;<em>.toggle()</em>&#8220;. If no properties are passed to this function it just hides the selected element by applying a style of display:none.</dd>
<dt>} )</dt>
<dd>This is what&#8217;s left. It closes the inner function and the click event.</dd>
</dl>
<p>Now the outer table has very similar code however because you select elements via CSS it can be tricky to pick the correct selector. If you use &#8220;table.StateTable th&#8221; you end up selecting not only the row you intended but also the other &#8220;th&#8221; cells in the nested table. That is because the before mentioned selector picks any and all &#8220;th&#8221; tags within the &#8220;StateTable&#8221; class. We can get around this by adding a class to the header row of the outer tables header row. This will keep our selector with the row that has the &#8220;.statetablerow&#8221; class.</p>
<pre>$('table.StateTable tr.statetablerow th') .click(
	function() {
		$(this) .parents('table.StateTable') .children('tbody') .toggle();
	}
)</pre>
<p>This is extremely similar to the inner table code. The best part is because we used the parents and children selectors we avoid having to create code for each table we want to have the effect. Also it allows you to use the same code over multiple pages or for any number of tables on the same page. Add some css to make things look a little nicer and you are all set.</p>
<p>Here is an example of the effect. I have listed the css and javascript in the document. Use firebug or your favorite code inspector.</p>
<p><a href="http://mediaformations.com/examples/AccordionTableExample.html" target="_blank">Accordion Table Example</a></p>



Share with friends:


	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F&amp;title=Accordion%20Tables%20with%20Jquery&amp;notes=%0D%0A%0D%0AThis%20idea%20of%20collapsing%20tables%20came%20to%20me%20while%20trying%20to%20retrofit%20a%20Lotus%20Domino%20web%20application%20with%C2%A0better%20usability.%20The%20main%20principal%20is%20to%20use%20Jquery%20to%20hide%20part%20of%20the%20table%20when%20a%20specific%20cell%20or%20row%20is%20clicked.%0D%0A%0D%0APeek%20at%20the%20final%20p" title="del.icio.us"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F&amp;title=Accordion%20Tables%20with%20Jquery&amp;bodytext=%0D%0A%0D%0AThis%20idea%20of%20collapsing%20tables%20came%20to%20me%20while%20trying%20to%20retrofit%20a%20Lotus%20Domino%20web%20application%20with%C2%A0better%20usability.%20The%20main%20principal%20is%20to%20use%20Jquery%20to%20hide%20part%20of%20the%20table%20when%20a%20specific%20cell%20or%20row%20is%20clicked.%0D%0A%0D%0APeek%20at%20the%20final%20p" title="Digg"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F&amp;t=Accordion%20Tables%20with%20Jquery" title="Facebook"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F&amp;title=Accordion%20Tables%20with%20Jquery" title="Mixx"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F&amp;title=Accordion%20Tables%20with%20Jquery" title="DZone"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Accordion%20Tables%20with%20Jquery&amp;link=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F" title="FriendFeed"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F&amp;title=Accordion%20Tables%20with%20Jquery&amp;source=MediaFormations+Welcome+to+Media+Formations&amp;summary=%0D%0A%0D%0AThis%20idea%20of%20collapsing%20tables%20came%20to%20me%20while%20trying%20to%20retrofit%20a%20Lotus%20Domino%20web%20application%20with%C2%A0better%20usability.%20The%20main%20principal%20is%20to%20use%20Jquery%20to%20hide%20part%20of%20the%20table%20when%20a%20specific%20cell%20or%20row%20is%20clicked.%0D%0A%0D%0APeek%20at%20the%20final%20p" title="LinkedIn"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F" title="Propeller"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F&amp;title=Accordion%20Tables%20with%20Jquery" title="Reddit"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmediaformations.com%2Faccordion-tables-with-jquery%2F&amp;title=Accordion%20Tables%20with%20Jquery" title="StumbleUpon"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://mediaformations.com/feed/" title="RSS"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://mediaformations.com/accordion-tables-with-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NextGen gallery effects not working</title>
		<link>http://mediaformations.com/nextgen-gallery-effects-not-working/</link>
		<comments>http://mediaformations.com/nextgen-gallery-effects-not-working/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 18:00:13 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://mediaformations.com/?p=198</guid>
		<description><![CDATA[After doing some redesigning on this site I noticed that my NextGen gallery effects (ie. thickbox, lightbox) stopped working. When you clicked on an image it would link you directly to the jpeg image. I was getting very frustrated but after some research it turns out I was missing a very important line of code [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-208  aligncenter" title="NextGen Screen Shot" src="http://mediaformations.com/wp-content/uploads/2009/07/screenshot-2.jpg" alt="NextGen Screen Shot" width="400" height="205" /></p>
<p>After doing some redesigning on this site I noticed that my NextGen gallery effects (ie. thickbox, lightbox) stopped working. When you clicked on an image it would link you directly to the jpeg image. I was getting very frustrated but after some research it turns out I was missing a very important line of code in my footer. I needed to add the php line &#8220;<strong>wp_footer();</strong>&#8221; to my footer file.</p>
<p>From WordPress <a href="http://codex.wordpress.org/Theme_Development" target="_blank" >Theme Development</a> Page:</p>
<blockquote><p>Goes in the &#8220;footer&#8221; of a theme; <tt>footer.php</tt> template. Example plugin use: insert PHP code that needs to run after everything else, at the bottom of the footer.</p>
<dl>
<dd> Usage: <tt>&lt;?php do_action('wp_footer'); ?&gt;</tt> </dd>
<dd><em>-or-</em> <tt>&lt;?php wp_footer(); ?&gt;</tt> </dd>
</dl>
</blockquote>
<p>This creates a space for wordpress to add code into your footer. NextGen gallery adds the thickbox javascript links in the footer so they are called at the end of a page load. If you are having the same problem try added the footer code to your theme.</p>



Share with friends:


	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F&amp;title=NextGen%20gallery%20effects%20not%20working&amp;notes=%0D%0A%0D%0AAfter%20doing%20some%20redesigning%20on%20this%20site%20I%20noticed%20that%20my%20NextGen%20gallery%20effects%20%28ie.%20thickbox%2C%20lightbox%29%20stopped%20working.%20When%20you%20clicked%20on%20an%20image%20it%20would%20link%20you%20directly%20to%20the%20jpeg%20image.%20I%20was%20getting%20very%20frustrated%20but%20after%20some%20" title="del.icio.us"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F&amp;title=NextGen%20gallery%20effects%20not%20working&amp;bodytext=%0D%0A%0D%0AAfter%20doing%20some%20redesigning%20on%20this%20site%20I%20noticed%20that%20my%20NextGen%20gallery%20effects%20%28ie.%20thickbox%2C%20lightbox%29%20stopped%20working.%20When%20you%20clicked%20on%20an%20image%20it%20would%20link%20you%20directly%20to%20the%20jpeg%20image.%20I%20was%20getting%20very%20frustrated%20but%20after%20some%20" title="Digg"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F&amp;t=NextGen%20gallery%20effects%20not%20working" title="Facebook"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F&amp;title=NextGen%20gallery%20effects%20not%20working" title="Mixx"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F&amp;title=NextGen%20gallery%20effects%20not%20working" title="DZone"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=NextGen%20gallery%20effects%20not%20working&amp;link=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F" title="FriendFeed"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F&amp;title=NextGen%20gallery%20effects%20not%20working&amp;source=MediaFormations+Welcome+to+Media+Formations&amp;summary=%0D%0A%0D%0AAfter%20doing%20some%20redesigning%20on%20this%20site%20I%20noticed%20that%20my%20NextGen%20gallery%20effects%20%28ie.%20thickbox%2C%20lightbox%29%20stopped%20working.%20When%20you%20clicked%20on%20an%20image%20it%20would%20link%20you%20directly%20to%20the%20jpeg%20image.%20I%20was%20getting%20very%20frustrated%20but%20after%20some%20" title="LinkedIn"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F" title="Propeller"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F&amp;title=NextGen%20gallery%20effects%20not%20working" title="Reddit"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmediaformations.com%2Fnextgen-gallery-effects-not-working%2F&amp;title=NextGen%20gallery%20effects%20not%20working" title="StumbleUpon"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://mediaformations.com/feed/" title="RSS"><img src="http://mediaformations.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://mediaformations.com/nextgen-gallery-effects-not-working/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
