<?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>Top Web2</title>
	<atom:link href="http://topweb2.net/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://topweb2.net/blog</link>
	<description>Javascript , CSS , XHTML  , Web 2 ,PHP  and more</description>
	<lastBuildDate>Tue, 11 May 2010 13:56:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>top 5 html5 games</title>
		<link>http://topweb2.net/blog/top-5-html5-games</link>
		<comments>http://topweb2.net/blog/top-5-html5-games#comments</comments>
		<pubDate>Tue, 11 May 2010 13:56:21 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[games]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=124</guid>
		<description><![CDATA[HTML 5 Canvas Games :-
html5 the new horse that many developers and company bets on such as Apple after their fight with flash and also the big and rich one google 
html5 brings to us new tools and techniques transforming the browser to rich and smart environment
one of the greatest things that html5 introduce is [...]]]></description>
			<content:encoded><![CDATA[<h1>HTML 5 Canvas Games :-</h1>
<p>html5 the new horse that many developers and company bets on such as Apple after their fight with flash and also the big and rich one google <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
html5 brings to us new tools and techniques transforming the browser to rich and smart environment<br />
one of the greatest things that html5 introduce is canvas element that magical element do more that expectation , for many years javascript developers try to animate and draw things over pure html but it wasnt stable and dont support any thing like rotating or transform or effects like shadow or gradient so if you tell any one before that you are going to develop a game that using only pure html &amp; javascript it will call you a crazy or an amateur<br />
but canvas element support all of those it support 2d drawing , image effects , text effects and many other things without crash the browser or being so heavy and slow</p>
<h3>what about 3d:</h3>
<p>canvas element till now support only 2d but it will support 3d soon via engine using some of openGL libraries or maybe DirectX when it happens we will see full 3d games runs from native browsers without any kind of plugins</p>
<p>ok lets see some actions</p>
<h2>Top 10 HTML5 Games:-</h2>
<h3>1- z-war:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/z-war.jpg"><img class="alignnone size-medium wp-image-125" title="z-war" src="http://topweb2.net/blog/wp-content/uploads/2010/05/z-war.jpg" alt="" width="300" height="224" /></a></p>
<p>the best game till now written in javascript using DHTML or Canvas big game with music supporting good accelerating and semi 3d using good canvas effects and load every element as canvas if you choose canvas style in rendering. created by Darkimmortal</p>
<h3>2- canvasscape:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/canvascape.jpg"><img class="alignnone size-medium wp-image-126" title="canvascape" src="http://topweb2.net/blog/wp-content/uploads/2010/05/canvascape.jpg" alt="" width="300" height="209" /></a></p>
<p>its a semi 3d game developed by Ben Joffe and there is two version of these game one without texture and one with<br />
use the keyboard arrows to move and shot your enemies</p>
<h3>3- fred jones in adventure:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/fred-jones-adventureland.jpg"><img class="alignnone size-medium wp-image-127" title="fred-jones-adventureland" src="http://topweb2.net/blog/wp-content/uploads/2010/05/fred-jones-adventureland.jpg" alt="" width="300" height="187" /></a></p>
<p>lovely and highly programmed one created by:PurpleFloyd its support 5 levels with various kind of enemies good one</p>
<h3>4- flashy tetris:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/tetris.jpg"><img class="alignnone size-medium wp-image-128" title="tetris" src="http://topweb2.net/blog/wp-content/uploads/2010/05/tetris.jpg" alt="" width="300" height="187" /></a></p>
<p>who dont love tetris ? <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but now its done by html5 canvas it fast well rendered the game uses a haXe scene graph engine called Easel its engine support rich animation and flashy effects.</p>
<h3>5-jsCanvas Bike:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/canvas-bike.jpg"><img class="alignnone size-medium wp-image-129" title="canvas-bike" src="http://topweb2.net/blog/wp-content/uploads/2010/05/canvas-bike.jpg" alt="" width="300" height="187" /></a></p>
<p>motocross game you earn points for doing flips , good one but its kinda slow</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/top-5-html5-games/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>seo friendly ajax</title>
		<link>http://topweb2.net/blog/seo-friendly-ajax</link>
		<comments>http://topweb2.net/blog/seo-friendly-ajax#comments</comments>
		<pubDate>Tue, 04 May 2010 13:39:47 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=113</guid>
		<description><![CDATA[hey guys its been a long time since last time i wrote in this blog , i want you to excuse me for that because it was a tough time to me , any way lets hit the point in this article we are here to talk about most technique used today in the modern [...]]]></description>
			<content:encoded><![CDATA[<p>hey guys its been a long time since last time i wrote in this blog , i want you to excuse me for that because it was a tough time to me , any way lets hit the point in this article we are here to talk about most technique used today in the modern web site .</p>
<p>the main reason that makes me writing this articles is one of my friends told me that he is not going to use ajax in his web site because he needs to be highly seo optimized.</p>
<p>many reason that makes my friend and many other think like that is poor developers that uses this technology in the bad way , you can write javascript code to perform ajax in many ways some of it can get the benefits of seo and we are here to clear and study that ways so lets begin</p>
<p>first : google or other search engines cant crawl javascript so the secret is dont EVER let javascript handle the links without html support in another meaning lets see that example</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;mylink.html&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;anyone.jpg&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;anyone.jpg&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;location.href='mylink.html'&quot;</span> <span style="color: #339933;">/&gt;</span></pre></div></div>

<p>the two lines declare two simple ways to link and the two ways actually work but one of them is seo friendly which is the first one because we use simple html tag attribute (href)</p>
<p>the same thing in the ajax make the links in simple anchors with (href) attribute but handle click event of this anchor make the ajax request and prevent the browser default action by returning false</p>
<p>lets see it in action</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a.ajx'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.response'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ajaxfile.html'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ajaxfile.html&quot;</span> <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ajx&quot;</span><span style="color: #339933;">&gt;</span>Click me i am seo friendly ajax link<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;response&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>when search engine crawel the page it reads only the html tags so he read this anchor and (href) attribute and follow the page ajaxfile.html to crawel it and add it to the site map</p>
<p>and when human go to this page and click on the link the click event fired and we do tha ajax request and because the return false the page never reloaded</p>
<p>this is the point think as the search engine and you will win</p>
<p>feel free to feedback me</p>
<p>thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/seo-friendly-ajax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>html5 cheat sheets</title>
		<link>http://topweb2.net/blog/html5-cheat-sheets</link>
		<comments>http://topweb2.net/blog/html5-cheat-sheets#comments</comments>
		<pubDate>Thu, 10 Dec 2009 19:33:54 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cheat sheets]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=108</guid>
		<description><![CDATA[we talked before about html5 and its standards
here is html5 cheat sheets , its just a prototype but good for remembering the new standards
html5 canvas cheat sheet in pdf format
general html5 cheat sheet in pdf format
best wishes
]]></description>
			<content:encoded><![CDATA[<p>we talked before about <a href="http://topweb2.net/blog/html5-introduction">html5</a> and its standards</p>
<p>here is html5 cheat sheets , its just a prototype but good for remembering the new standards</p>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2009/12/html5-canvas-cheat-sheet.pdf" target="_blank">html5 canvas cheat sheet in pdf format</a></p>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2009/12/html5-cheat-sheet.pdf" target="_blank">general html5 cheat sheet in pdf format</a></p>
<p>best wishes</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/html5-cheat-sheets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery 1.3 cheat sheet</title>
		<link>http://topweb2.net/blog/jquery-1-3-cheat-sheet</link>
		<comments>http://topweb2.net/blog/jquery-1-3-cheat-sheet#comments</comments>
		<pubDate>Thu, 10 Dec 2009 19:23:17 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[cheat sheets]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=102</guid>
		<description><![CDATA[without a lot of talking
jquery cheat sheet in png format  1920×1200

source gmtaz.com
]]></description>
			<content:encoded><![CDATA[<p>without a lot of talking</p>
<p>jquery cheat sheet in png format  1920×1200</p>
<p style="text-align: center;"><a href="http://topweb2.net/blog/wp-content/uploads/2009/12/jquery_1_3.png"><img class="size-medium wp-image-103 aligncenter" title="jquery_1_3" src="http://topweb2.net/blog/wp-content/uploads/2009/12/jquery_1_3.png" alt="jquery_1_3" width="300" height="187" /></a></p>
<p style="text-align: left;">source <a href="http://www.gmtaz.com/index.php/jquery-13-cheatsheet-wallpaper/" target="_blank">gmtaz.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/jquery-1-3-cheat-sheet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache mod rewrite tips and tricks</title>
		<link>http://topweb2.net/blog/apache-mod-rewrite-tips-and-tricks</link>
		<comments>http://topweb2.net/blog/apache-mod-rewrite-tips-and-tricks#comments</comments>
		<pubDate>Tue, 03 Nov 2009 17:50:28 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=97</guid>
		<description><![CDATA[hi there
we will talk to day about the most common techniques on the web nowadays &#8211; yes thats right we will talk about mod rewrite that awesome module that brings static urls benefits into dynamic contents
ok lets start


1- check for the module before rewrite:-
before you use rewrite check for the module in htaccess by doing [...]]]></description>
			<content:encoded><![CDATA[<p>hi there</p>
<p>we will talk to day about the most common techniques on the web nowadays &#8211; yes thats right we will talk about mod rewrite that awesome module that brings static urls benefits into dynamic contents</p>
<p>ok lets start</p>
<p><span id="more-97"></span></p>
<p><img class="alignnone" src="http://topweb2.net/blog/wp-content/uploads/2009/apache.jpg" alt="" width="320" height="240" /></p>
<p>1- check for the module before rewrite:-</p>
<p>before you use rewrite check for the module in htaccess by doing this</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;</span></p>
<p><span>#here is the rewrite rules and conditions</span></p>
<p><span>&lt;</span>/IfModule&gt;</p>
<p>this is more tidy and clean code it just ensure the you have mod rewrite module installed and loaded with apache before run the rewrite code</p>
<p>2- rewrite css and images and other files:-</p>
<p>on of the most issues you will gonna face in rewrite is image and css not being rewrite in the web</p>
<p>here is example</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteRule (.*)  index.php?url=$1  [L]<br />
&lt;</span>/IfModule&gt;</p>
<p>this rule will rewrite all urls to index.php with parameter url but in this conditions all urls will rewrite including images and css and js files and that will produce errors</p>
<p>so we can fix this problem by telling rewrite that rewrite only notfound urls but the existing files will exculde from rewrite by adding this two lines before rewrite rule</p>
<p>RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d</p>
<p>the first line will exclude exsiting folders and the second will exclude files</p>
<p>here is the last code</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
RewriteEngine On</span></p>
<p><span><br />
</span>RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d</p>
<p><span> RewriteRule (.*)  index.php?url=$1  [L]<br />
&lt;</span>/IfModule&gt;</p>
<p>3- rewrite and wildcard domains:-</p>
<p>do you want to controll subdomains via script this is the right choice</p>
<p>we will do this in steps</p>
<p>first you just will added *.domain to be treated like www.domain.com by adding this line in httpd.conf</p>
<p>ServerAlias www.domain.com domain.com *.domain.com</p>
<p>then you have to create the rewrite</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
Options +FollowSymLinks<br />
Options +Indexes<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]<br />
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com [NC]<br />
RewriteRule (.*) %2/$1 [L]<br />
&lt;</span>/IfModule&gt;</p>
<p>4- with www or without it :-</p>
<p>you can use rewrite to force www to be added in the domains , that is very useful is search engine optimization &#8211; SEO</p>
<p>you can do it by this code</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
Options +FollowSymLinks<br />
Options +Indexes<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} ^domain\.com$<br />
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]<br />
&lt;</span>/IfModule&gt;</p>
<p>5- 301 redirect :-</p>
<p>if you want to redirect page to another never ever use meta redirect or javascript redirect because its too bad for search engines coz its a common way for the spammers and absolutely you dont want to be  a spammer in search engines eye</p>
<p>the right way is 301 redirect ( search engine friendly redirect )</p>
<p>you can do it like that :</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
Options +FollowSymLinks<br />
Options +Indexes<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteRule ^moved_page.html$  new_page.html [R=301,L]<br />
&lt;</span>/IfModule&gt;</p>
<p>you will notice the we used tag R with value 301 that means we will refresh with 301 notice the means moved permanently</p>
<p>thats all i have for now</p>
<p>if you have any questions dont hesitate comment here <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/apache-mod-rewrite-tips-and-tricks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>internet explorer support HTML5 by google magic</title>
		<link>http://topweb2.net/blog/internet-explorer-support-html5-by-google-magic</link>
		<comments>http://topweb2.net/blog/internet-explorer-support-html5-by-google-magic#comments</comments>
		<pubDate>Thu, 24 Sep 2009 12:26:34 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[chromeframe]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=92</guid>
		<description><![CDATA[thats not a joke , google surprise us with an amazing plugin to internet explorer 6,7,8 to get html5 tags working correctly on internet explorer 6,7,8
google called this plugin chromeframe and  according to google google chrome frame is an open source plugin that bring google chrome technology to internet explorer
the next video shows the power [...]]]></description>
			<content:encoded><![CDATA[<p>thats not a joke , google surprise us with an amazing plugin to internet explorer 6,7,8 to get html5 tags working correctly on internet explorer 6,7,8</p>
<p>google called this plugin chromeframe and  according to google google chrome frame is an open source plugin that bring google chrome technology to internet explorer</p>
<p>the next video shows the power of the google chromeframe the google plugin</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/sjW0Bchdj-w&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/sjW0Bchdj-w&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>what you are waiting for ,  if you are using internet explorer get the plugin now</p>
<p><a href="http://code.google.com/chrome/chromeframe/" target="_blank">http://code.google.com/chrome/chromeframe/ </a></p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/internet-explorer-support-html5-by-google-magic/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css3 magic</title>
		<link>http://topweb2.net/blog/css3-magic</link>
		<comments>http://topweb2.net/blog/css3-magic#comments</comments>
		<pubDate>Wed, 23 Sep 2009 19:39:07 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=76</guid>
		<description><![CDATA[we will talking today about the awesome css3 features the implemented by w3 supported with many browsers on top of them safai and google chrome and of cource firefox
1- background image size:-
with css2 it was impossible to define a size to background image  but with css3 you can simply define the background image size by [...]]]></description>
			<content:encoded><![CDATA[<p>we will talking today about the awesome css3 features the implemented by w3 supported with many browsers on top of them safai and google chrome and of cource firefox</p>
<p>1- background image size:-</p>
<p>with css2 it was impossible to define a size to background image  but with css3 you can simply define the background image size by a few css lines</p>
<p>you can add something like that if we want 100% background size in css3</p>
<pre>background:transparent url(img/simplebg.jpg) no-repeat;</pre>
<pre>background-size: 100%;</pre>
<p>simple , isn&#8217;l <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , but wait</p>
<p>you tried it and it  didn&#8217;t work with you ??</p>
<p>unforunately that will face you much when you dealing with css 3 issues becasue it doesnt implemented the same way in all browsers and doesn&#8217;t implemented yet in browsers such as internet explorer</p>
<p>so we will add some lines to work in the most browsers</p>
<p>-o-background-size for opera browser</p>
<p>-webkit-background-size for webkit engine browsers -&gt; safari and google chrome</p>
<p>unfortunately it didn&#8217;t work with firefox</p>
<p>so our code will be</p>
<pre>background:transparent url(img/simplebg.jpg) no-repeat;</pre>
<pre>background-size: 100%;
-o-background-size: 100%;
-webkit-background-size: 100%</pre>
<p>2- multi background :-</p>
<p>another awesome feature in css3 is multi background</p>
<p>you can add multi background to one container , you think its hard look at this</p>
<pre>background:url(img/twiter.png) no-repeat top right,url(img/simplebg.jpg) no-repeat top left;</pre>
<p>simple and easy  thats it</p>
<p>important note :-</p>
<p>the order is very important here because the first image will be above the next one etc..</p>
<p>we can merge the previous features together like that</p>
<pre>background:url(img/twiter.png) no-repeat top right,url(img/simplebg.jpg) no-repeat top left;</pre>
<pre>-webkit-background-size:auto  auto, 100%;</pre>
<p>3 - background-border :-</p>
<p>yes you can now define a background to be a border to a container</p>
<p>see the  next image</p>
<p><img class="alignnone" title="css3 border image" src="http://www.w3.org/TR/2008/WD-css3-background-20080910/slice" alt="" width="388" height="304" /></p>
<p>you can define the border cordinations like that</p>
<pre>border-image:url("img/simpleborder.png") 25% 30% 12% 20%</pre>
<p>we can use some reserved words like (stretch,repeat,round)</p>
<p>and we will add some extentions to work with most common browsers</p>
<pre>-webkit-border-image:url("img/simpleborder.png") 25% 30% 12% 20%;</pre>
<pre>-moz-border-image: url("img/simpleborder.png") 25% 30% 12% 20%;</pre>
<pre>-o-border-image: url("img/simpleborder.png") 25% 30% 12% 20%;</pre>
<pre>-khtml-border-image: url("img/simpleborder.png") 25% 30% 12% 20%;</pre>
<p>4-  transparent colors:-</p>
<p>we was doing transparent colors by making the global container transparent via obacity features  but now you can simply make the  background colors only transparent by rgba</p>
<pre>rgba(0,0,0,0.5)</pre>
<p>the first 3 values is the rgb  values and the last value is the obacity value</p>
<p>note: there is a code from webdesignerdepot <a href="http://www.webdesignerdepot.com/2009/08/5-css3-design-enhancements-that-you-can-use-today/" target="_blank">http://www.webdesignerdepot.com/2009/08/5-css3-design-enhancements-that-you-can-use-today</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/css3-magic/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the hackers &#8211; a monster you should fear</title>
		<link>http://topweb2.net/blog/the-hackers-a-monster-you-should-fear</link>
		<comments>http://topweb2.net/blog/the-hackers-a-monster-you-should-fear#comments</comments>
		<pubDate>Sat, 12 Sep 2009 09:27:26 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[hackers]]></category>
		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=69</guid>
		<description><![CDATA[Did you get hacked before ? if you say yes then you know how dangerous the setuation be , if not please read the article carefully
when you lunch a web site as a developer all your concern is that the website functionality doing well , and the site shows prefectly on all browsers &#8230; etc [...]]]></description>
			<content:encoded><![CDATA[<p>Did you get hacked before ? if you say yes then you know how dangerous the setuation be , if not please read the article carefully</p>
<p>when you lunch a web site as a developer all your concern is that the website functionality doing well , and the site shows prefectly on all browsers &#8230; etc , but many developers dont spend any time to enhance security into thier web applications , ok lets start this case study</p>
<p>john is a web developer he works with php and javascript and his company told him to develop a website for a education institute which have a online payed session and online registration</p>
<p>john begin to develop this functionallity and perfectly done the site and test it (not security but only functionally)  and john deliver the project to his boss , and website lunched , john go to his home happy with his work</p>
<p>on another hand , there is a hacker some where , hear about this website and he begin to test it (security bugs)  and after a while he found a sql injection expoit with it he can bypass the registration , so the hacker hacked into the site and add a new user and just download all the educational material and then dropped the database and insert just one record in the db (HACKED BY ::: ) , and he continued and uploaded the educational material on sharing website to be available to all for free</p>
<p>john got a telephone at night from his boss , and his boss was very angry , the website hacked after a few our from being lunched . and all material available now for free on the internet ,  the education institute avoidance of the contract with the company , and the company the company&#8217;s reputation at stake , and as a natural result ,  john lose his job</p>
<p>ok , john was a good developer but he knows nothing about security and thats cost him his job and turn his life into hell .<br />
hackers in every where , trying very hard to crack into websites and applications , so begin now learning security , read more and more ,</p>
<p><span style="color: #0000ff;"> learn how to strike to  learn how to defence</span></p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/the-hackers-a-monster-you-should-fear/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>stop spam on your blog &#8211; WP Email Guard</title>
		<link>http://topweb2.net/blog/stop-spam-on-your-blog-wp-email-guard</link>
		<comments>http://topweb2.net/blog/stop-spam-on-your-blog-wp-email-guard#comments</comments>
		<pubDate>Thu, 10 Sep 2009 13:10:25 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=64</guid>
		<description><![CDATA[did you getting tired from spammers , are you afraid of post any emails in your posts to avoid spammers crawlers , do you tried any solutions before , now post emails easly and without fear with this awesome plugin , get it now from here http://wordpress.org/extend/plugins/wp-email-guard/

the idea behind this plugin is to replace normal email [...]]]></description>
			<content:encoded><![CDATA[<p>did you getting tired from spammers , are you afraid of post any emails in your posts to avoid spammers crawlers , do you tried any solutions before , now post emails easly and without fear with this awesome plugin , get it now from here <a href="http://wordpress.org/extend/plugins/wp-email-guard/" target="_blank">http://wordpress.org/extend/plugins/wp-email-guard/</a></p>
<p><span id="more-64"></span></p>
<p>the idea behind this plugin is to replace normal email with special javascript code which the spammers cant crawel and read it so the email remain secure and at the same time it simple and readable for humans  , enjoy it and if you like it please rate us in wordpress plugins</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/stop-spam-on-your-blog-wp-email-guard/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>html5 &#8211; introduction</title>
		<link>http://topweb2.net/blog/html5-introduction</link>
		<comments>http://topweb2.net/blog/html5-introduction#comments</comments>
		<pubDate>Fri, 14 Aug 2009 13:51:19 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[ecma script]]></category>
		<category><![CDATA[w3]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=42</guid>
		<description><![CDATA[hi every body
sorry for not being posting past days thats because i was busy , today we will talk about awesome technology , we will talk about the new html , html5
the w3 team decided that there will no longer going to develop XHTML to focus on develop HTML5 and define its standard , so [...]]]></description>
			<content:encoded><![CDATA[<p>hi every body<br />
sorry for not being posting past days thats because i was busy , today we will talk about awesome technology , we will talk about the new html , html5</p>
<p>the w3 team decided that there will no longer going to develop XHTML to focus on develop HTML5 and define its standard , so if you want to be up to date with web technology you must learn html5 as soon as possible</p>
<p>if you have a text editor and website you now ready to learn it , so come on with me , go on html5</p>
<p>why html5?</p>
<p>html5 is most interactive most flexible than other release of html , and all of the browsers will be supports it and most of complex things that we was usually doing it in dozens on code you will be able to do that in html5 with just a line of code</p>
<p>when i will be ready to use html5?<br />
now ,  yes now you can use html5 immedialtely but in ie you will face some problems becasue they dont support all html5 features yet</p>
<p>why i use it if html5 not crossbrowser technology??<br />
who says that , html5 is not yet a w3 recommedition thats a true , but it will be soon , and now all browsers except ie supports it , don&#8217;t be shy and try it</p>
<p>where i can start?<br />
ok you can start here in my blog i will post tutorials on html5 and javascript2 , and if you love to read you can see the draft on w3.org site  <a href="http://www.w3.org/TR/html5/" target="_blank">http://www.w3.org/TR/html5/ </a></p>
<p>or what  work group draft <a href="http://www.whatwg.org/specs/web-apps/current-work/ " target="_blank">http://www.whatwg.org/specs/web-apps/current-work/ </a></p>
<p>have fun with html5 and see you later</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/html5-introduction/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
