
<?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>Green ComplexPHP | Green Complex</title>
	<atom:link href="http://green.cx/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://green.cx</link>
	<description></description>
	<lastBuildDate>Fri, 23 Dec 2011 17:12:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Add Thumbnails to FB Recommend Social Plugin</title>
		<link>http://green.cx/guides/add-thumbnails-to-facebook-recommend-social-plugin/</link>
		<comments>http://green.cx/guides/add-thumbnails-to-facebook-recommend-social-plugin/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 04:30:50 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=1605</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><br/>Adding icons from your wordpress posts to the Facbook recommend widget is really easy. Adding thumbnails to the facebook recommend or like widget in wordpress is super easy if you already use a custom field to store the thumbnail location for each post. This is a great way to add thumbnails and can really make your website stand [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><br/><p>Adding icons from your wordpress posts to the Facbook recommend widget is really easy.<span id="more-1605"></span></p>
<div id="attachment_1609" class="wp-caption alignleft" style="width: 193px"><a href="http://green.cx/files/2010/06/facebook-icons.png"><img class="size-full wp-image-1609" title="facebook icons" src="http://green.cx/files/2010/06/facebook-icons.png" alt="" width="183" height="294" /></a><p class="wp-caption-text">Thumbnails on the Facebook Recommend Social Widget</p></div>
<p>Adding thumbnails to the facebook recommend<br />
or like widget in wordpress is super easy if you<br />
already use a custom field to store the<br />
thumbnail location for each post.</p>
<p>This is a great way to add thumbnails and can really<br />
make your website stand out on facebook.<br />
You can look at the live example on my website,<br />
on the right where my widget is or<br />
on the screenshot on the left.</p>
<p>See all the icons right there in the feed?<br />
It&#8217;s actually really easy with wordpress!</p>
<p>Ok, lets get started:</p>
<p>Start by pasting this code in your header.php<br />
file that is found in your theme&#8217;s folder.</p>
<p>Inside the &lt;head&gt; section somewhere,<br />
preferably at the top in header.php.<br />
(*Note this code may need some Modification for your specific theme*)</p>
<pre>&lt;? // META FOR FAILBOOK ?&gt;
&lt;meta property="og:title" content="&lt;? if (is_single()){?&gt;&lt;? wp_title('');?&gt;<strong><span style="text-decoration: underline">|Custom Tagline</span></strong>&lt;? } ?&gt;"/&gt;
&lt;meta property="og:site_name" content="<strong><span style="text-decoration: underline">Green Complex</span></strong>"/&gt;
&lt;?php $thumb = get_post_meta($post-&gt;ID, '<strong><span style="text-decoration: underline">thumb</span></strong>', TRUE); ?&gt;
&lt;meta property="og:image" content="&lt;?php echo $thumb ?&gt;"/&gt;</pre>
<p>Make sure to make any changes you need in the<strong> <span style="text-decoration: underline">bold</span> <span style="text-decoration: underline">sections</span></strong><span style="text-decoration: underline"> </span>to tweak it just right!</p>
<p>For those webmasters who want to know what&#8217;s going on, I&#8217;ll walk with you line by line. <img src='http://green.cx/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<pre>
<ol>
<li>&lt;? // META FOR FAILBOOK ?&gt;
-This is just a comment, good code is always commented</li>
<li>&lt;meta property="og:title" content="&lt;? if (is_single()){?&gt;&lt;? wp_title('');
                                              ?&gt;<strong><span style="text-decoration: underline">|Custom Tagline</span></strong><span style="text-decoration: underline"> </span>&lt;? }?&gt;"/&gt;
-This Line checks if the page is a post, and if so, it takes the name of the
post and sets that as the meta tag og:title, which is where facebook gets
the page title from (Don't know why the real title tag wasn't good enough)
A Custom Tagline is optional and you could add a little tag line to the
end of every status update like - lol or something.</li>
<li>&lt;meta property="og:site_name" content="<strong><span style="text-decoration: underline">Green Complex</span></strong>"/&gt;
-This line sets the site name. The user's status will now
say Jason likes (titleofpost) on Green Complex.</li>
<li>&lt;?php $thumb = get_post_meta($post-&gt;ID, '<strong><span style="text-decoration: underline">thumb</span></strong>', TRUE); ?&gt;
-And here we grab the image link from the posts custom field.
 Where it says 'thumb' you will want to change to whatever custom field
you use for your post images like 'image' 'large' or 'thumbnail'</li>
<li>&lt;meta property="og:image" content="&lt;?php echo $thumb ?"/&gt;
-Then we take the custom image url at return it in the
 meta tag for facebook to pick up, and add to the recommend widget.
 (It should return something like http://site.com/image.jpg)</li>
</ol>
</pre>
<p>And that&#8217;s it in a nutshell! Adding the images will customize the like experience a bit more for the user</p>
<p>and increase the chance that other readers will check out other stories on your site too. Great stuff!</p>
<p>If this post is a little rough forgive me, I&#8217;m still settling in to my new site design!</p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/guides/add-thumbnails-to-facebook-recommend-social-plugin/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>XAMPP Portable Webserver</title>
		<link>http://green.cx/software/free-software/web-dev-web/</link>
		<comments>http://green.cx/software/free-software/web-dev-web/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 11:30:41 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Utility Applications]]></category>

		<guid isPermaLink="false">http://green.cx/?p=885</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/4.original.png" width="659" height="87" alt="" title="Free Software" /><img src="http://green.cx/wp-content/blogs.dir/1/category-images/14.original.png" width="659" height="87" alt="" title="Software" /><br/>Web Dev Without the Web: Or how to create your own local server for building and testing websites. The nice guys over at Apache Friends have made it easy to get your own webserver up in no time! Just goto http://www.apachefriends.org/en/xampp.html and grab the file you need for your type of computer (Windows, Linux, or even [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/4.original.png" width="659" height="87" alt="" title="Free Software" /><img src="http://green.cx/wp-content/blogs.dir/1/category-images/14.original.png" width="659" height="87" alt="" title="Software" /><br/><h2>Web Dev Without the Web: Or how to create your own local server for building and testing websites.</h2>
<div id="attachment_886" class="wp-caption alignleft" style="width: 260px"><a rel="attachment wp-att-886" href="http://green.cx/software/free-software/web-dev-web/attachment/20-xampp-logo-trio/"><img class="size-medium wp-image-886" title="20-xampp-logo-trio" src="http://green.cx/wp-content/uploads/2010/02/20-xampp-logo-trio-250x219.jpg" alt="" width="250" height="219" /></a><p class="wp-caption-text">XAMPP - Rocks!</p></div>
<p>The nice guys over at Apache Friends have made it easy to get your own webserver up in no time! Just goto <a title='Original Link: http://www.apachefriends.org/en/xampp.html'  href="http://green.cx/?nq2eFDRF">http://www.apachefriends.org/en/xampp.html</a> and grab the file you need for your type of computer (Windows, Linux, or even Mac) and run 1 application that fires up a real Perl/PHP environment,MySQL Database, and Apache HTTP daemon<strong> ALL IN ONE</strong>!</p>
<p><strong>Requirements and features</strong></p>
<p>XAMPP requires only one <a title="EXE" title='Original Link: http://en.wikipedia.org/wiki/EXE'  href="http://green.cx/?fTZirRVd">exe</a> file to be downloaded and run, and little or no configuration of the various components that make up the web server is required. XAMPP is regularly updated to incorporate the latest releases of <a title="Apache HTTP Server" title='Original Link: http://en.wikipedia.org/wiki/Apache_HTTP_Server'  href="http://green.cx/?_MX7cfjw">Apache</a>/<a title="MySQL" title='Original Link: http://en.wikipedia.org/wiki/MySQL'  href="http://green.cx/?sb8mbFGo">MySQL</a>/<a title="PHP" title='Original Link: http://en.wikipedia.org/wiki/PHP'  href="http://green.cx/?Vxtq0aW6">PHP</a>and <a title="Perl" title='Original Link: http://en.wikipedia.org/wiki/Perl'  href="http://green.cx/?TKear0dq">Perl</a>. It also comes with a number of other modules including <a title="OpenSSL" title='Original Link: http://en.wikipedia.org/wiki/OpenSSL'  href="http://green.cx/?C1nE6w0n">OpenSSL</a> and <a title="PhpMyAdmin" title='Original Link: http://en.wikipedia.org/wiki/PhpMyAdmin'  href="http://green.cx/?xYAys6Nd">phpMyAdmin</a>.</p>
<p><em>Installing XAMPP takes less time than installing each of its components separately</em>. Self-contained, multiple instances of XAMPP can exist on a single computer, and any given instance can be copied from one computer to another.</p>
<p>It is offered in both a full, standard version and a smaller version (known as <em>XAMPP Lite</em>). Add-on extension modules also are available for free.</p>
<h3>What&#8217;s it for?</h3>
<p>Officially, XAMPP&#8217;s designers intended it for use only as a development tool, to allow website designers and programmers to test their work on their own computers without any access to the Internet. To make this as easy as possible, many important security features are disabled by default. In practice, however, XAMPP is sometimes used to actually serve web pages on the web. A special tool is provided to password-protect the most important parts of the package.</p>
<p>XAMPP also provides support for creating and editing databases in <a title="MySQL" title='Original Link: http://en.wikipedia.org/wiki/MySQL'  href="http://green.cx/?sb8mbFGo">MySQL</a> and <a title="SQLite" title='Original Link: http://en.wikipedia.org/wiki/SQLite'  href="http://green.cx/?t7tj7feQ">SQLite</a> among others.</p>
<p>GRAB IT HERE:</p>
<p><a title='Original Link: http://sourceforge.net/projects/xampp/'  href="http://green.cx/?PjR69UmA">http://sourceforge.net/projects/xampp/</a></p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/software/free-software/web-dev-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web 2.0 Navigation Crash Course</title>
		<link>http://green.cx/web-resources/web-dev-resources/web-20-navigation-crash/</link>
		<comments>http://green.cx/web-resources/web-dev-resources/web-20-navigation-crash/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 05:38:26 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Stuff]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascripts]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://green.cx/?p=219</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/5.original.png" width="659" height="87" alt="" title="Web 2.0" /><img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/>This is a beginners guide to creating a site-wide navigation that is consistent from page to page. Tired of keeping track of multiple Menu&#8217;s on different pages? As your site grows, adding 1 new page to 25 other pages&#8217; navigation can become a full time job. I&#8217;ll show you how easy it really is to make a single navigation [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/5.original.png" width="659" height="87" alt="" title="Web 2.0" /><img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/><p><img class="alignleft size-full wp-image-246" title="HTML-DYNAMIC DRIVE NAV SAMPLE" src="http://green.cx/wp-content/uploads/2009/08/HTML-DYNAMIC-DRIVE-NAV.PNG" alt="HTML-DYNAMIC DRIVE NAV SAMPLE" width="255" height="60" />This is a beginners guide to creating a site-wide navigation that is consistent from page to page.</p>
<p>Tired of keeping track of multiple Menu&#8217;s on different pages? As your site grows, adding 1 new page to 25 other pages&#8217; navigation can become a full time job. I&#8217;ll show you how easy it really is to make a single navigation that will save you time and headaches!</p>
<p><span id="more-219"></span></p>
<p>For this you&#8217;ll need:</p>
<ol>
<li>Guts</li>
<li>A little understanding of <a id="aptureLink_YOwilLbj08" title='Original Link: http://en.wikipedia.org/wiki/Semantic%20HTML'  href="http://green.cx/?BrEyIimk">HTML</a> <a id="aptureLink_dmeBrsoC61" title='Original Link: http://en.wikipedia.org/wiki/Cascading%20Style%20Sheets'  href="http://green.cx/?RtmNoxhu">CSS</a> and <a id="aptureLink_EW4c0ojc3S" title='Original Link: http://en.wikipedia.org/wiki/PHP%20programming%20language'  href="http://green.cx/?hm2Ek4v2">PHP</a> (Not Really)</li>
<li><a id="aptureLink_5lXNHGm870" title='Original Link: http://en.wikipedia.org/wiki/Notepad%2B%2B'  href="http://green.cx/?LaH2GoE7">Notepad++</a> (Or any HTML editor)</li>
<li>A copy of <a title='Original Link: http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm'  href="http://green.cx/?G8vegHoX">DDtabmenu</a> From Dynamic Drive (<a title='Original Link: http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.zip'  href="http://green.cx/?1BAfYIA6">This file</a>)</li>
</ol>
<h2>1. Let&#8217;s start off with the code you&#8217;ll need. The Three Parts are:</h2>
<p><strong>A. The CSS include,  paste this in the header of your html.</strong></p>
<pre class="brush: html">&lt;link rel="stylesheet" type="text/css" href="/solidblocksmenu.css"&gt;</pre>
<p><strong>B. The <a id="aptureLink_hlJAdZYWTx" title='Original Link: http://en.wikipedia.org/wiki/JavaScript'  href="http://green.cx/?UsA5lWWX">Javascript</a> Magic,  paste this near the top of your html.</strong></p>
<pre class="brush: html">&lt;script type="text/javascript" src="/ddtabmenu.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;ddtabmenu.definemenu("ddtabs1", auto)
&lt;/script&gt;</pre>
<blockquote><p>To make adjustments, you can change the <strong>tab_menu_id </strong>to whatever HTML id your using for your menu, and the number after the comma will select which link is highlighted.<br />
SYNTAX: ddtabmenu.definemenu(&#8220;tab_menu_id&#8221;, integer OR &#8220;auto&#8221;)<br />
//initialize Tab Menu with ID &#8220;ddtabs1&#8243; and select 1st tab by default</p></blockquote>
<p><strong>C. The HTML for the <a title="Links" href="http://green.cx/links/">Links</a></strong></p>
<pre class="brush: html">&lt;div id="ddtabs1" class="basictab"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://green.cx/" rel="sc1"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://green.cx/Link1.htm" rel="sc2"&gt;Link1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://green.cx/Link2/" rel="sc3"&gt;Link2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://green.cx/Link3/"&gt;Link3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://green.cx/Link4"&gt;Link4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</pre>
<p><strong>D. The HTML for the Subtitles</strong></p>
<pre class="brush: html">&lt;DIV class="tabcontainer"&gt;

&lt;div id="sc1" class="tabcontent"&gt;Sub contents here&lt;/div&gt;
&lt;div id="sc2" class="tabcontent"&gt;Sub contents here&lt;/div&gt;
&lt;div id="sc3" class="tabcontent"&gt;Sub contents here&lt;/div&gt;

&lt;/DIV&gt;</pre>
<h2>2. Now The Required files you need on your server</h2>
<p>Download <a title='Original Link: http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.zip'  href="http://green.cx/?1BAfYIA6">this file</a> and extract the contents to the root of your webserver, using a <a id="aptureLink_ZoCOVaGvcI" title='Original Link: http://en.wikipedia.org/wiki/List%20of%20FTP%20clients'  href="http://green.cx/?WtOrHiod">FTP client</a> like <a id="aptureLink_cUzzEVhefd" title='Original Link: http://en.wikipedia.org/wiki/FileZilla'  href="http://green.cx/?fJhlgw98">FileZilla</a>.</p>
<p>And, Volia! You should have a nice HTML/CSS Navigation on your site, but you don&#8217;t want to copy/paste this to EVERY page on your site right?<br />
What if you needed to change a link or fix a typo? That would be a LOT of editing for a site with more than a hand full  of pages.</p>
<p>So we get around that using a simple PHP include file.</p>
<p>Woah! Don&#8217;t get nervous, this is actually really easy, just keep following along!</p>
<p>Now making that nice flashy menu and making it a PHP include is really quite easy.</p>
<p>First off I feel the need to make it clear, your server needs to support PHP. (Of course)</p>
<p>Start off Coping the HTML code for the MENU and the Subtitles, into a new document, named <em>nav.inc</em></p>
<p><strong><em>nav.inc</em></strong> Contents</p>
<pre class="brush: html">&lt;div id="ddtabs1"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://green.cx/" rel="sc1"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://green.cx/Link1.htm" rel="sc2"&gt;Link1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://green.cx/Link2/" rel="sc3"&gt;Link2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://green.cx/Link3/"&gt;Link3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://green.cx/Link4"&gt;Link4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;DIV&gt;
&lt;div id="sc1"&gt;Sub contents here&lt;/div&gt;
&lt;div id="sc2"&gt;Sub contents here&lt;/div&gt;
&lt;div id="sc3"&gt;Sub contents here&lt;/div&gt;
&lt;/DIV&gt;</pre>
<p>Now rename your index.html file to index.php</p>
<p>Keep the CSS and Javascript in the header as per usual.</p>
<p>But where the Menu was located, replace it with this code.</p>
<pre class="brush: php">&lt;?php
include ("/nav.inc");
?&gt;</pre>
<p>That should put the contents of the navigation include file whenever this line is called. But notice! It will only work when the index (or any file on the server) ends with .php</p>
<p>Give it a try!</p>
<p><!--pre class="brush: javascript"><br />
//DD Tab Menu- Script rewritten April 27th, 07: http://www.dynamicdrive.com<br />
//**Updated Feb 23rd, 08): Adds ability for menu to revert back to default selected tab when mouse moves out of menu</p>
<p>//Only 2 configuration variables below:</p>
<p>var ddtabmenu={<br />
disabletablinks: false, //Disable hyperlinks in 1st level tabs with sub contents (true or false)?<br />
snap2original: [true, 300], //Should tab revert back to default selected when mouse moves out of menu? ([true/false, delay_millisec]</p>
<p>currentpageurl: window.location.href.replace(&#8220;http://&#8221;+window.location.hostname, &#8220;&#8221;).replace(/^//, &#8220;&#8221;), //get current page url (minus hostname, ie: http://www.dynamicdrive.com/)</p>
<p>definemenu:function(tabid, dselected){<br />
this[tabid+"-menuitems"]=null<br />
this[tabid+"-dselected"]=-1<br />
this.addEvent(window, function(){ddtabmenu.init(tabid, dselected)}, &#8220;load&#8221;)<br />
},</p>
<p>showsubmenu:function(tabid, targetitem){<br />
var menuitems=this[tabid+"-menuitems"]<br />
this.clearrevert2default(tabid)<br />
for (i=0; i&lt;menuitems.length; i++){<br />
menuitems[i].className=&#8221;"<br />
if (typeof menuitems[i].hasSubContent!=&#8221;undefined&#8221;)<br />
document.getElementById(menuitems[i].getAttribute(&#8220;rel&#8221;)).style.display=&#8221;none&#8221;<br />
}<br />
targetitem.className=&#8221;current&#8221;<br />
if (typeof targetitem.hasSubContent!=&#8221;undefined&#8221;)<br />
document.getElementById(targetitem.getAttribute(&#8220;rel&#8221;)).style.display=&#8221;block&#8221;<br />
},</p>
<p>isSelected:function(menuurl){<br />
var menuurl=menuurl.replace(&#8220;http://&#8221;+menuurl.hostname, &#8220;&#8221;).replace(/^//, &#8220;&#8221;)<br />
return (ddtabmenu.currentpageurl==menuurl)<br />
},</p>
<p>isContained:function(m, e){<br />
var e=window.event || e<br />
var c=e.relatedTarget || ((e.type==&#8221;mouseover&#8221;)? e.fromElement : e.toElement)<br />
while (c &amp;&amp; c!=m)try {c=c.parentNode} catch(e){c=m}<br />
if (c==m)<br />
return true<br />
else<br />
return false<br />
},</p>
<p>revert2default:function(outobj, tabid, e){<br />
if (!ddtabmenu.isContained(outobj, tabid, e)){<br />
window["hidetimer_"+tabid]=setTimeout(function(){<br />
ddtabmenu.showsubmenu(tabid, ddtabmenu[tabid+"-dselected"])<br />
}, ddtabmenu.snap2original[1])<br />
}<br />
},</p>
<p>clearrevert2default:function(tabid){<br />
if (typeof window["hidetimer_"+tabid]!=&#8221;undefined&#8221;)<br />
clearTimeout(window["hidetimer_"+tabid])<br />
},</p>
<p>addEvent:function(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload)<br />
var tasktype=(window.addEventListener)? tasktype : &#8220;on&#8221;+tasktype<br />
if (target.addEventListener)<br />
target.addEventListener(tasktype, functionref, false)<br />
else if (target.attachEvent)<br />
target.attachEvent(tasktype, functionref)<br />
},</p>
<p>init:function(tabid, dselected){<br />
var menuitems=document.getElementById(tabid).getElementsByTagName(&#8220;a&#8221;)<br />
this[tabid+"-menuitems"]=menuitems<br />
for (var x=0; x&lt;menuitems.length; x++){<br />
if (menuitems[x].getAttribute(&#8220;rel&#8221;)){<br />
this[tabid+"-menuitems"][x].hasSubContent=true<br />
if (ddtabmenu.disabletablinks)<br />
menuitems[x].onclick=function(){return false}<br />
if (ddtabmenu.snap2original[0]==true){<br />
var submenu=document.getElementById(menuitems[x].getAttribute(&#8220;rel&#8221;))<br />
menuitems[x].onmouseout=function(e){ddtabmenu.revert2default(submenu, tabid, e)}<br />
submenu.onmouseover=function(){ddtabmenu.clearrevert2default(tabid)}<br />
submenu.onmouseout=function(e){ddtabmenu.revert2default(this, tabid, e)}<br />
}<br />
}<br />
else //for items without a submenu, add onMouseout effect<br />
menuitems[x].onmouseout=function(e){this.className=&#8221;"; if (ddtabmenu.snap2original[0]==true) ddtabmenu.revert2default(this, tabid, e)}<br />
menuitems[x].onmouseover=function(){ddtabmenu.showsubmenu(tabid, this)}<br />
if (dselected==&#8221;auto&#8221; &amp;&amp; typeof setalready==&#8221;undefined&#8221; &amp;&amp; this.isSelected(menuitems[x].href)){<br />
ddtabmenu.showsubmenu(tabid, menuitems[x])<br />
this[tabid+"-dselected"]=menuitems[x]<br />
var setalready=true<br />
}<br />
else if (parseInt(dselected)==x){<br />
ddtabmenu.showsubmenu(tabid, menuitems[x])<br />
this[tabid+"-dselected"]=menuitems[x]<br />
}<br />
}<br />
}<br />
}</pre-->]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/web-dev-resources/web-20-navigation-crash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 155/279 queries in 0.425 seconds using apc

Served from: potpiedeluxe.com @ 2012-02-09 17:45:24 -->
