<?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"
	>

<channel>
	<title>How to dev</title>
	<atom:link href="http://www.how2dev.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.how2dev.com</link>
	<description>Tech articles about linux,php,mysql,seo and windows general.</description>
	<pubDate>Wed, 10 Mar 2010 19:28:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>ownerDocument</title>
		<link>http://www.how2dev.com/ownerdocument/</link>
		<comments>http://www.how2dev.com/ownerdocument/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 19:28:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=453</guid>
		<description><![CDATA[Value: Document object reference
Compatibility: WinIE6+, MacIE5+, Moz1+, Safari1+
The ownerDocument property belongs to any element or node in the W3C DOM. The property&#8217;s value is a reference to the document node that ultimately contains the element or node. If a script encounters a reference to an element or node, the object&#8217;s ownerDocument property provides a way [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/ownerdocument/feed/</wfw:commentRss>
		</item>
		<item>
		<title>offsetParent</title>
		<link>http://www.how2dev.com/offsetparent/</link>
		<comments>http://www.how2dev.com/offsetparent/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 21:06:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[offsetParent]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=450</guid>
		<description><![CDATA[Value: Object reference
Compatibility: WinIE4+, MacIE4+, NN6+, Moz1+, Safari1+
The offsetParent property returns a reference to the object that acts as a positioning context for the current element.Values for the offsetLeft and offsetTop are measured relative to the top-left corner of the offsetParent object.
The returned object is usually , but not always the next outermost block-level container. [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/offsetparent/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dynamic Navigation Menus</title>
		<link>http://www.how2dev.com/dynamic-navigation-menus/</link>
		<comments>http://www.how2dev.com/dynamic-navigation-menus/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 19:13:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[menu]]></category>

		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=446</guid>
		<description><![CDATA[Next code demonstrates how to build a simple menu function with the current page high-lighted.
Code:
&#60;?php
require_once('menu.php');
$page = isset($_GET['page']) ? $_GET['page'] : 'home';
?&#62;
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Page - &#60;?=$page?&#62;
&#60;style type="text/css"&#62;
.inactive, .active
{
 padding:2px 2px 2px 20px;
}

.inactive
{
 background:#ddd;
} 

.active
{
 background:black;
 font-weight:bold;
}

.inactive a
{
 text-decoration:none;
}

.active a
{
 text-decoration:none;
 color:white;
}
&#60;/style&#62;
&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;table&#62;
&#60;tr&#62;
&#60;td width="200" valign="top"&#62;
&#60;?php page_menu($page); ?&#62;
&#60;/td&#62;
&#60;td width="600" valign="top"&#62;
Page: &#60;?=$page?&#62;
&#60;/td&#62;
&#60;/tr&#62;
&#60;/table&#62;
&#60;/body&#62;
&#60;/html&#62;
Save this code as index.php
&#60;?php
function menu_item($id, $title, $current)
{
  $class = ($current [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/dynamic-navigation-menus/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Drop-Down Stickies</title>
		<link>http://www.how2dev.com/drop-down-stickies/</link>
		<comments>http://www.how2dev.com/drop-down-stickies/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 20:55:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=436</guid>
		<description><![CDATA[Attaching a drop-down sticky to a word or phrase in your document is an easy way to add valuable information close to the word, without obscuring it.
Code:
&#60;?php
function start_link($text, $nextid)
{
  $idtext = $nextid;
?&#62;
  &#60;a href="javascript:void drop('&#60;?=$idtext?&#62;');"&#62;
  &#60;span id="a_&#60;?=$idtext?&#62;"&#62;&#60;?=$text?&#62;&#60;/span&#62;
  &#60;/a&#62;
  &#60;div id="&#60;?=$idtext?&#62;" class="drop" style="display:none"&#62;
  &#60;table cellspacing="0" cellpadding="0" width="170"&#62;
  &#60;tr&#62;
  &#60;td valign="top" width="20"&#62;
  &#60;a href="javascript:void close(&#60;?=$idtext?&#62;)"&#62;
  &#60;img src="close.gif" [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/drop-down-stickies/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Section Content with Spinners</title>
		<link>http://www.how2dev.com/section-content-with-spinners/</link>
		<comments>http://www.how2dev.com/section-content-with-spinners/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 20:01:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=430</guid>
		<description><![CDATA[This code shows how to create sections on your page with spinners that open and show section of the content interactively.
Code:
&#60;?php
function start_section($id, $title)
{
?&#62;
&#60;table cellspacing="0" cellpadding="0"&#62;
&#60;tr&#62;
&#60;td width="30" valign="top"&#62;
&#60;a href="javascript:void twist('&#60;?=$id?&#62;');"&#62;
&#60;img src="up.gif" border="0" id="img-&#60;?=$id?&#62;" /&#62;
&#60;/a&#62;
&#60;/td&#62;
&#60;td width="90%"&#62;
&#60;h1&#62;&#60;?=$title?&#62;&#60;/h1&#62;
&#60;div style="display:none;position:absolute" id="&#60;?=$id?&#62;" class="content"&#62;
&#60;?php
}
function end_section()
{
?&#62;
&#60;/div&#62;
&#60;/td&#62;
&#60;/tr&#62;
&#60;/table&#62;
&#60;?php
}
?&#62;
&#60;html&#62;
&#60;head&#62;
&#60;style type="text/css"&#62;
body{font-family:Verdana;}
h1{font-size:medium;border-bottom:1px solid black;}
.content{font-size:small; margin-left:10px; padding:10px;}
&#60;/style&#62;
&#60;script type="text/javascript"&#62;
function twist(sid)
{
  imgobj = document.getElementById("img-" + sid);
  divobj = document.getElementById(sid);
  if(imgobj.src.match("up.gif"))
  {
    [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/section-content-with-spinners/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Move Images using Javascript</title>
		<link>http://www.how2dev.com/move-images-using-javascript/</link>
		<comments>http://www.how2dev.com/move-images-using-javascript/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 18:58:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Image]]></category>

		<category><![CDATA[move]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=422</guid>
		<description><![CDATA[Next javascript code shows how you can move images around the page.
Compatibility: Mozilla, Opera, Chrome, Safari
Code:
 var curElement;
 function doMouseMove(e)
 {
   var newleft = 0, newTop = 0;
   curElement.style.position = "absolute";
   if((e.which == 1) &#38;&#38; (curElement != null))
   {
     newleft = e.screenX - [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/move-images-using-javascript/feed/</wfw:commentRss>
		</item>
		<item>
		<title>offsetLeft - offsetTop Properties</title>
		<link>http://www.how2dev.com/offsetleft-offsettop-properties/</link>
		<comments>http://www.how2dev.com/offsetleft-offsettop-properties/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 09:14:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=417</guid>
		<description><![CDATA[Value: integer
Compatibility: WinIE4+, MacIE4+, Moz1+, Safari1+
The offsetTop and offsetLeft properties are valuable in providing pixel coordinates of an element within the positioning context  of the parent element even when the elements are not positioned explicitly. The element used as a coordinate context for these properties is whatever element the offsetParent property returns. This means that [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/offsetleft-offsettop-properties/feed/</wfw:commentRss>
		</item>
		<item>
		<title>offsetHeight - offsetWidth Properties</title>
		<link>http://www.how2dev.com/offsetheight-offsetwidth-properties/</link>
		<comments>http://www.how2dev.com/offsetheight-offsetwidth-properties/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 16:45:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=413</guid>
		<description><![CDATA[Value: integer
Compatibility: WinIE4+, MacIE4+, Moz1+, Safari1+
These properties report the height and width of any element, for a normal block-level element whose height and width are not specified the offsetHeight is determined by the actual height of the content after all text flows. But the offsetWidth always extends the full width of the containing element. For [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/offsetheight-offsetwidth-properties/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Caching Output</title>
		<link>http://www.how2dev.com/caching-output/</link>
		<comments>http://www.how2dev.com/caching-output/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 13:02:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=400</guid>
		<description><![CDATA[High-traffic sites can often benefit from caching of pages, to save processing of the same data over and over again.
Put the first function cache_start in the beginning of php script and the second cache_end in the end of script.
Code:
function cache_start($_time, $dir)
{
  $cachefile = $dir.'/'.sha1($_SERVER['REQUEST_URI']).'.html';
  $cachetime = $_time;
  ob_start();

  if(file_exists($cachefile) &#38;&#38; (time( [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/caching-output/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Catching Keywords from Search Engines</title>
		<link>http://www.how2dev.com/catching-keywords-from-search-engines/</link>
		<comments>http://www.how2dev.com/catching-keywords-from-search-engines/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 12:38:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.how2dev.com/?p=394</guid>
		<description><![CDATA[With this class we try to catch some keywords from google, yahoo and bing search engines.
Code:
&#60;?php
class keywords
{
 private $referer;
 private $_e;
 public $keywords;

 public function __construct()
 {
   if($_SERVER['HTTP_REFERER'])
   {
     if(preg_match("#\.google&#124;search\.yahoo&#124;\.bing#", $_SERVER['HTTP_REFERER']))
     {
       $this-&#62;referer = urldecode($_SERVER['HTTP_REFERER']);
   [...]]]></description>
		<wfw:commentRss>http://www.how2dev.com/catching-keywords-from-search-engines/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
