<?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>Web design blog</title>
	<atom:link href="http://lastwebdesigner.com/feed" rel="self" type="application/rss+xml" />
	<link>http://lastwebdesigner.com</link>
	<description>Antonio Fullone &#039;s personal blog about web design</description>
	<lastBuildDate>Sat, 12 Nov 2011 18:39:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Are Your Pages Trending?</title>
		<link>http://lastwebdesigner.com/seo/are-your-pages-trending.html</link>
		<comments>http://lastwebdesigner.com/seo/are-your-pages-trending.html#comments</comments>
		<pubDate>Sat, 12 Nov 2011 18:38:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[smm]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=320</guid>
		<description><![CDATA[If you want people to visit your website, it can be very helpful to feature topics that are &#8220;trending.&#8221; Google and Twitter, for example, keep track of which keywords are being searched for most often, or which are being mentioned most commonly. Staying on top of these trends will earn your website a reputation for [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Fseo%2Fare-your-pages-trending.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Fseo%2Fare-your-pages-trending.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=media,smm&amp;b=2" height="61" width="50" title="Are Your Pages Trending?  " alt=" Are Your Pages Trending?  " /><br />
			</a>
		</div>
<p>If you want people to visit your website, it can be very helpful to feature topics that are &#8220;trending.&#8221; Google and Twitter, for example, keep track of which keywords are being searched for most often, or which are being mentioned most commonly. Staying on top of these trends will earn your website a reputation for offering fresh information on the topics that people care about. There are several different kinds of tools you can use to keep track of what is trending on the web. Here are a few of them.<span id="more-320"></span></p>
<p>Twitter trends are a good way to keep track of what is being talked about on the web. While these trends are displayed on the front page of Twitter, their open database makes it possible for other developers to create software to analyze trends in tweets. Rather than telling you what is searched for, this keeps you in touch with what people are saying.</p>
<p>If you want to follow the trends on twitter using graphs, <strong>Trendistic</strong> is a good option. You can view trends over a day, week, month, 90 or 180 day period for any subject. This is a great way to stay in touch. <strong>PicFog</strong> is another useful piece of software that searches <strong>Twitter</strong> photo upload sites. If you want a current image about a subject you are covering, this is a very useful tool to have, and possibly to incorporate into your web design.</p>
<p><strong>Google Trends</strong> is one of the most commonly used and well known options available. It allows you to enter in as many as five different topics. The software then tells you how often the topics have been searched for over a period of time. Additionally, it tells you how often the topics have shown up in the news, and which regions of the globe are more interested in specific topics.</p>
<p>By using Google Trends, you can get people to specific <a href="http://Thetop10bestwebhosting.com/ca">visit site</a> areas by staying on top of what&#8217;s being covered. You can also get some idea of what keywords to include in the text. One limitation of Google Trends is that it doesn&#8217;t tell you how often the topic is searched for, it only tells you how much more or less than average the topic is being searched for. A reading of 3.0, for example, means that the term is beings searched for 3 times more often than normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/seo/are-your-pages-trending.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seo for web designers: what has changed in 2010</title>
		<link>http://lastwebdesigner.com/seo/seo-for-web-designers-what-has-changed-in-2010.html</link>
		<comments>http://lastwebdesigner.com/seo/seo-for-web-designers-what-has-changed-in-2010.html#comments</comments>
		<pubDate>Thu, 17 Feb 2011 11:23:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[caffeine]]></category>
		<category><![CDATA[instant search]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=311</guid>
		<description><![CDATA[This post is wrote with the help of Andrea Infusino, an italian SEO and programmer. You can check his (italian)website or follow him on twitter. Seo and web designer. Looks like they are &#8230;too far apart .. but is not the truth &#8230; I think every web designer should know, (at least) the basic knowledge of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Fseo%2Fseo-for-web-designers-what-has-changed-in-2010.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Fseo%2Fseo-for-web-designers-what-has-changed-in-2010.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=caffeine,instant+search,SEO&amp;b=2" height="61" width="50" title="Seo for web designers: what has changed in 2010" alt=" Seo for web designers: what has changed in 2010" /><br />
			</a>
		</div>
<p>This post is wrote with the help of <strong>Andrea Infusino</strong>, an <strong><a href="http://www.andreainfusino.com/articoli/posizionamento-seo/">italian SEO</a></strong> and programmer. You can check his <strong><a href="http://www.andreainfusino.com/">(italian)website</a></strong> or follow him on <strong><a href="http://twitter.com/#!/seocosenza">twitter</a>.</strong></p>
<p>Seo and web designer. Looks like they are &#8230;too far apart .. but is not the truth &#8230; I think every web designer should know, (at least) the basic knowledge of <strong>seo</strong>.</p>
<p>But seo is always in changing, improving, and this year was a big year of changes for <strong>SEO</strong>.<span id="more-311"></span></p>
<h2>So what has changed for seo and what a web designer should know about these changes?</h2>
<div id="attachment_316" class="wp-caption alignnone" style="width: 310px"><a href="http://lastwebdesigner.com/wp-content/uploads//2011/02/Screen-shot-2011-02-17-at-11.52.31-AM.png"><img class="size-medium wp-image-316" title="seo for web designers" src="http://lastwebdesigner.com/wp-content/uploads//2011/02/Screen-shot-2011-02-17-at-11.52.31-AM-300x151.png" alt="Screen shot 2011 02 17 at 11.52.31 AM 300x151 Seo for web designers: what has changed in 2010" width="300" height="151" /></a><p class="wp-caption-text">seo for web designers</p></div>
<p>Some are not really important for Us, like the <strong>google caffeine</strong>, the new  <strong>algorithm</strong>, but others involves directly our job and is really useful for a web designer know how the improve the ranking of a web site. Nowadays is not (only) about a <strong>h1</strong> tag, a <strong>good title</strong> with keywords or some good links.</p>
<p>Just think about <strong>HTML5</strong>. The new <strong>section</strong> and article <strong>tags</strong>, will give us(or the contend editors) the power to use more than h1 tag on a page, so  what&#8217;s about this? The semantic is changing, and google, as others search engines, will consider this, so probably the h1 tag should be not more relevant in the further years, as is it now?</p>
<p>I will not explain all the new features or how they works, but we should now these changes, and what the expert <strong>SEO Andrea Infusino</strong> thinks about these changes.</p>
<p><strong>So what has changed in 2010? Let&#8217;s see</strong>.</p>
<h2>1- Google caffeine, instant search.</h2>
<p>Real time is the future! <strong><a href="http://www.google.com/instant/">Google instant</a></strong>, do you know this? You can make search in real time. As web designer , you&#8217;re not obligated to know this,and you can think &#8220;This is not important for me!!&#8221;. Right!  But is a  big change, important, you must know this. A seo must know how the new algorithm works, a web designer should know about this new, big change in the search engine ranking.</p>
<p>What Andrea says about this :</p>
<p><strong>so many internet marketer thought instant searches could have changes the way of searching for users and AdWords campaign have to include partial keywords ads (“t”, “tr”, “tra”, “trav” etc&#8230; for “travels”), but don&#8217;t.</strong><strong><br />
</strong><strong>Instant search is just a faster way to get organic searches executed. Another important point, in the other hand, is that instant search could reduce users time spent on page because many users can find their result before typing all the keyphrase!</strong></p>
<h2>2 &#8211; Show the results!!</h2>
<p>Are you still logged in google? Not only the instant results, you can view a preview of  the web site. Move the mouse over the result in the SERP, you can see a preview of the web site. what&#8217;s about this?  Well &#8230; I&#8217;m trying to improve the page considering this factor, maybe is not real important but is good to know.</p>
<p>Andrea :</p>
<p><strong> it&#8217;s important to remark that flashy websites, and ad-fully website, are not displayed at best because instant preview crawler does not execute them. In these cases you have to consider to give an alternative and valid content or redesign your webpages for a more fruible and accessible design and contents.</strong><strong><br />
</strong><strong>In addition we have to remember some webmaster witch hunts when they started getting instant preview crawler visit counted in direct traffic into Google Analytics panel, fixed afterwards <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_razz.gif' alt="icon razz Seo for web designers: what has changed in 2010" class='wp-smiley' title="Seo for web designers: what has changed in 2010" /> </strong></p>
<h2>3 &#8211; Social Networking</h2>
<p>Facebook, twitter and the other &#8220;friends&#8221;, you can see in the SERP the results of facebook status, facebook pages, friends, link posted, the same is for twitter. SE are considering these pages in the results, and sometimes I see that some page facebook are on the top of a SERP before the web site. Maybe is not goodthat you&#8217;re fans page is listed before of you&#8217;re site in google, or not?</p>
<p>Andrea&#8217;s consideration:</p>
<p><strong>have you already heard about Blekko?</strong><strong><br />
</strong><strong>Blekko was lauched with “slash the web” but it is really more than a slashing utility. It allows you to dig very a lot of informations: you can get  and analyze so many ranking factors for free and comparing them with other websites -read competitors-. Just think that Google webasmter tools don&#8217;t!</strong><strong><br />
</strong><strong>Anhoter interesting point is that blekko allows you to search for google adsense pub id, and last bu not least a more incisive spam fighting, removing so many spammy websites and useless aggregators.</strong><strong><br />
</strong><strong>Into social signals Blekko started to put, afert logging into facebook, some facepiles of your friends into search results (liked pages).</strong></p>
<h2>4 &#8211; Social links are important for ranking</h2>
<p>Yes, google consider social link, they can improve the ranking of your web site. And if Google does this, the others <strong>SE</strong> will do the same.</p>
<p>Andrea :</p>
<p><strong>To explain the importance of social signals, just think about some non-direct benefits. First of all Yes, google consider social link, they can improve the ranking of your web site. And if Google does this, the others SE will do the same. You have to consider Google, and other S.E., let you know and create our own social cirle, that is you friends across the web and social platforms. A social circle is a small world that allow you to get traffic and new signals for your blogging activity. In addition just think social circle is composed of nofollow links. Could this harm you website? It doesn&#8217;t, but this could represent a great value. A good post will be shared, clicked and visited really many times and you can easily think that the direct link benefit is not so important if you consider the traffic and brand reputation below this!</strong></p>
<h2>5 &#8211; Real time world is now!</h2>
<p>Real time? click on the link real time, in the google menu on the right, you can see result from  social  in the serp. As the same time you can see real time streaming of result based on twitter streaming, so what? Launched a new web site? You should appear in the first page of result simply sending a link to twitter, is nice, really nice. You can get visits on a new web site with a simple tweet, that could be in the first page of the SERP.</p>
<p>Andrea :</p>
<p><strong>“faster” is the keyword: we can read this into two main branches. </strong><strong><br />
</strong><strong>Google and other techologies, consider facebook or twitter medium speed of posting news and updating, are moving to faster platofmr and changes. Your website, your design and application logic must be as flexible as possibile in order to adapt themselves to the changes of the web (think about social widgets). In the other hand Google have already introduces page speed utilites, and this is a tangible signal that we must keep our pages really fast, creating good and reacheable CDN, light js and images, excellent webhosting and so on!</strong></p>
<h2>6 &#8211; Personalized searches.</h2>
<p>Users can now personalize they&#8217;re search, and the results will be more relevant depending on the previous user research. Google explained this very well in this blog. Is based on the last 180 days of search.</p>
<p>Andrea :</p>
<p><strong> someone could thing that this is really harmful for a website owner. I just only say that it&#8217;s true if you are not sure of creating a good, unique and valuable content! <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_wink.gif' alt="icon wink Seo for web designers: what has changed in 2010" class='wp-smiley' title="Seo for web designers: what has changed in 2010" /> </strong></p>
<h2>7 &#8211; Blog comments, &#8220;no follow&#8221; link ?</h2>
<p>Google is considering this, mainly to fight the spam. Spammers always searching for new ways to fill internet with they&#8217;re shits! A way to do this is commenting on posts, but not writing &#8221; buy Viagra&#8221;, instead they use  something like this &#8220;OH! What a good post!! I&#8217;m going to subscribe to your rss&#8221;. If you are using this technique to get backlinks .. don&#8217;t do it .. I don&#8217;t think is a good idea, in the further years Google and other search engines will make other chnges to fight this problem.</p>
<p>Andrea :</p>
<p><strong> Right: I can say you really more! User generated content is really important to “up” your pages and articles. Spend your time to get your user involved into your topics. Put questions or other signals to create a reaction into your user, and let&#8217;s see how they are forgetting do/no follow problems.</strong></p>
<p><strong>Be happy to get 10 good comments with new ideas intead of 1000  low-quality comments hard to manage, hard to believe, spammy-like.</strong></p>
<h2>8 &#8211; Google is not the only one.</h2>
<p>Google is not the only search engine in the world! Of course is the best, the more important and the one whose decision will  affect the SEO world, as the previous mentioned before. But is not the only one, Bing as grown a lots in the last year, although Google did not liked this, and they says &#8220;Bing has copied our SERP&#8221;. Try to consider this in you&#8217;re optimization. For example bing offers a sort of &#8220;webmaster tool&#8221; (yeas ok, maybe the are &#8220;inspired&#8221; by google), as the same as Yahoo,despite everything, is still important.</p>
<p>Andrea :</p>
<p><strong> think to yourself “what happens if google will close?”. We have always to consider that point. Social networks and new search engines are growing up everyday with new ideas, and the web is changing. Google is still the number one in the search segment, but we have not to stop to find and be optimized for niche search engines, just like for keywords and traffic (80/20 is always the key!). One of the most critical point for Google now is the sponsored search into facebook where bing offers its results.</strong></p>
<p><strong>Facebook is not our lives, but we have to admit that we spend so many hours on it for fun or for work. So many young users are on facebook everyday and even older one are getting facebook profiles. This profilation, htat is really a deep one, could harm Google predominance. Once we used to say “i&#8217;m on the web” surfing over yahoo, altavista, aol and others. After we used to say it while we where searching just only on Google. Now we say it browsing facebook or twitter pofiles! The web is changing! We are going to a more person-centric web infrastructure, and google is moving to this direction introducing more accurate SERP, personalizations and geo-localitazion services and social-integrations too!</strong></p>
<h2>9 &#8211; Maps? Localization?</h2>
<p>Big web sites are not really hard to put in a serp, or in the first pages, but what if you create a website for a restaurant? If you search for &#8220;restaurant name of city&#8221; is not sure you will be in the first page, although in you&#8217;re city there are only 3 restaurant, so why? Because of big portal, so the first page will show the results from a portal that contain the section of &#8220;restaurant in Paola&#8221;. So what? Stop fighting with backlinks, posting the link everywhere, or buy links from dedicated services. It has no reason!! Buy 100$ of adwords impressions, and add the restaurant to google maps, you should be in the first page without know nothing about seo(Yes, I think Seo don&#8217;t like this …)</p>
<p>Andrea :</p>
<p><strong>local searches can fit very well with “less is more” concept. Just do less, for less people and get more visibility, more leads or more traffic considering to reach a local audience. Sometimes getting ranked well into local searches, better, having a higher ranking using local-based keywords can help you to face a lower competition. Add this to mobile apps for local business. Think about Facebook Places or Fourquare or Gowalla or Twitter Localization or Google Maps or Google Places. Local is getting more and more important and we can count so many signals to say that local is the key for small/mid business. Just concentrate your efforts on these signals and apps, starting using them and try to getting the most from them not only for  some direct benefits on Google ranking, but for covering your places with your presence and brand!</strong></p>
<p><strong>Final conclusion.</strong></p>
<p><strong>SEO</strong> is important, is not our job, but is important. If you are a web designer, or better said a front end developer, consider SEO when you make a new website, of course,  is not our mainly mansion, but the client will be happy to know that you can improve the ranking of his page, not only the aesthetic.</p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/seo/seo-for-web-designers-what-has-changed-in-2010.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Quickly and useful photoshop effect for modern layouts</title>
		<link>http://lastwebdesigner.com/tutorials/quickly-photoshop-techniques.html</link>
		<comments>http://lastwebdesigner.com/tutorials/quickly-photoshop-techniques.html#comments</comments>
		<pubDate>Mon, 10 Jan 2011 11:14:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=261</guid>
		<description><![CDATA[With this post I want to show you some useful and quickly techniques with photoshop to create nice and modern layout. Ribbon 3d effects has been a trends the last year, let&#8217;s see how  create, quickly, a ribbon in photoshop. Create a new document 400*500 and call it &#8220;Ribbon&#8220;. Set the guides and the rulers [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Ftutorials%2Fquickly-photoshop-techniques.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Ftutorials%2Fquickly-photoshop-techniques.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=Photoshop&amp;b=2" height="61" width="50" title="Quickly and useful photoshop effect for modern layouts" alt=" Quickly and useful photoshop effect for modern layouts" /><br />
			</a>
		</div>
<p>With this post I want to show you some useful and quickly techniques with photoshop to create nice and modern layout.</p>
<h2>Ribbon</h2>
<p>3d effects has been a trends the last year, let&#8217;s see how  create, quickly, a ribbon in photoshop.</p>
<p>Create a new document 400*500 and call it &#8220;<strong>Ribbon</strong>&#8220;.</p>
<p>Set the guides and the rulers as show in the image below(is are hidden, CMD+H to show).<span id="more-261"></span></p>
<div id="attachment_269" class="wp-caption alignnone" style="width: 509px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/11.jpg"><img class="size-full wp-image-269 " title="Set the container" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/11.jpg" alt="11 Quickly and useful photoshop effect for modern layouts" width="499" height="530" /></a><p class="wp-caption-text">Set the container</p></div>
<p><strong>Create the containe</strong>r : Create a <strong>new layer</strong> , I called it wrap, select the <strong>Rectangular marquee tool</strong>, create a selection <strong>300*500</strong> <strong>following</strong> the guides and fill it with white.</p>
<div id="attachment_271" class="wp-caption alignnone" style="width: 528px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/21.jpg"><img class="size-full wp-image-271 " title="Container" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/21.jpg" alt="21 Quickly and useful photoshop effect for modern layouts" width="518" height="554" /></a><p class="wp-caption-text">Container</p></div>
<p>Set the foreground color  to #<strong>d21010</strong>, draw a rectangle using the<strong> rectangle tool(U</strong>),go some pixels &#8220;out&#8221; of the <strong>wrap layer,</strong> it should be like this</p>
<div id="attachment_272" class="wp-caption alignnone" style="width: 585px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/3.jpg"><img class="size-full wp-image-272 " title="Create the Ribbon 1" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/3.jpg" alt="3 Quickly and useful photoshop effect for modern layouts" width="575" height="516" /></a><p class="wp-caption-text">Create the Ribbon 1</p></div>
<p><strong>I will not apply particular effect or filter, is only a quick tutorial on how create it, so change background, colors or whatever you want.</strong></p>
<p>Now we&#8217;ll draw a new rectangle  above the other layer,  exactly the out of box part of ribbon layer, and fill this new rectangle with a more darker color, to give the illusion of depth, I used #870808</p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/4.jpg"><img class="alignnone size-full wp-image-273" title="Depth" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/4.jpg" alt="4 Quickly and useful photoshop effect for modern layouts" width="599" height="341" /></a></p>
<p>With the new layer selected click <strong>CMD+ t or edit-&gt;transform -&gt; distort.</strong> Drag the<strong> bottom left angle</strong> of the selection to down.</p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/5.jpg"><img class="alignnone size-full wp-image-274" title="Distort and create depth" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/5.jpg" alt="5 Quickly and useful photoshop effect for modern layouts" width="575" height="328" /></a></p>
<p>Release and apply the transformation</p>
<div id="attachment_275" class="wp-caption alignnone" style="width: 520px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/6.jpg"><img class="size-full wp-image-275 " title="The ribbon" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/6.jpg" alt="6 Quickly and useful photoshop effect for modern layouts" width="510" height="334" /></a><p class="wp-caption-text">The ribbon</p></div>
<p>Finally, in the layer window, drag the darker layer down the main ribbon layer, this is the final result.</p>
<div id="attachment_276" class="wp-caption alignnone" style="width: 510px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/7.jpg"><img class="size-full wp-image-276" title="Final Result" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/7.jpg" alt="7 Quickly and useful photoshop effect for modern layouts" width="500" height="206" /></a><p class="wp-caption-text">Final Result</p></div>
<p>Now let&#8217;s try to create the same effect, but changing with a rounded depth.</p>
<h2><strong>Rounded Ribbons</strong></h2>
<p>For a better view rotate the image on 90° CCW, zoom it and select the rounded rectangle tool. Draw a rectangle like this</p>
<div id="attachment_278" class="wp-caption alignnone" style="width: 592px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/81.jpg"><img class="size-full wp-image-278" title="Rounded ribbon" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/81.jpg" alt="81 Quickly and useful photoshop effect for modern layouts" width="582" height="634" /></a><p class="wp-caption-text">Rounded ribbon</p></div>
<p>Select again the rectangle tool and <strong>draw a shape</strong> like a &#8220;base&#8221; of the <strong>rounded rectangle</strong> be sure to give a height like the <strong>rounded angle</strong>, should look like this</p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/91.jpg"><img class="alignnone size-full wp-image-282" title="9" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/91.jpg" alt="91 Quickly and useful photoshop effect for modern layouts" width="450" height="450" /></a></p>
<p><strong>Cmd+E </strong> and merge the layers.</p>
<p>Rectangle Marquee Tool, select the bottom rounded middle of the layer and create a <strong>new copy layer</strong> from this</p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/111.jpg"><img class="alignnone size-full wp-image-283" title="11" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/111.jpg" alt="111 Quickly and useful photoshop effect for modern layouts" width="500" height="414" /></a></p>
<p><strong>Flip the Layer vertical,</strong> drag  next to the <strong>first shape</strong>, then <strong>CMD+click</strong> on the layer in the <strong>layer window</strong>, and select the original then <strong>delete</strong> it</p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/13.jpg"><img class="alignnone size-full wp-image-284" title="13" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/13.jpg" alt="13 Quickly and useful photoshop effect for modern layouts" width="450" height="246" /></a></p>
<p>Now you should have this</p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/14.jpg"><img class="alignnone size-full wp-image-285" title="14" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/14.jpg" alt="14 Quickly and useful photoshop effect for modern layouts" width="400" height="526" /></a></p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/14.jpg"></a>Do the same for the left side and the <strong>deselect</strong> (CMD+D) and delete the second layer, as we don&#8217;t need.</p>
<p>Now we have to create the depth, so simply choose a <strong>darker color</strong>, as before, and create a <strong>Ellipse with the Ellipse Tool</strong> <strong>rasterize</strong> then cut in half, deleting the <strong>bottom middle</strong>, you can use the marquee tool then delete.</p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/15.jpg"><img class="alignnone size-full wp-image-286" title="15" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/15.jpg" alt="15 Quickly and useful photoshop effect for modern layouts" width="450" height="513" /></a></p>
<p>Move the half ellipse down the rounded angle then duplicate the ellipse layer and do the same for the other side.</p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/16.jpg"><img class="alignnone size-full wp-image-287" title="16" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/16.jpg" alt="16 Quickly and useful photoshop effect for modern layouts" width="450" height="402" /></a></p>
<p>Finish : move to next the wrap and then rotate again the image for 90° CW, final result</p>
<div id="attachment_288" class="wp-caption alignnone" style="width: 460px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/17.jpg"><img class="size-full wp-image-288" title="Rounded Ribbon with Photoshop" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/17.jpg" alt="17 Quickly and useful photoshop effect for modern layouts" width="450" height="478" /></a><p class="wp-caption-text">Rounded Ribbon with Photoshop</p></div>
<h2>Inset lines</h2>
<p>Another nice effect is the inset lines, like I used in this blog. Do a inset lines is easy.</p>
<p>Create a new document again 400*500 and fill it with #<strong>2f3a6b</strong></p>
<p><strong>New layer, </strong>change the foreground color with #<strong>010101</strong>, make a selection with fixed size 100px * 1px and fill it with(G) the foreground darker color. (Zoom with (Z) on the selection if you cant see the line).</p>
<div id="attachment_289" class="wp-caption alignnone" style="width: 460px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/18.jpg"><img class="size-full wp-image-289" title="inset line with photoshop" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/18.jpg" alt="18 Quickly and useful photoshop effect for modern layouts" width="450" height="71" /></a><p class="wp-caption-text">inset line with photoshop</p></div>
<p>Now don&#8217;t deselect, <strong>move the selection one pixel down</strong>, create a new layer then fill it with #ffffff and set the blending level mode to <strong>soft light</strong></p>
<p><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/19.jpg"><img class="alignnone size-full wp-image-290" title="19" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/19.jpg" alt="19 Quickly and useful photoshop effect for modern layouts" width="450" height="175" /></a></p>
<p>Done! This is the final result</p>
<div id="attachment_291" class="wp-caption alignnone" style="width: 198px"><a class="lightbox" href="http://lastwebdesigner.com/wp-content/uploads//2011/01/20.jpg"><img class="size-full wp-image-291" title="inset line with photoshop" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/20.jpg" alt="20 Quickly and useful photoshop effect for modern layouts" width="188" height="148" /></a><p class="wp-caption-text">inset line with photoshop</p></div>
<h2>Inset Typography.</h2>
<p>Create beautiful inset typography require excellent skills and knowledge of photoshop, but a good way to starting and understand how obtain this effect is playing with the inner shadow in the layer style, here&#8217;s a quickly example.</p>
<p>Create a new document, fill it with #767a8e use a bolder font with big size and write something. I used <strong>League Gothic(is free search on google) 100px and #4a4d5e as color for the text.</strong></p>
<p><strong> </strong></p>
<p>Now double click on the layer in the window layer and set the inner shadow effects like this picture</p>
<div id="attachment_295" class="wp-caption alignnone" style="width: 604px"><a href="http://lastwebdesigner.com/wp-content/uploads//2011/01/221.jpg"><img class="size-full wp-image-295" title="Inset typography" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/221.jpg" alt="221 Quickly and useful photoshop effect for modern layouts" width="594" height="438" /></a><p class="wp-caption-text">Inset typography</p></div>
<p>And here we go</p>
<div id="attachment_294" class="wp-caption alignnone" style="width: 460px"><a href="http://lastwebdesigner.com/wp-content/uploads//2011/01/23.jpg"><img class="size-full wp-image-294" title="Inset typography" src="http://lastwebdesigner.com/wp-content/uploads//2011/01/23.jpg" alt="23 Quickly and useful photoshop effect for modern layouts" width="450" height="321" /></a><p class="wp-caption-text">Inset typography</p></div>
<p>This is a good start point to work with <strong>Photoshop</strong> and create <strong>Inset Typography</strong>. You can work with <strong>shadows</strong>, <strong>gradients</strong> and other PSD effects to create your own inset effect.</p>
<p><strong>You can download the PSDs at this link</strong></p>
<p><a class="download" title="psd effects " href="http://www.box.net/shared/vbbihp6hpp">Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/tutorials/quickly-photoshop-techniques.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>I&#8217;m back</title>
		<link>http://lastwebdesigner.com/featured/im-back.html</link>
		<comments>http://lastwebdesigner.com/featured/im-back.html#comments</comments>
		<pubDate>Sun, 02 Jan 2011 17:39:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=254</guid>
		<description><![CDATA[Well, after a long time from the last post, here I am! The 2010 was a really hard(read bad) year for me, for work, personal problems and some really bad things happened to me. I decided to restart again, change the web site adn .. a bit my life .. I lived for 2 beautiful [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Ffeatured%2Fim-back.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Ffeatured%2Fim-back.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=personal&amp;b=2" height="61" width="50" title="Im back" alt=" Im back" /><br />
			</a>
		</div>
<p>Well, after a long time from the <a title="wordpress seo " href="http://lastwebdesigner.com/seo/optimize-your-wordpress-blog-for-search-engines.html">last post</a>, here I am!</p>
<p>The <strong>2010</strong> was a really hard(read bad) year for me, for work, personal problems and some really bad things happened to me. I decided to restart again, change the web site adn .. a bit my life ..<span id="more-254"></span></p>
<p>I lived for 2 beautiful years in <a title="italiani a barcellona" href="http://www.vivereabarcellona.com"><strong>Barcelona</strong></a>, then , for personal and work reasons, I came back to Italy, where actually I&#8217;m living. But this year was not good for me, so I really hope the 2011 will be better!!<!--more--></p>
<blockquote><p><strong>Anyway I want to wish you a happy and great new year, that brings to you happiness and luck!! </strong></p></blockquote>
<p>Well, I&#8217;ll try to post more often here, I&#8217;ve planned some new post to publish, maybe I&#8217;ll write a post about this, sad, 2010.</p>
<p>I invite you to take a look at the new layout, and give me feedback, the site is not finished, but I had to publish, so I&#8217;m still working on to improve it, if<strong> you want to give me a feedback about this layout, your welcome! </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/featured/im-back.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Optimize your wordpress blog for search engines</title>
		<link>http://lastwebdesigner.com/seo/optimize-your-wordpress-blog-for-search-engines.html</link>
		<comments>http://lastwebdesigner.com/seo/optimize-your-wordpress-blog-for-search-engines.html#comments</comments>
		<pubDate>Tue, 23 Jun 2009 11:23:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=210</guid>
		<description><![CDATA[WordPress is, of course, one of the best CMS and blogging platform that your can find actually. The reasons why use wordpress are a lots : semplicity, easy install, a lots of plugins, big commmunity and , naturally, is free. Another advantage of this fabulous CMS is that is loved by Google and the other [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Fseo%2Foptimize-your-wordpress-blog-for-search-engines.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Fseo%2Foptimize-your-wordpress-blog-for-search-engines.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=SEO,wordpress&amp;b=2" height="61" width="50" title="Optimize your wordpress blog for search engines" alt=" Optimize your wordpress blog for search engines" /><br />
			</a>
		</div>
<p><a href="http://wordpress.org"><strong>WordPress</strong></a> is, of course, one of the<strong> best CMS and blogging platform that your can find actually. </strong></p>
<p>The reasons why use wordpress are a lots : <strong>semplicity, easy install, a lots of plugins, big commmunity and , naturally, is free.</strong></p>
<p>Another advantage of this fabulous<strong> CMS is that is loved by Google and the other search engines</strong>, and , with some modifications and the use of the rights plugins, your blog will be really good indexed in the various search engines, bringing you more users and traffic. <span id="more-210"></span></p>
<p>How to make this? Changing something in your blog&#8217;s settings and adding some plugin.</p>
<p>First of all you need to change the<strong> URL Structure of your blog</strong>, when you install <strong>wordpress</strong> the blog URL structure is this :</p>
<blockquote><p><strong>http://www.myblog.com/?p=1</strong></p></blockquote>
<p>This is a good structure but you can improve and use a structure <strong>&#8220;SEO-friendly&#8221;</strong>.</p>
<p>Go in the Admin panel of your blog in<strong> Settings- permalink</strong> and change the permalinks, in my Blogs I use this :</p>
<blockquote><p><strong>/%category%/%postname%.html</strong></p></blockquote>
<p>Another good solution may be to add the ID or the date of the post, so you &#8216;ll give to the search engine an order, and this is better :</p>
<blockquote><p><strong><strong>/%category%/%post_id%/%postname%.html</strong></strong></p></blockquote>
<p><span style="text-decoration: underline;">One important thing that you must consider when you change your permalink structure is that the search engine will index this pages and is better to not change more this structure, so choose what structure you want to use and never change this.</span></p>
<p>Although a<a href="http://googlewebmastercentral.blogspot.com/2008/09/dynamic-urls-vs-static-urls.html"> recent article by Google</a> says that the don&#8217;t care about the <strong>URL</strong> structure and the new algorithm can index without problem all the kind of URL, I&#8217;m still conviced that this is still important and improve your posistion in the search engine, <strong>and of course you will put keywords in the URL</strong>, and this is important for Google and others.</p>
<p> <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Optimize your wordpress blog for search engines" class='wp-smiley' title="Optimize your wordpress blog for search engines" /> </p>
<p>That&#8217;s all? No, sure, but from the <strong>panel control of wordpress</strong> there&#8217;s no more to do, wordpress is SEO -ready and the semantic code is loved by Google et company.</p>
<p>Of course there&#8217;s another important thing to consider that is important for the positioning <strong>: the title of your post.</strong></p>
<p>The title is really important for improve your blog in google (or other search engine) so always, before to write a post, <span style="text-decoration: underline;">take some minutes to think in the title </span>, how to put (with sense)  keywords in the title, and how to capture the attention of the users with few words.</p>
<p>One good solution may be this : go in google and make a search for the arguments that you&#8217;re going to write and  take a look at the first page, look the titles and the keywords used, this is a good way for inspire your title-post.</p>
<p>Of course remember to things : <span style="text-decoration: underline;">inspire doesn&#8217;t means copy-paste,</span> and when you search don&#8217;t make the mistake that a lots of users do, <span style="text-decoration: underline;">don&#8217;t think as a SEO when you&#8217;re searching, but think like a user that doens&#8217;t know nothing about SEO or html.</span></p>
<p>Other step to improve your index in search engine :<strong> the categories.</strong> Use alwways the correct categories, if is necessary add a new category, don&#8217;t worry if you have a lots of categories, the important is that everty post is in the right category, I can&#8217;t put this post in javascript is has no sense, and i can&#8217;t use other categories, the only category where this post must be is <strong>SEO</strong>.</p>
<p>If you have planned, or have ready, articles to publish in your blog, better that starting <span style="text-decoration: underline;">writing all the post in the same categories</span>, not jumping form on to another. I had my<a title="photoshop tutorials" href="http://lastwebdesigner.com/category/photoshop"><strong> photoshop tutorials </strong></a>and other articles, <a title="risorse per web designers" href="http://www-antoniofullone.it">wrote in my italian blog</a>, so I translated this in english and starting posting here, i&#8217;ve started with the <strong><a title="photoshop tutorials" href="../category/photoshop"><strong>photoshop tutorials</strong></a></strong>, how you can see.</p>
<p>I can write this article before, or the <strong><a title="jquery tutorials" href="http://lastwebdesigner.com/category/jquery">jquery</a></strong> sections, but, IMHO, is better start writing all the articles of the same <strong>categories</strong> and after pass to another category.</p>
<p>This must be considered if you have articles ready to be posted, if your are writing now your articles, there&#8217;s no problem but remeber is always a good idea give a sense and a order to your blog.</p>
<p>When you&#8217;r writing articles, try always(<strong>try no force</strong>) to link the previous articles of your blog, like I&#8217;ve done in the previous chapter, linking the <strong></strong><strong><strong><a title="photoshop tutorials" href="../category/photoshop"><strong>photoshop</strong></a></strong></strong> section and <strong><a title="jquery tutorials" href="../category/jquery">jquery</a></strong> section, make this in a naturally way, and not force this.</p>
<p>All the links must be naturally, how the SEO says : <strong>content is the king</strong>. <span style="text-decoration: underline;">Never force links or text or keywords, everything must be naturally, is the best way to Google and company likes your blog</span>. <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Optimize your wordpress blog for search engines" class='wp-smiley' title="Optimize your wordpress blog for search engines" /> </p>
<p>If you are familiar with html and <strong>wordpress theme,</strong> take a look at the theme of your blog, some templates use to put the title in a<strong> h2</strong> tag, change this to<strong> h1</strong>, this is not really important, but<strong> h1</strong> is more important than a<strong> h2</strong>. take a look to the<span style="text-decoration: underline;"> title attribute in the link of the titles post,</span> usually there&#8217;s something like this:</p>
<blockquote><p><strong>permalink to &lt;?php the_title_attribute(); ?&gt;</strong></p></blockquote>
<p>delete the <strong>&#8220;permalink to&#8221;</strong> and leave only the php code.</p>
<p>When you <span style="text-decoration: underline;">upload an images in your posts </span>, remember always to give it a <strong>description</strong>, this will be the <strong>alt of your images</strong>. this is important for usability too.</p>
<p>When you add an external link to your post, put the<strong> rel=&#8221;nofollow&#8221; </strong>to the <strong>html</strong> tag, so the<span style="text-decoration: underline;"> crawler will not follow the link, and don&#8217;t leave your blog</span>.</p>
<p>Now, is time to &#8220;extend&#8221; our blog with some great <strong>wordpress plugins for SEO. </strong></p>
<h3><strong>1. </strong><strong> <a title="all in one seo pack" href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/"> All in one seo pack.</a> </strong><strong></strong></h3>
<p><strong>king of the SEO plugin for wordpress. </strong>There&#8217;s no words for this plugin, simply download and install, it will add for every word a custom fields for title and the other meta tags, remember for SEO and positioning the tag<strong> title is</strong>, of course, the most important of the meta tags, <span style="text-decoration: underline;">be sure always to write a good title tag and put the keywords in this</span>( not like keywords tag, but explain what your  post is about and don&#8217;t use more than 60 words).</p>
<h3><a title="related posts" href="http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/"><strong>2. WordPress Related post.</strong></a></h3>
<p>This is another great plugin, because permit you to add some related post at the end of a post. How I said link the posts in your blog is a good way to make the crawler index the pages and , of course, this will be util for your users that maybe want to read more about hte same arguments of the post.</p>
<h3><a href="http://yoast.com/wordpress/breadcrumbs/"><strong>3.Yoast breadcrumb</strong></a></h3>
<p>This plugin is to create the breadcrumb in your navigation, important for the users and for the crawlers to let they know where they are.</p>
<h3><a href="http://www.soldoutactivist.com/pingpressfm"><strong>4. Pingpress</strong></a></h3>
<p>This is a great plugin. With this plugin you can ping and actualize your profile in a lots of social networks, like facebook or linkedin, automated. Simply sign in in the web site and configure the plugin, everytime you will write a post this will be automatically add in your status in the various social network that you have configured.</p>
<h3><a href="http://wordpress.org/extend/plugins/social-bookmarking-reloaded/"><strong>5. Social Bookmarking reloaded</strong></a></h3>
<p>This plugin is for add the share buttons in at the end of every post, you know how the social networks are important to drive traffic to your blog, but remember that the best way to drive traffic is write good post, not only to share in all the networks sites in the world.</p>
<h3><a href="http://wordpress.org/extend/plugins/google-sitemap-generator/"><strong>6. Google Sitemap generator</strong></a></h3>
<p>Plugin for create a google sitemap in xml format, for the google webmaster tools. THis will not improve your position in google, but make faster the index of your site.</p>
<h3><a href="http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/"><strong>7. Sitemap generator</strong></a></h3>
<p>For <strong>generate a sitemap in your blog,</strong> is not the google sitemap, but a page , like my sitemap in the menu, take a look to understand how it works, I suggest to use this plugin is very useful.</p>
<p>Well&#8230; this is all? Not, but for your blog this may be good for improve it in the search engines. Of course if you want to learn and study <a title="seo" href="http://lastwebdesigner.com/category/seo"><strong>SEO</strong></a>, <span style="text-decoration: underline;">this is only a start point and nothing more.</span></p>
<p>Anyway the most important thing that make the difference in SEO and make a website loved by Google and<strong> receive backlinks from other sites</strong>, is only one: write great cotnent and posts, this is the oly and best way to make your blog known.</p>
<p>Remember the first rule of SEO is :<strong> Content is the king! </strong>this phrase is not casually.</p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/seo/optimize-your-wordpress-blog-for-search-engines.html/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Detect the user&#8217;s browser with javascript</title>
		<link>http://lastwebdesigner.com/web-design/detect-the-user-browser-with-javascript.html</link>
		<comments>http://lastwebdesigner.com/web-design/detect-the-user-browser-with-javascript.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 10:01:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=205</guid>
		<description><![CDATA[A big and boring problem for the designers is the cross-browser compatibility, expecially with the Microsoft explorer, because, as everyone knows, Microsoft is still living in his own world and not in the w3c standard world &#8230; Anyway this is one of the most frustrating situation that we must resolve when we are working on [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Fweb-design%2Fdetect-the-user-browser-with-javascript.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Fweb-design%2Fdetect-the-user-browser-with-javascript.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=browsers,javascript&amp;b=2" height="61" width="50" title="Detect the users browser with javascript" alt=" Detect the users browser with javascript" /><br />
			</a>
		</div>
<p>A big and boring problem for the designers is the cross-browser compatibility, expecially with the <strong>Microsoft explorer</strong>, because, as everyone knows, Microsoft is still living in his own world and not in the w3c standard world &#8230; Anyway this is one of the <strong>most frustrating</strong> situation that we must resolve when we are working on a new layout.<br />
The solution used by the designer are : <a title="css hacks" rel="nofollow" href="http://www.webdevout.net/css-hacks">hacks</a>, <a rel="nofollow" href="http://web-graphics.com/mtarchive/001602.php">workaround</a> and <strong>different stylesheet for the different browse</strong>r(usually only the Microsoft browsers).<span id="more-205"></span><br />
This last is the solution that I prefer for my <strong>works</strong>. I&#8217;m not a lover of the hacks, because they usually <strong>invalidate the code</strong>, and for this reason I prefer to use a <strong>different stylesheet for the explorer.</strong> If you write a good and clean code, you don&#8217;t need to change all the styles.<br />
One of the most used solution, that I&#8217;ve used too, of course, are the <a title="condition comments html" rel="nofollow" href="http://www.quirksmode.org/css/condcom.html"><span style="text-decoration: underline;"><strong>conditional comments,</strong></span></a> to<strong> load the correct stylesheet relative to the user browser.</strong><br />
Another solution, is use a <strong>Javascript</strong> to detect the browser user and load the correct <strong>stylesheet</strong>. This is the solution that I want to talk in this post.</p>
<p>The idea is simple, and of course you can do teh same with the most afmous frameworks, but in this case I&#8217;m using only and pure Javascipt, anyway the idea is : create a variable that contains tha browser and write in the document the html code to load the stylesheet correspondent to the user browser:</p>
<blockquote><p><strong>var ievs = (/MSIE (\d+\.\d+);/.test(navigator.userAgent));</strong></p>
<p><strong>// IF BROWSER IS IE 6 LOAD IE6 STYLE</strong></p>
<p><strong>if (ievs){</strong></p>
<p><strong>var iev=new Number(RegExp.$1);</strong></p>
<p><strong>if (iev==6) {</strong></p>
<p><strong>document.write(’&lt;link rel=”stylesheet”  href=”css/ie7style.css” type=”text/css” /&gt;’);</strong></p>
<p><strong>}</strong></p>
<p><strong>}</strong></p>
<p><strong>// ID BROWSER IS IE 7 LOAD IE7 STYLE</strong></p>
<p><strong>if (ievs){</strong></p>
<p><strong>var iev=new Number(RegExp.$1);</strong></p>
<p><strong>if (iev==7) {</strong></p>
<p><strong>document.write(’&lt;link rel=”stylesheet”  href=”css/ie7style.css” type=”text/css” /&gt;’);</strong></p>
<p><strong>}<br />
}</strong></p></blockquote>
<p>That&#8217;s all! You can try this creating a new page and visit the page using a browser <strong>Microsoft</strong> , <strong>IE 6 or 7</strong>, and look how it load the style,or , only for try, you can put and alert to see how it works:</p>
<blockquote><p><strong>i</strong><strong>f (iev==6) {</strong></p>
<p><strong>alert(&#8220;you are using explorer 6&#8243;);</strong></p>
<p><strong>}</strong></p></blockquote>
<p>Of course the <strong>conditional comments</strong> are a good solution, I usually use too, but sometimes I prefer this way, but you need to consider that if the <strong>javascript is disabled from the browser this script doesn&#8217;t works. </strong>of course there are very few uers with the javascript disabled today.</p>
<p>And hope that the<strong> Explorer 8</strong> is better than the previous and Microsoft one day will understand how is important are the standard and , especially, understand that they are not a standard &#8230;..</p>
<p>Bye!</p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/web-design/detect-the-user-browser-with-javascript.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to send a mail with php ajax and jquery in facebook style</title>
		<link>http://lastwebdesigner.com/featured/how-to-send-a-mail-with-php-ajax-and-jquery-in-facebook-style.html</link>
		<comments>http://lastwebdesigner.com/featured/how-to-send-a-mail-with-php-ajax-and-jquery-in-facebook-style.html#comments</comments>
		<pubDate>Tue, 16 Jun 2009 15:17:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[PhP]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=197</guid>
		<description><![CDATA[One of the website that I love is facebook. I&#8217;m not talking about the social network, well I like this social network, but I prefer twitter and linkedin for &#8220;professional use&#8221;, but this is another question, because I&#8217;m talking about the design.:) The use of web 2.0 effects and Ajax make this web site on [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Ffeatured%2Fhow-to-send-a-mail-with-php-ajax-and-jquery-in-facebook-style.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Ffeatured%2Fhow-to-send-a-mail-with-php-ajax-and-jquery-in-facebook-style.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=ajax,javascript,Jquery,PhP,web+2.0&amp;b=2" height="61" width="50" title="How to send a mail with php ajax and jquery in facebook style" alt=" How to send a mail with php ajax and jquery in facebook style" /><br />
			</a>
		</div>
<p>One of the website that I love is <strong>facebook</strong>. I&#8217;m not talking about the <strong>social network, well I like this social network, but I prefer twitter and linkedin for &#8220;professional use&#8221;, but this is another question, because I&#8217;m talking about</strong> the design.:)</p>
<p>The use of <strong>web 2.0 effects</strong> and <strong>Ajax</strong> make this web site on of my favourites.</p>
<p>With this tutorial I will explain you<span style="text-decoration: underline;"><strong> how to create a message mail system like Facebook. <span id="more-197"></span><br />
</strong></span></p>
<p><span style="text-decoration: underline;"><strong> </strong></span>For make this we need to create some files.</p>
<h4>1. The index file with the mail form.</h4>
<h4>2.The mail.php file that process the form and send the mail, using the simple function mail() of php.</h4>
<h4>3.A css file .</h4>
<h4>4.Jquery, naturally.</h4>
<h4>5.An other Javascript, called Ajax.js, to interact with ajax, php and jquery.</h4>
<p>Surely you can put all in one file, but, for a better understanding and to have a clean code, I prefer to use different files for each one.</p>
<p>Well first of all <a title="send a mail with php jquery and ajax" href="http://lastwebdesigner.com/tests/mail-jquery-php-ajax/">you can see a demo of this page here, </a>for logical reason<span style="text-decoration: underline;"><strong> I&#8217;ve deleted my mail from the source code</strong></span>, / you can use your mail to test the script) this is the only thing that you need to change before use the source code, the rest is ready for use.</p>
<p> <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile How to send a mail with php ajax and jquery in facebook style" class='wp-smiley' title="How to send a mail with php ajax and jquery in facebook style" /> </p>
<p>OK, start with this tutorial.  First we need to create the form page and link to this page the <strong>jquery</strong> and <strong>ajax,js script, </strong>so this is the code :</p>
<blockquote><p><strong>&lt;div&gt;<br />
&lt;div id=&#8221;response&#8221;&gt;</strong></p>
<p><strong>&lt;/div&gt;<br />
&lt;form id=&#8221;formail&#8221; action=&#8221;" method =&#8221;post&#8221;&gt;<br />
&lt;label&gt;Name : &lt;/label&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;name&#8221; id=&#8221;name&#8221; /&gt;<br />
&lt;label&gt;Your mail :&lt;/label&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;mail&#8221; id=&#8221;mail&#8221; /&gt;<br />
&lt;label&gt;Subject : &lt;/label&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;subject&#8221; id=&#8221;subject&#8221; /&gt;<br />
&lt;label&gt;Text :&lt;/label&gt;<br />
&lt;textarea name=&#8221;text&#8221; id=&#8221;text&#8221; cols=&#8221;40&#8243; rows=&#8221;10&#8243;&gt;&lt;/textarea&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;send mail&#8221; id=&#8221;sendmail&#8221; name=&#8221;sendmail&#8221; /&gt;<br />
&lt;/form&gt;<br />
&lt;/div&gt;</strong></p>
<p><strong>&lt;/div&gt;</strong></p></blockquote>
<p>The <strong>div</strong> called <strong>response</strong>, will be util for the validation and the text message after send the mail( or to get the error if the mail script doesn&#8217;t work), this <strong>div</strong> is really important don&#8217;t forget this.</p>
<p>Now we need to style this, you can style the form as you want, but the only important thing is that the<span style="text-decoration: underline;"> div response must be in display none</span> :</p>
<blockquote><p><strong>#response{display:none;}</strong></p></blockquote>
<p>Is better if you style this and the form, it will look more pretty this is the complete css that I&#8217;ve used :</p>
<blockquote><p><strong>body{<br />
background: #E7E7DC;<br />
font-size: 13px;<br />
font-family: arial;<br />
}<br />
#wrap{<br />
width: 800px;<br />
background: white;<br />
margin: auto;<br />
padding: 10px;<br />
}<br />
#wrap h1{<br />
padding: 10px;<br />
border: 1px solid #ccc;<br />
background: #f8f8f8;<br />
}<br />
.mail{<br />
width:500px;<br />
margin:auto;<br />
}<br />
#formail{<br />
width: 500px;<br />
margin: auto;<br />
}<br />
#formail label{<br />
display: block;<br />
margin: 10px 0;<br />
}<br />
#text{<br />
background: #f8f8f8;<br />
}<br />
#sendmail{<br />
margin-top: 20px;<br />
display: block;<br />
}<br />
#response{<br />
display: none;<br />
border: 1px solid #ccc;<br />
background: #FFFFA0;<br />
padding: 10px;<br />
width: 450px;<br />
}</strong></p></blockquote>
<p>This is the style of the page, now it comes the nice part, the php and the ajax, this will be funny! Let&#8217;s go and create the mail.php page, with this code :</p>
<blockquote><p><strong>&lt;?php<br />
$mail = $_POST['mail'];<br />
$name = $_POST['name'];<br />
$subject = $_POST['subject'];<br />
$text = $_POST['text'];</strong></p>
<p><strong>$to = &#8220;yourmail@domain.com&#8221;;<br />
$message =&#8221; You received  a mail from &#8220;.$mail;<br />
$message .=&#8221; Text of the message : &#8220;.$text;</strong></p>
<p><strong>if(mail($to, $subject,$message)){<br />
echo &#8220;mail successful send&#8221;;<br />
}<br />
else{<br />
echo &#8220;there&#8217;s some errors to send the mail, verify your server options&#8221;;<br />
}<br />
?&gt;</strong></p></blockquote>
<p>Ok, let me explain this:</p>
<p>Firs I create the variables that will contain the froms data values :</p>
<blockquote><p><strong>$mail = $_POST['mail'];<br />
$name = $_POST['name'];<br />
$subject = $_POST['subject'];<br />
$text = $_POST['text'];</strong></p></blockquote>
<p>With the variable<strong> $to</strong>, I store the mail where I want that the mail will be sended( my mail), <span style="text-decoration: underline;">this is the only thing that you must change to make works the script.</span></p>
<p>The <strong>$message</strong> variable get  the <strong>mail</strong> and the text of the <strong>sender</strong>, and put in the body of the mail message.</p>
<p>Finally , with tha <strong>mail() </strong>function from php I send the mail. I&#8217;ve used an if because, <strong>if the mail doesn&#8217;t work you will know. </strong></p>
<p>The mail function is really simple and accept some parameters, the mail where send, the subject and the message of the mail.</p>
<p><a title="mail function php" href="http://es2.php.net/manual/en/function.mail.php">You can read all from the official page of php. </a></p>
<blockquote><p>Now is the time of the<strong> ajax.js.</strong> This is the complete code :</p>
<p><strong>$(document).ready(function(){<br />
$(&#8220;#sendmail&#8221;).click(function(){<br />
var valid = &#8221;;<br />
var isr = &#8216; is required.&#8217;;<br />
var name = $(&#8220;#name&#8221;).val();<br />
var mail = $(&#8220;#mail&#8221;).val();<br />
var subject = $(&#8220;#subject&#8221;).val();<br />
var text = $(&#8220;#text&#8221;).val();<br />
if (name.length&lt;1) {<br />
valid += &#8216;&lt;br /&gt;Name&#8217;+isr;<br />
}<br />
if (!mail.match(/^([a-z0-9._-]+@[a-z0-9._-]+\.[a-z]{2,4}$)/i)) {<br />
valid += &#8216;&lt;br /&gt;A valid Email&#8217;+isr;<br />
}<br />
if (subject.length&lt;1) {<br />
valid += &#8216;&lt;br /&gt;Subject&#8217;+isr;<br />
}<br />
if (text.length&lt;1) {<br />
valid += &#8216;&lt;br /&gt;Text&#8217;+isr;<br />
}<br />
if (valid!=&#8221;) {<br />
$(&#8220;#response&#8221;).fadeIn(&#8220;slow&#8221;);<br />
$(&#8220;#response&#8221;).html(&#8220;Error:&#8221;+valid);<br />
}<br />
else {<br />
var datastr =&#8217;name=&#8217; + name + &#8216;&amp;mail=&#8217; + mail + &#8216;&amp;subject=&#8217; + subject + &#8216;&amp;text=&#8217; + text;<br />
$(&#8220;#response&#8221;).css(&#8220;display&#8221;, &#8220;block&#8221;);<br />
$(&#8220;#response&#8221;).html(&#8220;Sending message &#8230;. &#8220;);<br />
$(&#8220;#response&#8221;).fadeIn(&#8220;slow&#8221;);<br />
setTimeout(&#8220;send(&#8216;&#8221;+datastr+&#8221;&#8216;)&#8221;,2000);<br />
}<br />
return false;<br />
});<br />
});<br />
function send(datastr){<br />
$.ajax({<br />
type: &#8220;POST&#8221;,<br />
url: &#8220;mail.php&#8221;,<br />
data: datastr,<br />
cache: false,<br />
success: function(html){<br />
$(&#8220;#response&#8221;).fadeIn(&#8220;slow&#8221;);<br />
$(&#8220;#response&#8221;).html(html);<br />
setTimeout(&#8216;$(&#8220;#response&#8221;).fadeOut(&#8220;slow&#8221;)&#8217;,2000);<br />
}<br />
});<br />
}</strong></p></blockquote>
<p>What i&#8217;ve done? let me explain :</p>
<p>I suppose that you know the<strong> $(document).ready function of jquery,</strong> I&#8217;ve explained in the previous tutorial, <a title="animated menu jquery" href="http://lastwebdesigner.com/jquery/simple-animated-menu-with-jquery.html">create an animated menu with jquery</a>.</p>
<p>When <strong>#sendmail,</strong> the submit button of the form,  is clicked will start <span style="text-decoration: underline;">the validation of the form,</span> this is important try always to validate your forms, expecially for the <strong>breakballs(usually called spammer&#8230;)</strong>, so the first part of the script validate the form and if on of the input value is under 0 this will stop the script and return an error like in this image</p>
<p><a href="http://lastwebdesigner.com/wp-content/uploads/2009/06/validation.jpg"><img class="alignnone size-full wp-image-198" title="validation" src="http://lastwebdesigner.com/wp-content/uploads/2009/06/validation.jpg" alt="validation How to send a mail with php ajax and jquery in facebook style" width="518" height="191" /></a></p>
<p>the text that appears is stored in the<strong> #response div</strong>, for this reason I said that is important and not only for this. <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile How to send a mail with php ajax and jquery in facebook style" class='wp-smiley' title="How to send a mail with php ajax and jquery in facebook style" /> </p>
<blockquote><p><strong>var valid = &#8221;;<br />
var isr = &#8216; is required.&#8217;;<br />
var name = $(&#8220;#name&#8221;).val();<br />
var mail = $(&#8220;#mail&#8221;).val();<br />
var subject = $(&#8220;#subject&#8221;).val();<br />
var text = $(&#8220;#text&#8221;).val();<br />
if (name.length&lt;1) {<br />
valid += &#8216;&lt;br /&gt;Name&#8217;+isr;<br />
}<br />
if (!mail.match(/^([a-z0-9._-]+@[a-z0-9._-]+\.[a-z]{2,4}$)/i)) {<br />
valid += &#8216;&lt;br /&gt;A valid Email&#8217;+isr;<br />
}<br />
if (subject.length&lt;1) {<br />
valid += &#8216;&lt;br /&gt;Subject&#8217;+isr;<br />
}<br />
if (text.length&lt;1) {<br />
valid += &#8216;&lt;br /&gt;Text&#8217;+isr;<br />
}<br />
</strong></p></blockquote>
<p>To validate the mail, I&#8217;ve used a <strong>regular expression</strong>( <a title="Juan carlos Barreiro" href="http://enterprisedreams.net/">thanks to Juan Carlos</a> <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile How to send a mail with php ajax and jquery in facebook style" class='wp-smiley' title="How to send a mail with php ajax and jquery in facebook style" />  )</p>
<blockquote><p><strong>if (!mail.match(/^([a-z0-9._-]+@[a-z0-9._-]+\.[a-z]{2,4}$)/i))</strong></p></blockquote>
<p>if you try to write <strong>2 mail addres</strong>, this will not works, or if you use white space in the mail field the validation will stop the script. You can try simply leaving white the various fields to understand how it works. All of the error in the validation will appears in the <strong>response div</strong>, that will appear with a<strong> fadeIn effect.</strong></p>
<blockquote><p><strong>if (valid!=&#8221;) {<br />
$(&#8220;#response&#8221;).fadeIn(&#8220;slow&#8221;);<br />
$(&#8220;#response&#8221;).html(&#8220;Error:&#8221;+valid);<br />
}</strong></p></blockquote>
<p>The second part of the script is for create the <span style="text-decoration: underline;"><strong>datastr</strong></span> variable, that will store the value from the form and send in the <strong><span style="text-decoration: underline;">ajax request</span></strong>, and make appear again the <strong>#response div</strong>, yes how I said is important ejejeje, like the <strong>facebook</strong> style, that say that the message is sending.</p>
<blockquote><p><strong>else {<br />
var datastr =&#8217;name=&#8217; + name + &#8216;&amp;mail=&#8217; + mail + &#8216;&amp;subject=&#8217; + subject + &#8216;&amp;text=&#8217; + text;<br />
$(&#8220;#response&#8221;).css(&#8220;display&#8221;, &#8220;block&#8221;);<br />
$(&#8220;#response&#8221;).html(&#8220;Sending message &#8230;. &#8220;);<br />
$(&#8220;#response&#8221;).fadeIn(&#8220;slow&#8221;);<br />
setTimeout(&#8220;send(&#8216;&#8221;+datastr+&#8221;&#8216;)&#8221;,2000);<br />
}</strong></p></blockquote>
<p>In the final  part I&#8217;ve used a <strong>&#8220;return false</strong>&#8220;, so when you click on the submit button this doesn&#8217;t do nothing, well it seems that the button doesn&#8217;t do nothing, but the reason ts that the rest of the work is done by ajax and the function send :</p>
<blockquote><p><strong>function send(datastr){<br />
$.ajax({<br />
type: &#8220;POST&#8221;,<br />
url: &#8220;mail.php&#8221;,<br />
data: datastr,<br />
cache: false,<br />
success: function(html){<br />
$(&#8220;#response&#8221;).fadeIn(&#8220;slow&#8221;);<br />
$(&#8220;#response&#8221;).html(html);<br />
setTimeout(&#8216;$(&#8220;#response&#8221;).fadeOut(&#8220;slow&#8221;)&#8217;,4000);<br />
}<br />
});<br />
}</strong></p></blockquote>
<p>This is the &#8220;<strong>core</strong>&#8221; of the script, this will call th<a title="ajax" href="http://docs.jquery.com/Ajax" target="_blank">e</a><strong><a title="ajax" href="http://docs.jquery.com/Ajax" target="_blank"> $.ajax function of Jquery</a>,</strong> give it the parameters and call the <strong>mail.php</strong> file, finally get the response of the <strong>mail.php</strong>, and return this in the response div, and after<strong> 4 seconds the text fade out</strong>. <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile How to send a mail with php ajax and jquery in facebook style" class='wp-smiley' title="How to send a mail with php ajax and jquery in facebook style" /> </p>
<p>This script is inspired ,how I said, from <strong>facebook message system</strong> and it works at the same way, you can use on your own and change or modify the source code.</p>
<p><a class="demo" title="send a mail with php ajax and jquery" href="http://lastwebdesigner.com/tests/mail-jquery-php-ajax/"><strong>Demo of the script</strong></a></p>
<p><a class="download" title="download the full script" href="http://www.box.net/shared/kklgtosti5"><strong>Download directly the script.</strong></a><br />
I hope is useful , you can use the comments and let me know what do you thing.</p>
<p>If you know something to improve the script, let me know pls.</p>
<p>Bye !!</p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/featured/how-to-send-a-mail-with-php-ajax-and-jquery-in-facebook-style.html/feed</wfw:commentRss>
		<slash:comments>84</slash:comments>
		</item>
		<item>
		<title>Php Beginner guide : The comments</title>
		<link>http://lastwebdesigner.com/web-design/php-beginner-guide-the-comments.html</link>
		<comments>http://lastwebdesigner.com/web-design/php-beginner-guide-the-comments.html#comments</comments>
		<pubDate>Sat, 13 Jun 2009 14:18:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[comments php]]></category>
		<category><![CDATA[guide php]]></category>
		<category><![CDATA[PhP]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=192</guid>
		<description><![CDATA[The comments in php are a really important phase of the programming, because they will help you, or other programmer, when you&#8217;ll come back to write on the same code after a long time. An important thing to know is  that their use does not weigh the execution of the script (the PHP interpreter jumps [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Fweb-design%2Fphp-beginner-guide-the-comments.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Fweb-design%2Fphp-beginner-guide-the-comments.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=comments+php,guide+php,PhP&amp;b=2" height="61" width="50" title="Php Beginner guide : The comments" alt=" Php Beginner guide : The comments" /><br />
			</a>
		</div>
<p>The <strong>comments in php</strong> are a really important phase of the programming, because they will help you, or other programmer, when you&#8217;ll come back to write on the same code after a long time.</p>
<p>An important thing to know is  that their use does not weigh the execution of the scrip<strong>t (the PHP interpreter </strong>jumps all parties recognizing that comment), or the transfer of the page to the browser (in fact the comments, as contained within the <a title="simple php guide for beginners" href="http://lastwebdesigner.com/category/php/beginner-guide"><strong>PHP</strong></a> code, are part of what is not sent to the browser).<span id="more-192"></span></p>
<p>In php we have the same comments use in the major programming languages, like c++ or python, here some examples :</p>
<blockquote><p><strong>&lt;?php </strong></p>
<p><strong>// comment style c++</strong></p>
<p><strong>?&gt;</strong></p></blockquote>
<blockquote><p><strong>&lt;?php</strong></p>
<p><strong># comment style python</strong></p>
<p><strong>?&gt;</strong></p></blockquote>
<p>This kind of <strong>comments</strong> are only on one line, when the <a title="guide php" href="http://lastwebdesigner.com/category/php/beginner-guide">PHP</a> interpreter found this comments jump this part and go directly to the source php code.</p>
<p>But we can also use comments on more than one lines, like this :</p>
<blockquote><p>&lt;?php</p>
<p>/* this is a comment</p>
<p>on multilines</p>
<p>*/</p>
<p>?&gt;</p></blockquote>
<p>Be sure that don&#8217;t make error when you write a comment, or this will affect your code.</p>
<blockquote><p><strong>&lt;?php </strong></p>
<p><strong>*/ this is a erroneus comment</strong></p>
<p><strong>*/</strong></p>
<p><strong>?&gt;</strong></p></blockquote>
<blockquote><p><strong>&lt;?php </strong></p>
<p><strong>/* this is the correct </strong></p>
<p><strong>way to comment on mutlilines</strong></p>
<p><strong>*/</strong></p>
<p><strong>?&gt;</strong></p></blockquote>
<p>Simply not? The next time i will start writing code for php, stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/web-design/php-beginner-guide-the-comments.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Simple animated menu with jquery</title>
		<link>http://lastwebdesigner.com/tutorials/simple-animated-menu-with-jquery.html</link>
		<comments>http://lastwebdesigner.com/tutorials/simple-animated-menu-with-jquery.html#comments</comments>
		<pubDate>Wed, 10 Jun 2009 13:50:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=173</guid>
		<description><![CDATA[Jquery is, of course, one the best( or the best) JavaScript framework actually. With jquery we can create amazing effects on the web pages, writing some few lines of codes, and you don&#8217;t need to be an experienced web programmer. In this post I will show you how to create a nice and simple vertical [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Ftutorials%2Fsimple-animated-menu-with-jquery.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Ftutorials%2Fsimple-animated-menu-with-jquery.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=CSS,downloads,Jquery,menu,tutorial&amp;b=2" height="61" width="50" title="Simple animated menu with jquery" alt=" Simple animated menu with jquery" /><br />
			</a>
		</div>
<p><a title="jquery" href="http://docs.jquery.com/Downloading_jQuery"><strong>Jquery</strong></a> is, of course, one the best( or the best) JavaScript framework actually.</p>
<p>With <strong>jquery</strong> we can create amazing effects on the web pages, <span style="text-decoration: underline;">writing some few lines of codes, and you don&#8217;t need to be an experienced web programmer.<br />
</span></p>
<p>In this post I will show you how to create a nice and <strong>simple vertical menu with css and jquery</strong>, writing few lines of  code. <span id="more-173"></span></p>
<p>You can see the final result at <a title="animated menu with jquery" href="http://lastwebdesigner.freewebhostx.com/simple-jquery-menu/">this page</a>, and you can download the complete source code with example from here.<br />
First, <a title="jquery" href="http://docs.jquery.com/Downloading_jQuery">download <strong>jquery</strong> from the <strong>official site</strong>,</a> and after link it to your document. I&#8217;ve chooses to put the source code, for the css style and the javascript-jquery, in another file, you can put all in one if you want, IMHO I think is always better to separate it, it&#8217;s your choose.<br />
Create the page and links the javascript file it&#8217;s really easy, how I suppose you know :</p>
<blockquote><p><strong>&lt;link href=&#8221;style.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221;/&gt;<br />
&lt;script src=&#8221;js/jquery.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;js/menu.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</strong></p></blockquote>
<p>After I&#8217;ve created a simple page structure, with the menu,like the &#8220;semantic&#8221; want,  is  in a  list, in this case unordered :</p>
<blockquote><p><strong>&lt;div id=&#8221;navigation&#8221;&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Freebies&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Tutorials&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Downloads&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Contact&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</strong></p></blockquote>
<h3>Now  style the menu :</h3>
<blockquote><p><strong>#navigation{<br />
width: 200px;<br />
}<br />
#navigation ul{<br />
list-style: none;<br />
}<br />
#navigation ul li{<br />
height: 30px;<br />
border-bottom: 1px dotted #ccc;<br />
}<br />
#navigation ul li a{<br />
text-indent: 20px;<br />
padding: 5px 0;<br />
display: block;<br />
height: 20px;<br />
text-decoration: none;<br />
color: #434343;<br />
background-image: url(bull.png);<br />
background-repeat: no-repeat;<br />
background-position: 5px 6px ;<br />
}<br />
#navigation ul li a:hover{<br />
background-color: #8E8963;<br />
background-image: url(bull.png);<br />
background-repeat: no-repeat;<br />
background-position: 15px 6px ;<br />
color: white;<br />
}</strong></p></blockquote>
<p>What I&#8217;ve done here? Simply :</p>
<p>give to a menu a fixed with, styling the<strong> li </strong>and the <strong>link </strong> , give to a link a <span style="text-decoration: underline;">background image</span> <strong>(background-image: url(bull.png)</strong>; ) and when the mouse is over  (<span style="text-decoration: underline;"><strong>a:hover</strong></span>) , change the background color (not the image) and the <strong>link color.</strong></p>
<p>Another thing to note is that I&#8217;ve used the <strong>backround-position property </strong>for the image, so with this I can move the image around  changing the values of the position (X and Y axis) and make this appear aligned with the text.</p>
<p>With <strong>Jquery</strong> I will &#8220;<strong>move</strong>&#8221; and <span style="text-decoration: underline;">animate</span> the<span style="text-decoration: underline;"> link on the right</span> when the <strong>mouse is over,</strong> so I need to move the image too, and for the reason that I&#8217;ve used the image like background and no like image in the html code, I need to move that when the link will animated, maybe using directly the image in the code the effect will come better, you can try at your own.</p>
<p>Ok now we can go to our <strong>javascript</strong> and write the <strong>jquery</strong>-code . Create a new js file and call &#8220;<strong>menu.js&#8221;</strong>, write this simple code :</p>
<blockquote><p><strong>$(document).ready(function(){<br />
var Duration = 150; //time in milliseconds</strong></p>
<p><strong>$(&#8216;#navigation ul li a&#8217;).hover(function() {<br />
$(this).animate({ paddingLeft: &#8217;20px&#8217; }, Duration);<br />
}, function() {<br />
$(this).animate({ paddingLeft: &#8217;0px&#8217; }, Duration);<br />
});</strong></p>
<p><strong>});</strong></p></blockquote>
<p>OK  let me explain this code:</p>
<p>The first thing is to tell to <strong>jquery</strong> that, when the <strong>DOM</strong> <span style="text-decoration: underline;">is loaded</span> ( this is rally important)  :</p>
<blockquote><p><strong>$(document).ready(function(){<br />
});</strong></p></blockquote>
<p>This is the first thing that you <span style="text-decoration: underline;">must learn</span> about <strong>Jquery</strong>, with this piece of code, you will tell to <strong>Jquery</strong> this :  &#8220;do the instruction only when the entire document is loaded&#8221;.</p>
<p>This is great and really usefull because  you don&#8217;t have to put any &#8220;behavioral&#8221; markup in the HTML, and this is the reason why you can separate every <strong>Javascript</strong> from the document.</p>
<p>After I&#8217;ve created the function that must be executed when the DOM is ready :</p>
<blockquote><p><strong>var Duration = 150; //time in milliseconds</strong></p>
<p><strong>$(&#8216;#navigation ul li a&#8217;).hover(function() {<br />
$(this).animate({ paddingLeft: &#8217;20px&#8217; }, Duration);<br />
}, function() {<br />
$(this).animate({ paddingLeft: &#8217;0px&#8217; }, Duration);<br />
});</strong></p></blockquote>
<p>And it&#8217;s all! What it means this? I will try to explain in a simple words :</p>
<p>With the <strong>$()</strong>, you can get every element of the <strong>DOM</strong>, an it is like the <strong>documentGetElement</strong> in the normal javascript.</p>
<p>So I Want that ,when the mouse is over the tag li inside the navigation div, start the animation effect, so I&#8217;ll &#8220;take&#8221; this element with the dollar function</p>
<blockquote><p><strong>$(&#8216;#navigation ul li a&#8217;)</strong></p></blockquote>
<p><span style="text-decoration: underline;">This is the second important thing you must learn on Jquery. <img src='http://lastwebdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Simple animated menu with jquery" class='wp-smiley' title="Simple animated menu with jquery" /> </span></p>
<p>And finally, I&#8217;ve used the animation on the menu, using the <strong>animate function </strong>of <strong>jquery</strong>, really simple to use, in this case I gave<span style="text-decoration: underline;"><strong> 20px at padding-left css property</strong></span> to make that the text &#8220;move&#8221; on the right side .</p>
<blockquote><p><strong>$(this).animate({ paddingLeft: &#8217;20px&#8217; }, Duration);</strong></p></blockquote>
<p>The<strong> $(this)</strong> refer to the element that we are using, animate is the <strong>jquery</strong> function (following the link you can learn more about this function) and <strong>Duration</strong> is the duration of the time, I&#8217;ve used a starting variable to give a value <strong>(var Duration = 150; ).</strong></p>
<p>The rest of the code is another function to  ensure that the link returns at the original position.</p>
<blockquote><p><strong>,function() {<br />
$(this).animate({ paddingLeft: &#8217;0px&#8217; }, Duration);<br />
});</strong></p></blockquote>
<p>Conclusion : <strong>Jquery</strong> is the best<span style="text-decoration: underline;"> framework that I&#8217;ve ever used</span>, is simple, easy to learn and make the web designer&#8217;s life really easy, although you are not a experienced programmer.</p>
<p>Here the link relativies to <strong>jquery</strong> and maybe utils for this simple tutorial :</p>
<p><a title="jquery" href="http://docs.jquery.com/Downloading_jQuery"><strong>Download Jquery</strong></a></p>
<p><a title="learn jquery" href="http://www.learningjquery.com/"><strong>Learn Jquery</strong></a></p>
<p><strong><a title="animate function" href="http://docs.jquery.com/Effects/animate#paramsdurationeasingcallback">The animate function of jquery</a><br />
</strong></p>
<h4>Well you can see the final results here :</h4>
<blockquote><p><a title="simple jquery menu" href="http://lastwebdesigner.freewebhostx.com/simple-jquery-menu/"><strong>Simple menu with Jquery.</strong></a></p></blockquote>
<p><a class="download" title="jquery simple menu" href="http://lastwebdesigner.com/downloads/jquery-simple-menu.zip">Download jquery simple menu with example :</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/tutorials/simple-animated-menu-with-jquery.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>php beginner guide: introduction to php</title>
		<link>http://lastwebdesigner.com/web-design/php-beginner-guide-introduction-to-php.html</link>
		<comments>http://lastwebdesigner.com/web-design/php-beginner-guide-introduction-to-php.html#comments</comments>
		<pubDate>Mon, 08 Jun 2009 10:09:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PhP]]></category>
		<category><![CDATA[php guide]]></category>

		<guid isPermaLink="false">http://lastwebdesigner.com/?p=166</guid>
		<description><![CDATA[Well.. Here we are with this first chapter of a simple guide to php for beginner. Before start I think is good if you know something about the history of this script languages. Php was &#8220;born&#8221; in 1994 from Rasmus Lerdor, was composed of a set of macro whose task was to simplify the websites [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flastwebdesigner.com%2Fweb-design%2Fphp-beginner-guide-introduction-to-php.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flastwebdesigner.com%2Fweb-design%2Fphp-beginner-guide-introduction-to-php.html&amp;style=normal&amp;service=bit.ly&amp;hashtags=PhP,php+guide&amp;b=2" height="61" width="50" title="php beginner guide: introduction to php" alt=" php beginner guide: introduction to php" /><br />
			</a>
		</div>
<p>Well.. Here we are with this<strong> first chapter </strong>of a<strong> simple guide to php for beginner. </strong>Before start I think is good if you know something about the history of this script languages.<br />
Php was &#8220;born&#8221; in <strong>1994</strong> from <strong>Rasmus Lerdor</strong>, was composed of a set of macro whose task was to simplify th<strong>e websites management.</strong></p>
<p>The first step was the expansion of the macro with a packet called<strong> form interpreter</strong>. From here Php was in continue expansion and now is a one of the most used langues in the websites with a  bigger community  and over 10.000.000 of server that support php now. The reason of this big expansion are lots. <strong>Php</strong> is compatible with any reliable <strong><a title="php web hosting" href="http://www.webhostgear.com/php-hosting.php">php web hosting</a> </strong>, is open source, is free, is simple and works perfectly with <strong>Apache</strong>, the most used web server in the world.<span id="more-166"></span></p>
<p>The important thing that you must remember about <strong>php</strong>, is that this language is <span style="text-decoration: underline;">server side.</span></p>
<p>What it means that php is a  server side languages?</p>
<p>It means that the language is <span style="text-decoration: underline;">interpreted from the server,</span> namely the server, through an <strong>interpreter</strong>, received the php code from the page and returns the <span style="text-decoration: underline;">html code.</span> indeed if you look at the source <span style="text-decoration: underline;"><strong>code of a php page you will never see php code,</strong></span> but only the html that the server interpreter returns.</p>
<p>This is the difference between <strong>php</strong> and <strong>javascript</strong>, for example, that is a<strong> client side language</strong>, so it depend on the browser user and not from the server.</p>
<p><strong>Php</strong> is perfect to work with database like <strong>mysql</strong>, to create<strong> e-commerce sites, administration systems</strong> and other more, one of a great example is <strong>WordPress</strong>, the CMS blogging platform that runs this website.</p>
<p>How to recognize php code? Here an example:</p>
<blockquote><p><strong>&lt;?php echo &#8220;Hello World!&#8221;; ?&gt;</strong></p></blockquote>
<p>This is an example, if you will try this code the page will results this :</p>
<blockquote><p><strong>Hello World!.</strong></p></blockquote>
<p>A php tag start always with the &#8220;<strong>&lt;?php</strong>&#8221; and end with &#8220;<strong>?&gt;</strong>&#8221; you can omit the <strong>&#8220;php&#8221;</strong> in the start tag.</p>
<p>Other important thing of the <strong>php syntax</strong> is the &#8220;<strong>;</strong>&#8221; at the end, this means the end of the instruction(never forget, is important!) , this was inherited from the most used languages, like <strong>c, java</strong> and similar.</p>
<p>Finally the most simple instruction in php, the &#8220;<strong>echo</strong>&#8221; that say to the server this : <span style="text-decoration: underline;"><strong>write what is wrote between the &#8221; &#8220;.</strong></span></p>
<p>How I said if you will look at the source code you don&#8217;t see the php code, but only the html that the server returns.<br />
Well for the moment I think is good, now you know what is php, how it works and how to start writing code, I think is a good begin.</p>
<p>This is onl<strong>y the first chapter of this php guide for beginner</strong>, so &#8230; stay tuned for the other chapters.</p>
<p>Hasta Luego!</p>
]]></content:encoded>
			<wfw:commentRss>http://lastwebdesigner.com/web-design/php-beginner-guide-introduction-to-php.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

