<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7629929636332256455</id><updated>2024-09-24T19:00:42.362-07:00</updated><category term="facebook"/><category term="jquery"/><category term="html5"/><category term="media queries"/><category term="phplist"/><category term="useful"/><category term="ckeditor"/><category term="email marketing"/><category term="syntaxhighlighter"/><category term="wamp"/><category term="wordpress"/><category term="Fireworks"/><category term="Fireworks favicon"/><category term="PHPUnit"/><category term="Pear"/><category term="Steve Jobs"/><category term="css"/><category term="cufon"/><category term="delicious"/><category term="gmail"/><category term="google"/><category term="html newsletter"/><category term="javascript"/><category term="jsbeautifier"/><category term="moodle"/><category term="osCommerce"/><category term="responsive web design"/><category term="virtuemart"/><category term="welcome"/><title type='text'>Web Development - php, mysql, ajax, jquery, SEO</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>53</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-4087082493458853803</id><published>2012-10-31T09:14:00.001-07:00</published><updated>2012-10-31T09:14:34.185-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pear"/><category scheme="http://www.blogger.com/atom/ns#" term="PHPUnit"/><title type='text'>Unit Testing - Installing PHPUnit</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The primary goal of &lt;b&gt;unit testing&lt;/b&gt; is to take the smallest piece of 
testable software in the application, isolate it from the remainder of 
the code, and determine whether it behaves exactly as you expect. Each 
unit is tested separately before integrating them into modules to test 
the interfaces between modules. Unit testing has proven its value in 
that a large percentage of defects are identified during its use.&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;PHPUnit &lt;/b&gt;is a unit testing software framework for PHP, as you may guess.&lt;br /&gt;
&lt;br /&gt;
At first I thought installation was something straight forward, but it was not. I had to install &lt;b&gt;PEAR &lt;/b&gt;first, and problems appeared from the beginning.I don&#39;t want to discourage you, instead I am telling you this just to encourage you not to give up.&lt;br /&gt;
&lt;br /&gt;
During the installation process, I was wondering, what I was doing wrong, so I kept googling and here I will present you the steps needed to install &lt;b&gt;PEAR &lt;/b&gt;and &lt;b&gt;PHPUnit &lt;/b&gt;error free on WAMP, according to the problems I have faced and the research I have done.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1) Install PEAR&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1st step&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;First open &lt;b&gt;php.ini&lt;/b&gt; file located at C:\wamp\bin\php\php5.3.0\php.ini&amp;nbsp;
&lt;/li&gt;
&lt;li&gt; Find the following line 

&lt;b&gt;;phar.require_hash = On&lt;/b&gt;
&lt;/li&gt;
&lt;li&gt;Uncomment by removing the semi-colon&lt;/li&gt;
&lt;li&gt;Change &#39;On&#39; to &#39;Off&#39;&lt;/li&gt;
&lt;li&gt;Save the file&lt;/li&gt;
&lt;/ul&gt;
&lt;pre style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: left;&quot;&gt;&lt;b&gt;2nd step&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Locate your php folder by writing cd C:\wamp\bin\php\php5.3.0
&lt;i&gt;*** For those who don&#39;t know this, by typing cd .. in a command line,&amp;nbsp;&lt;/i&gt;
&lt;i&gt;you are being moved one level up in the folder structure&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;On command prompt type go-pear.bat
&lt;/li&gt;
&lt;li&gt;Confirm &quot;system&quot; and hit enter a few times

&lt;/li&gt;
&lt;li&gt;double click PEAR_ENV.reg found at your php folder
&lt;/li&gt;
&lt;li&gt;edit php.ini again to add pear include path.&amp;nbsp;
Search for go-pear and you will see&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp; ;***** Added by go-pear 
include_path=&quot;.;C:\wamp\bin\php\php5.3.0\pear&quot; 

;***** 
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Copy these lines and paste them to &quot;&lt;b&gt;php.ini&lt;/b&gt;&quot; file located at
C:\wamp\bin\apache\apache2.2.11\bin&amp;nbsp;
&lt;/li&gt;
&lt;li&gt; Restart the apache &lt;/li&gt;
&lt;li&gt;Type &lt;b&gt;pear upgrade pear&lt;/b&gt; and you have &lt;b&gt;PEAR &lt;/b&gt;installed on you machine
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;3rd step&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We are almost done here with PEAR installation&lt;b&gt;. &lt;/b&gt;In order to use ‘pear’ command in your command prompt from anywhere, you will need to modify the windows environment variables.&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Right click on &quot;&lt;b&gt;My computer&lt;/b&gt;&quot; choose &lt;b&gt;Properties -&amp;gt; Advanced&lt;/b&gt; &amp;gt; &lt;b&gt;Environmental variables &lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Edit &quot;&lt;b&gt;Path&lt;/b&gt;&quot; variable and add&amp;nbsp; &lt;b&gt;C:\wamp\bin\php\php5.3.0&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ***&lt;/b&gt;Be careful here&lt;b&gt;, &lt;/b&gt;by mistake I have left a space character at the end, and coudn&#39;t find out for half an hour, what was I was doing wrong&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;You also need to add a new variable ‘&lt;b&gt;PHP_PEAR_PHP_BIN&lt;/b&gt;’ and set the value to &lt;pre&gt;C:\wamp\bin\php\php5.3.0\php.exe&amp;nbsp; &lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Close the command prompt, open it again and type pear&lt;/li&gt;
&lt;li&gt;You will see pear command help printed for you&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2) Upgrade PEAR&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In order to continue to the PHPUnit installation, you first have to upgrade &lt;b&gt;PEAR &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Just type pear upgrade pear&amp;nbsp; &lt;/li&gt;
&lt;li&gt;Type pear -V, to see the version installed&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3) Install PHPUnit&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Now we can continue with the PHPUnit installation&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;On ‘C’ drive create a folder named ‘php5’ (I don&#39;t know why and I don&#39;t know if this is necessasy, but I did it anyway&lt;/li&gt;
&lt;li&gt;On command prompt type following, but first be sure that you have upgraded PEAR&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;pear channel-discover components.ez.no
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear install --alldeps phpunit/PHPUnit&lt;/pre&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;pre&gt;We’re done! type &lt;i&gt;&lt;b&gt;phpunit –version&lt;/b&gt;&lt;/i&gt; to confirm installation.&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;b&gt;4) Solutions to problems you may face&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt; 
&lt;br /&gt;
If you face a problem here, you can type &amp;nbsp;
&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;pre&gt;&lt;b&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;pear update&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;channels &lt;/span&gt;&lt;/code&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;b&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
You can also clear cache by typing&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;i&gt;pear clear-cache&lt;/i&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
If you want to unistall PEAR and do the above steps again type&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;pre class=&quot;lang-php prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;pear uninstall pear&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
If you want to unistall PHPUnit type&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;pre class=&quot;lang-php prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;pear uninstall phpunit&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;PHPUnit&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-php prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;typ&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
If you have a problem like this&lt;br /&gt;
&lt;br /&gt;
Duplicate package channel://components.ez.no/ConsoleTools-1.5.1 found&lt;br /&gt;
Duplicate package channel://components.ez.no/ConsoleTools-1.5.2 found&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
or a duplicate package to another channel like&lt;br /&gt;
&lt;pre&gt;Duplicate channel://pear.phpunit.de/Whatever1.1&lt;/pre&gt;
&lt;pre&gt;Duplicate channel://pear.phpunit.de/Whatever1.2 &lt;/pre&gt;
&lt;br /&gt;
you can type&lt;br /&gt;
&lt;br /&gt;
pear uninstall pear.phpunit.de/Whatever1.2&lt;br /&gt;
pear install pear.phpunit.de/Whatever1.1 &lt;br /&gt;
&lt;br /&gt;
That last thing is what made the trick for me! I don&#39;t remember exactly which version I have installed and which I have uninstalled for the duplicate packages, but the point is that I read error message and figured out what I have to install or uninstall manually!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Useful links&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;
&lt;br /&gt;
&lt;a href=&quot;http://docs.moodle.org/dev/PHPUnit_installation_in_Windows&quot;&gt;http://docs.moodle.org/dev/PHPUnit_installation_in_Windows&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://amiworks.co.in/talk/installing-pear-and-phpunit-on-wamp-and-windows-7/&quot; target=&quot;_blank&quot;&gt;http://amiworks.co.in/talk/installing-pear-and-phpunit-on-wamp-and-windows-7/&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.karakas-online.de/forum/viewtopic.php?t=10459&quot; target=&quot;_blank&quot;&gt;http://www.karakas-online.de/forum/viewtopic.php?t=10459&lt;/a&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;a href=&quot;http://stackoverflow.com/questions/2006626/installing-phpunit-via-pear&quot;&gt;http://stackoverflow.com/questions/2006626/installing-phpunit-via-pear&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;b&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;a href=&quot;http://share.ez.no/forums/install-configuration/noob-having-trouble-installing-pear-and-ezcomponents&quot;&gt;&lt;code&gt;&lt;span class=&quot;typ&quot;&gt;http://share.ez.no/forums/install-configuration/noob-having-trouble-installing-pear-and-ezcomponents&lt;/span&gt;&lt;/code&gt;&lt;/a&gt; &lt;/span&gt;&lt;/code&gt;&lt;/b&gt;&lt;/pre&gt;
&amp;nbsp; &lt;br /&gt;
&lt;pre class=&quot;programlisting&quot;&gt;&lt;code&gt;&lt;span class=&quot;default&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/4087082493458853803/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/10/unit-testing-installing-phpunit.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/4087082493458853803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/4087082493458853803'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/10/unit-testing-installing-phpunit.html' title='Unit Testing - Installing PHPUnit'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-7478603538984604174</id><published>2012-10-23T03:03:00.001-07:00</published><updated>2012-10-23T03:03:38.658-07:00</updated><title type='text'>Fatal error: Call to undefined function pg_connect()</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Problem is that when you´re using a PHP version above 5.2.5 in 
windows, you just can´t load the pgsql extension.&lt;br /&gt;
&lt;br /&gt;
You have to install php 
5.2.5 or an older version, or just install a newer one and overwrite 
php_pgsql.dll with the one from PHP 5.2.5.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/7478603538984604174/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/10/fatal-error-call-to-undefined-function.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7478603538984604174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7478603538984604174'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/10/fatal-error-call-to-undefined-function.html' title='Fatal error: Call to undefined function pg_connect()'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-9195140177250765733</id><published>2012-10-07T08:39:00.000-07:00</published><updated>2012-10-07T08:39:13.486-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wordpress"/><title type='text'>Localhost redirects to online wordpress site and vice versa - Multisite</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you have installed multisite for wordpress and your localhost installation redirects you to your online version, then you have to check following tables using phpMyadmin:&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;wp_options&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;siteurl&lt;/li&gt;
&lt;li&gt;home&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;wp_2_options&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;siteurl&lt;/li&gt;
&lt;li&gt;home&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;wp_site -&amp;gt; change domain to localhost and path to your path &lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/9195140177250765733/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/10/localhost-redirects-to-online-wordpress.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/9195140177250765733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/9195140177250765733'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/10/localhost-redirects-to-online-wordpress.html' title='Localhost redirects to online wordpress site and vice versa - Multisite'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-3873171565690565912</id><published>2012-09-04T07:33:00.000-07:00</published><updated>2012-09-04T07:48:08.675-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Animate to a specific div using jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I am really impressed about sites tha have a fixed menu and when user clicks on it, whole page animates to a specific div.&lt;br /&gt;
&lt;br /&gt;
Have a look at this wonderful site, to see what I mean (click onto the image)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.lagallinachefuma.it/&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPyE1KUMe9ECUcDIofIaaQ7-U3fqXnzeYxgXEYucUhb_2CaIbAv95JCykirYCYnOry8SVrJy-ESfG6a1lN4aYSEv34GiqOqm8Ka-Mv34YQcviZqtV1aKidwzAp9r2ZVQODamDSyImjg7k/s400/Untitled-1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Really impressive, ha! Are you still here? Well for those you came back to learn this technique, it&#39;s time to realize how simple it is.&lt;br /&gt;
&lt;br /&gt;
We just use jquery&#39;s &lt;u&gt;&lt;b&gt;animate &lt;/b&gt;&lt;/u&gt;method, and all magic happens to the site. Really cool! But to be more specific, you can read the following function:&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
function Animate2id(id2Animate){
//---------------------------------
 var animSpeed=1500; //animation speed
 var easeType=&quot;easeInOutExpo&quot;; //easing type
 if($.browser.webkit){ //webkit browsers do not support animate-html
  $(&quot;body&quot;).stop().animate({scrollTop: $(id2Animate).offset().top}, animSpeed, easeType);
 } else {
  $(&quot;html&quot;).stop().animate({scrollTop: $(id2Animate).offset().top}, animSpeed, easeType);
 }
}
&lt;/script&gt;

Let me just explain it a little bit.&lt;br /&gt;
&lt;br /&gt;
This function takes the id of the targeting div as parameter&amp;nbsp; (we will explain how we call it later).&lt;br /&gt;
&lt;br /&gt;
First of all we define the animation speed and the easing type. So, you have to dowload &lt;a href=&quot;http://gsgd.co.uk/sandbox/jquery/easing/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;Jquey Easing Plugin&lt;/a&gt; first.&lt;br /&gt;
&lt;br /&gt;
After defining the variables, we just check if it&#39;s a webkit browser (Google Chrome), because webkit browsers do not support animate-html.&lt;br /&gt;
&lt;br /&gt;
We then call the animate method (be careful!! before calling animate(), we call stop() ), and that&#39;s all.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The HTML &lt;/b&gt;&lt;br /&gt;
Just put an anchor tag on your page and on click, call the Animate2id(&#39;#news&#39;) function, which animates to a div with id=news.
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;a href=&quot;#&quot; onclick=&quot;Animate2id(&#39;#news&#39;);return false&quot;&gt;news&lt;/a&gt;
&lt;/script&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/3873171565690565912/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/09/animate-to-div-with-jquery.html#comment-form' title='1 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/3873171565690565912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/3873171565690565912'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/09/animate-to-div-with-jquery.html' title='Animate to a specific div using jquery'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPyE1KUMe9ECUcDIofIaaQ7-U3fqXnzeYxgXEYucUhb_2CaIbAv95JCykirYCYnOry8SVrJy-ESfG6a1lN4aYSEv34GiqOqm8Ka-Mv34YQcviZqtV1aKidwzAp9r2ZVQODamDSyImjg7k/s72-c/Untitled-1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-5796761896150393642</id><published>2012-08-30T16:26:00.001-07:00</published><updated>2012-08-30T16:48:13.185-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>How to center a div inside a div</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
If you want to center a div inside another width and the content of the inner div is dynamic (so you don&#39;t know the exact width), you can do something like this:
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
#outer {
  width: 100%;
  text-align: center;
}

#inner {
  display: inline-block;
}

&lt;/script&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/5796761896150393642/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/how-to-center-div-inside-div.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/5796761896150393642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/5796761896150393642'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/how-to-center-div-inside-div.html' title='How to center a div inside a div'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-7338310430371620131</id><published>2012-08-29T06:26:00.001-07:00</published><updated>2012-08-29T06:51:21.576-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><title type='text'>Put an image on the Canvas</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To draw an image on a canvas, we use the drawImage(&lt;i&gt;image,x,y&lt;/i&gt;) method&lt;br/&gt;&lt;br/&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
var c=document.getElementById(&quot;myCanvas&quot;);
var ctx=c.getContext(&quot;2d&quot;);
var img=new Image();
img.onload = function(){
ctx.drawImage(img,0,0);
};
img.src=&quot;myimage.png&quot;;
&lt;/script&gt;

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/7338310430371620131/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/put-image-on-canvas.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7338310430371620131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7338310430371620131'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/put-image-on-canvas.html' title='Put an image on the Canvas'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-400833387247738133</id><published>2012-08-29T05:42:00.003-07:00</published><updated>2012-08-29T06:09:33.198-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><title type='text'>HTML5 Canvas for beginners</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The canvas element is used to draw graphics, on the fly, on a web page. It is only a container for graphics. We must use a script 
to actually draw the graphics.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;***Internet Explorer 8 and earlier versions do not support the canvas element. &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: #b32c20;&quot;&gt;How can we create the canvas element&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
In order to create a canvas element, use the following markup:
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;canvas id=&quot;myfirstCanvas&quot; width=&quot;200&quot; height=&quot;100&quot;&gt;&lt;/canvas&gt; 

&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
As you can see above, I used an id attribute in order to referrence it later using javascript.If you want to style your canvas you can use the style attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;canvas id=&quot;myfirstCanvas&quot; width=&quot;200&quot; height=&quot;100&quot; style=&quot;border:1px solid black&gt;&lt;/canvas&gt; 

&lt;/script&gt;

&lt;b style=&quot;color: #b32c20;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;color: #b32c20;&quot;&gt;How can we draw onto the canvas using javascript&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As I mentioned earlier, after we create the canvas, we use javascript in order to draw something onto it. For example if we want to draw a red rectangle we use following markup, inside a script javascript tag.&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;

var c=document.getElementById(&quot;myfirstCanvas&quot;);
var ctx=c.getContext(&quot;2d&quot;);
ctx.fillStyle=&quot;#FF0000&quot;;
ctx.fillRect(0,0,150,75);


&lt;/script&gt;

&lt;br /&gt;
I will briefly explain the code. 

First we find the canvas element with the id attribute, and then we call its getContext() method, passing the string &quot;2d&quot; as an arguement.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;***The getContext(&quot;2d&quot;) object is a built-in HTML5 object, with many properties and methods for drawing paths, boxes, circles, text, images, and more.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
At last we set the red color and draw the rectangle. &lt;i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBiLQgFIVIngFVPYtkfv5pNpVi5ojRdnX_QSmgU98JL3ACru8QHE0AAPIb_IV9Iqtvn42eY3UmgxUdUq-x_wG6T1BbGKM4-cva8e1jfUqGwKg1v2v1hbSg3BHzMUTY6DY5JDd4_BQFEo8/s1600/Untitled-1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBiLQgFIVIngFVPYtkfv5pNpVi5ojRdnX_QSmgU98JL3ACru8QHE0AAPIb_IV9Iqtvn42eY3UmgxUdUq-x_wG6T1BbGKM4-cva8e1jfUqGwKg1v2v1hbSg3BHzMUTY6DY5JDd4_BQFEo8/s320/Untitled-1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b style=&quot;color: #b32c20;&quot;&gt;Read more examples&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;*** For more examples visit &lt;a href=&quot;http://www.w3schools.com/html5/html5_canvas.asp&quot; style=&quot;color: #b32c20;&quot;&gt;http://www.w3schools.com/html5/html5_canvas.asp&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/400833387247738133/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/html5-canvas.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/400833387247738133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/400833387247738133'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/html5-canvas.html' title='HTML5 Canvas for beginners'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBiLQgFIVIngFVPYtkfv5pNpVi5ojRdnX_QSmgU98JL3ACru8QHE0AAPIb_IV9Iqtvn42eY3UmgxUdUq-x_wG6T1BbGKM4-cva8e1jfUqGwKg1v2v1hbSg3BHzMUTY6DY5JDd4_BQFEo8/s72-c/Untitled-1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-1446194958613333888</id><published>2012-08-29T05:03:00.000-07:00</published><updated>2012-08-29T05:43:24.186-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><title type='text'>HTML5 new features</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
My first question, when started learning &lt;b&gt;HTML5&lt;/b&gt;, was &quot;What are the new features of this new version of HTML&quot;? What new things can I do with &lt;b&gt;HTML5&lt;/b&gt;, or how easier can I do some things I used to, while using HTML?&lt;br /&gt;
&lt;br /&gt;
So, in this quick post, we will see the new interresting features in &lt;b&gt;HTML5&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;b&gt;canvas &lt;/b&gt; element for 2D drawing &lt;/li&gt;
&lt;li&gt;New content-specific elements, like &lt;b&gt;article&lt;/b&gt;, &lt;b&gt;section&lt;/b&gt;, &lt;b&gt;header&lt;/b&gt;, &lt;b&gt;footer&lt;/b&gt; &lt;/li&gt;
&lt;li&gt;The &lt;b&gt;video &lt;/b&gt;and &lt;b&gt;audio &lt;/b&gt;elements for media playback&lt;/li&gt;
&lt;li&gt;Support for local storage&lt;/li&gt;
&lt;li&gt;New form controls, like calendar, date, time, email, url, search&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
In the following posts, I will explain each feature seperately in more detail.&amp;nbsp; &lt;br /&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/1446194958613333888/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/html5-new-features.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/1446194958613333888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/1446194958613333888'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/html5-new-features.html' title='HTML5 new features'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-7231972771818259321</id><published>2012-08-23T08:10:00.000-07:00</published><updated>2012-08-23T08:17:46.904-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Print a div with javascript which opens in a new window using Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Today I had to put a print button into a web application, which when clicked, should open a new window and print the contents of a certain div.&lt;br /&gt;
&lt;br /&gt;
I found this very useful link &lt;a href=&quot;http://sarwarhossain.com/2010/10/05/print-a-div-open-new-window-print-and-close-using-javascirpt/&quot;&gt;http://sarwarhossain.com/2010/10/05/print-a-div-open-new-window-print-and-close-using-javascirpt/&lt;/a&gt;. I used the code and everything worked great in Firefox, but I noticed that it doesn’t work well with Chrome, launches straight to blank Print screen and doesn’t load content in new window first. Same in Safary (I didn&#39;t try IE, I was sure that it wouldn&#39;t work as well).&lt;br /&gt;
&lt;br /&gt;
Here is the code I found from the above link and right after I will post 2 solutions for this problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Javascript Function
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;

function printContent(div_id)
{
var DocumentContainer = document.getElementById(div_id);
var html = &#39;&lt;html&gt;&lt;head&gt;&#39;+
               &#39;&lt;link href=&quot;css/template.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;&#39;+
               &#39;&lt;/head&gt;&lt;body style=&quot;background:#ffffff;&quot;&gt;&#39;+
               DocumentContainer.innerHTML+
               &#39;&lt;/body&gt;&lt;/html&gt;&#39;;

    var WindowObject = window.open(&quot;&quot;, &quot;PrintWindow&quot;,
    &quot;width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes&quot;);
    WindowObject.document.writeln(html);
    WindowObject.document.close();
    WindowObject.focus();
    WindowObject.print();
    WindowObject.close();
    document.getElementById(&#39;print_link&#39;).style.display=&#39;block&#39;;
}

&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
HTML
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;div id=&#39;ad_div&#39;&gt;
 &lt;!-- we want to print only this div and here is the link --&gt; &lt;a href=&#39;javascript:printContent(&quot;ad_div&quot;)&#39; id=&#39;print_link&#39;&gt;&lt;?php __(&#39;Print&#39;);?&gt;&lt;/a&gt; &lt;/div&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1st solution&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The first thing I thought was to remove following lines&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
//WindowObject.print();&lt;br /&gt;
//WindowObject.close();&lt;br /&gt; &lt;/script&gt;in order to let Chrome and Safari open the new window with print button in the contents, but this relies on user to manually push print. I found this thought in the comments area too.&lt;br /&gt;
&lt;br /&gt;
Everything worked great, but I wanted to open the new window and after that automatically invoke the print dialog window. So I did the following.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2nd solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I just put onLoad=”self.print()” inside body element and everything worked like a charm:-)

See the new code of the printContent function below.

&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;

function printContent(div_id)
{
var DocumentContainer = document.getElementById(div_id);
var html = &#39;&lt;html&gt;&lt;head&gt;&#39;+
               &#39;&lt;link href=&quot;css/template.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;&#39;+
               &#39;&lt;/head&gt;&lt;body onLoad=&quot;self.print()&quot; style=&quot;background:#ffffff;&quot;&gt;&#39;+
               DocumentContainer.innerHTML+
               &#39;&lt;/body&gt;&lt;/html&gt;&#39;;

    var WindowObject = window.open(&quot;&quot;, &quot;PrintWindow&quot;,
    &quot;width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes&quot;);
    WindowObject.document.writeln(html);
    WindowObject.document.close();
    WindowObject.focus();
    WindowObject.print();
    WindowObject.close();
    document.getElementById(&#39;print_link&#39;).style.display=&#39;block&#39;;
}

&lt;/script&gt;

Hope it helps!
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/7231972771818259321/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/print-div-with-javascript-which-opens.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7231972771818259321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7231972771818259321'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/08/print-div-with-javascript-which-opens.html' title='Print a div with javascript which opens in a new window using Javascript'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-5946702143814914552</id><published>2012-05-26T05:27:00.000-07:00</published><updated>2012-05-26T05:27:47.184-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jsbeautifier"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To make your javascript code beautiful, just use &lt;a href=&quot;http://jsbeautifier.org/&quot; target=&quot;_blank&quot;&gt;jsbeautifier&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Paste your compressed, unreadable code into the text-editor, and simply push &quot;Beautify Javascript or Html&quot; on the top.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/5946702143814914552/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/05/to-make-your-javascript-code-beautiful.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/5946702143814914552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/5946702143814914552'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/05/to-make-your-javascript-code-beautiful.html' title=''/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-8701831938028642008</id><published>2012-02-17T15:24:00.004-08:00</published><updated>2012-02-17T15:48:08.827-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Jquery  split &amp; join example</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Here I will show you how you can use jquery in order to wrap every 2nd word of a paragraph in a span.&lt;br /&gt;
&lt;br /&gt;
So, if you have for example the following paragraph into your html:&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;p&gt;

This is a test paragraph.&lt;/p&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
and your stylesheet is:&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
span{color:red}
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
by putting this:&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
var words = $(&#39;h3&#39;).text().split(&#39; &#39;);
var numWords = words.length;
for (i=0; i&lt;numWords; i++) {
    if (i%2 == 0) {
        words[i] = &#39;&lt;span&gt;&#39; + words[i] + &#39;&lt;/span&gt;&#39;;
    }
}
$(&#39;h3&#39;).html(words.join(&#39; &#39;));
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
your final result will be:&lt;br /&gt;
&lt;br /&gt;
This &lt;span style=&quot;color: red;&quot;&gt;is&lt;/span&gt; a &lt;span style=&quot;color: red;&quot;&gt;test&lt;/span&gt; paragraph.&lt;br /&gt;
&lt;br /&gt;
First you use split method, to split your sentence into single words. Then you store into a variable called numWords the size of the array. In a for loop, you check if your number is even and if that&#39;s the case, you wrap the specific element in a span. After this iteration, you use join, in order to show whole sentence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/8701831938028642008/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/jquery-split-join-example.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/8701831938028642008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/8701831938028642008'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/jquery-split-join-example.html' title='Jquery  split &amp; join example'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-6701893176225175019</id><published>2012-02-08T00:59:00.000-08:00</published><updated>2012-02-08T01:03:16.230-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fireworks favicon"/><title type='text'>Fireworks Favicon</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
If you are using Adobe Fireworks CS4 and want to create a favicon for your site, just follow the steps below.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCpagdPC_rjmXl5yuiw7wRY83BjDu9SCxIW5iy68A51bIXHTIJC_eEbsgUKd0AXo_B39d_1tUtB_RML7K4ofVIhgWlkql5wSuYiBy4M46zNADYbVQ-L5rHVHtLe2Ojno3TkmVsVhBL2RY/s1600/fav.gif&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCpagdPC_rjmXl5yuiw7wRY83BjDu9SCxIW5iy68A51bIXHTIJC_eEbsgUKd0AXo_B39d_1tUtB_RML7K4ofVIhgWlkql5wSuYiBy4M46zNADYbVQ-L5rHVHtLe2Ojno3TkmVsVhBL2RY/s1600/fav.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt; Go to &lt;a href=&quot;http://johndunning.com/fireworks/about/ExportAsFavicon&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;http://johndunning.com/fireworks/about/ExportAsFavicon&lt;/a&gt; and download the favicon extension&lt;/li&gt;
&lt;li&gt;Open Fireworks -&amp;gt; click Help -&amp;gt; Manage Extensions&lt;/li&gt;
&lt;li&gt;Choose Fireworks from the left side and then the install button on top&lt;/li&gt;
&lt;li&gt;Locate the extension you downloaded before and you are ready.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;b&gt;How can we use it &lt;/b&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Go to Commands -&amp;gt; Favicon -&amp;gt; New Favicon - 16x16 to create your favicon&lt;/li&gt;
&lt;li&gt;Choose Commands-&amp;gt;Favicon -&amp;gt; Export as Favicon to export it&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/6701893176225175019/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/fireworks-favicon.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/6701893176225175019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/6701893176225175019'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/fireworks-favicon.html' title='Fireworks Favicon'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCpagdPC_rjmXl5yuiw7wRY83BjDu9SCxIW5iy68A51bIXHTIJC_eEbsgUKd0AXo_B39d_1tUtB_RML7K4ofVIhgWlkql5wSuYiBy4M46zNADYbVQ-L5rHVHtLe2Ojno3TkmVsVhBL2RY/s72-c/fav.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-6085455316226249820</id><published>2012-02-07T16:33:00.000-08:00</published><updated>2012-02-07T16:44:00.255-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="responsive web design"/><title type='text'>Responsive Web design</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Take a look at the following link and watch a very good video (25 minutes) about Responsive Web Design!&lt;br /&gt;
&lt;a href=&quot;http://css-tricks.com/video-screencasts/102-braindump-on-responsive-web-design/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;http://css-tricks.com/video-screencasts/102-braindump-on-responsive-web-design/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKnaDym3lYARZp0DRTl5VROM9kHMUwhZQ-8g-vGsfU6hia8Wtl_qhyphenhyphen4e3fpDPA23UI1jt7u5jPMShXh_SUqXiUU9BEOR_dkSawQcMWN9THWWxMGatu84rGUGQkUDLVFiSxB8_ayNHkPZA/s1600/jsfiddle.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKnaDym3lYARZp0DRTl5VROM9kHMUwhZQ-8g-vGsfU6hia8Wtl_qhyphenhyphen4e3fpDPA23UI1jt7u5jPMShXh_SUqXiUU9BEOR_dkSawQcMWN9THWWxMGatu84rGUGQkUDLVFiSxB8_ayNHkPZA/s400/jsfiddle.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://jsfiddle.net/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;jsfiddle.net&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In the above picture you can see jsfiddle.net, an online editor for the web, which allows you to see how your code runs in action. Really very helpful! &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/6085455316226249820/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/responsive-web-design.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/6085455316226249820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/6085455316226249820'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/responsive-web-design.html' title='Responsive Web design'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKnaDym3lYARZp0DRTl5VROM9kHMUwhZQ-8g-vGsfU6hia8Wtl_qhyphenhyphen4e3fpDPA23UI1jt7u5jPMShXh_SUqXiUU9BEOR_dkSawQcMWN9THWWxMGatu84rGUGQkUDLVFiSxB8_ayNHkPZA/s72-c/jsfiddle.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-8137768451544850801</id><published>2012-02-07T14:30:00.000-08:00</published><updated>2012-02-07T15:11:28.113-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Jquery fadeToggle</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;In this example, I will show you how we can use jquery fadeToggle function to achieve the behaviour described below!&lt;br /&gt;
&lt;br /&gt;
What we have here, is some menu blocks, which show a lager block with more details, when we click on them. You can see a &lt;a href=&quot;http://www.colibri.net.gr/pages/neuro/index1.php&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;demo here&lt;/a&gt;. Only first block works, as it is under construction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwJU8OjJkQsSt2nZHR_5ICDwTYzMSuKoIEx74fllG-xTAMJ78WWg-Y5uOq6yIScp0LDh2ZioZM9q2_53udgLY-rbpILLT_TNm0pPW5JjuORBJglTd5-I5TfaXRlMuZ4a7e-OnvaGpa6Zc/s1600/image.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;135&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwJU8OjJkQsSt2nZHR_5ICDwTYzMSuKoIEx74fllG-xTAMJ78WWg-Y5uOq6yIScp0LDh2ZioZM9q2_53udgLY-rbpILLT_TNm0pPW5JjuORBJglTd5-I5TfaXRlMuZ4a7e-OnvaGpa6Zc/s400/image.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;i&gt;Before we click the first menu block&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSQTvEO9_H_J2wytqNNfenQKn7Mx-sIKe0O6mVwNPjbMuyzEjEyUyWaY3DWAS6vFNU-MqQmc2P562EURr1j5rr0wIU6jZMFyxFFYGMPupy98a6guLYLTENCDJx_CWqNGv69lyNaxOGeU4/s1600/imagehover.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSQTvEO9_H_J2wytqNNfenQKn7Mx-sIKe0O6mVwNPjbMuyzEjEyUyWaY3DWAS6vFNU-MqQmc2P562EURr1j5rr0wIU6jZMFyxFFYGMPupy98a6guLYLTENCDJx_CWqNGv69lyNaxOGeU4/s400/imagehover.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After&lt;i&gt; we click the first menu block&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Html markup&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As you can see below, we have a div with class &quot;box&quot;, and inside this div we have 2 main elements:&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;an anchor tag, with a background-image as you can see in the css style later&lt;/li&gt;
&lt;li&gt;div with class &quot;box_details&quot; , which has an absolute position. &lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
 &lt;div id=&quot;box1&quot; class=&quot;box&quot;&gt;
    &lt;a class=&quot;bb1 bb&quot; href=&quot;whoweare.html&quot;&gt;&lt;/a&gt;
    &lt;div class=&quot;box_details&quot; style=&quot;background-color:#9AD0C2&quot;&gt;

       &lt;div class=&quot;box_details_left&quot;&gt;
           &lt;img src=&quot;images/design/details.jpg&quot;/&gt;
       &lt;/div&gt;       &lt;!--end box_details_left--&gt;

       &lt;div class=&quot;box_details_right&quot;&gt;
         &lt;h2&gt;Who we are&lt;/h2&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s.
         &lt;div class=&quot;close&quot;&gt;X&lt;/div&gt;     &lt;/div&gt;     &lt;!--end box_details_right--&gt;
      &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;  &lt;/div&gt;  &lt;!--end box_details--&gt;

 &lt;/div&gt;&lt;!--end box1--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Css styles&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Below you can see the css styles for our example. Just to say, that box_details has an absolute position. (accordingly, div with id &quot;box1&quot;, has relative position) and display:none, which will change to block, when div with class box is clicked.&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
.box{ margin-right:7px; cursor:pointer; }
.box_details{position:absolute; top:0px; left:0px; display:none; width:950px; height:307px; border:0px solid black; z-index:2200; background-color:#000; font-size:14px}
.box_details_left{float:left; width:411px}
.box_details_right{float:left; width:509px; text-align:left; padding:15px; position:relative}
.box_details_right h2{ font-size:20px; color:&quot;#000&quot;; margin-bottom:8px}

#box1{ background-color:#99D0C2; width:232px; height:150px; color:#FFF; text-align:center; float:left; margin-bottom:7px; position:relative }
.bb1{background-image:url(../images/whoweare.jpg); background-repeat:no-repeat; background-position:left top;  width:232px; height:150px; display:block;  text-indent:-900%; margin-bottom:0px; padding-bottom:0px; padding-right:10px;}
a.bb:hover{background-position:left bottom;}
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Javascript&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Finally, we use javascript and fadeToggle function. I think it&#39;s pretty easy and self-explanatory. Wheneverer we click the box div, we &lt;b&gt;&lt;u&gt;find&lt;/u&gt;&lt;/b&gt; next box_details div, and make it fade in. When we click on the appeared div, it fades out. This is achieved with the use of fadeToggle.&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
$(document).ready(function() {
$(&#39;.box&#39;).click(function(){
   
   $(this).find(&#39;.box_details&#39;).fadeToggle(&quot;slow&quot;);
   return false;
  });
});
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/8137768451544850801/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/jquery-fadetoggle.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/8137768451544850801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/8137768451544850801'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/jquery-fadetoggle.html' title='Jquery fadeToggle'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwJU8OjJkQsSt2nZHR_5ICDwTYzMSuKoIEx74fllG-xTAMJ78WWg-Y5uOq6yIScp0LDh2ZioZM9q2_53udgLY-rbpILLT_TNm0pPW5JjuORBJglTd5-I5TfaXRlMuZ4a7e-OnvaGpa6Zc/s72-c/image.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-3046634733745175800</id><published>2012-02-07T05:27:00.000-08:00</published><updated>2012-02-07T05:33:49.292-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="media queries"/><title type='text'>Media Queries and Internet Explorer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Media queries, which are part of the CSS3 draft spec, don’t work in  Internet Explorer 6, 7 or 8. Hardly surprising, but certainly annoying.  So, we need a JavaScript solution.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://code.google.com/p/css3-mediaqueries-js/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;Css3-mediaqueries.js&lt;/a&gt; is a JavaScript library , which makes CSS3 Media Queries work in all browsers. I dowloaded the plugin, but I had no success.&lt;br /&gt;
&lt;br /&gt;
Fortunately I found the following article, &lt;a href=&quot;http://richardshepherd.com/css-media-queries-jquery/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;http://richardshepherd.com/css-media-queries-jquery/&lt;/a&gt; and downloaded the plugin from there!&lt;br /&gt;
&lt;br /&gt;
Now everything works great, even using Internet Explorer! I will post an example of implementing media queries, when I have some free time:-) &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/3046634733745175800/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/media-queries-and-internet-explorer.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/3046634733745175800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/3046634733745175800'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/media-queries-and-internet-explorer.html' title='Media Queries and Internet Explorer'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-5763336760437695255</id><published>2012-02-07T04:10:00.000-08:00</published><updated>2012-02-07T04:10:47.979-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="media queries"/><category scheme="http://www.blogger.com/atom/ns#" term="useful"/><title type='text'>PhotoFluid - fluid layouts and adaptive CSS using Media Queries</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;ProtoFluid simplifies the development of fluid layouts and adaptive CSS using Media Queries. It works within your website, HTML5 app or game in the form of a single JavaScript include. ( &lt;a href=&quot;http://protofluid.com/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;http://protofluid.com/&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
All you have to do, is include jquery and photofluid in your head, BEFORE any other javascript.&lt;br /&gt;
&lt;pre class=&quot;brush: js&quot;&gt;&lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;protoFluid3.02.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt; 
&lt;/pre&gt;&lt;br /&gt;
ProtoFluid does not automatically launch. Type #protoFluid after your web address and refresh the page!&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/5763336760437695255/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/photofluid-fluid-layouts-and-adaptive.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/5763336760437695255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/5763336760437695255'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/photofluid-fluid-layouts-and-adaptive.html' title='PhotoFluid - fluid layouts and adaptive CSS using Media Queries'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-2355705993565671575</id><published>2012-02-07T01:11:00.000-08:00</published><updated>2012-02-07T05:52:02.619-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="media queries"/><title type='text'>Site Inspiration using Media Queries</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://foodsense.is/&quot;&gt;http://foodsense.is/&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKrABqW8d4OTs-h-rc-x6IaCdNCSR8Rg2wwjXqoEHfizP-X4q9mpKooX6ziyOCJAXR8MtMwC1JkS3asv0mNCAmmZDpyh_IkYDwbpg_-020MrTaJGA9E0QuuKiyyizRqB0UKQEcT_USJ2E/s1600/foodsense.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKrABqW8d4OTs-h-rc-x6IaCdNCSR8Rg2wwjXqoEHfizP-X4q9mpKooX6ziyOCJAXR8MtMwC1JkS3asv0mNCAmmZDpyh_IkYDwbpg_-020MrTaJGA9E0QuuKiyyizRqB0UKQEcT_USJ2E/s400/foodsense.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;a href=&quot;http://foodsense.js/&quot;&gt;http://foodsense.js&lt;/a&gt; in a smaller device &lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhugjspcnVePFiAy2F6cKzz3BNUYc8F5-XcMwvE7-czSzqHHa7zDq2SdTz2BkeZwFd7KlAwgpwS-CQ1KcM9NJb5wnsje1Qv7NfF4DPSjuovUhn_TJtKME1OWn8EWX_jYFGnqbn0WooWR4Q/s1600/foodsense2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;323&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhugjspcnVePFiAy2F6cKzz3BNUYc8F5-XcMwvE7-czSzqHHa7zDq2SdTz2BkeZwFd7KlAwgpwS-CQ1KcM9NJb5wnsje1Qv7NfF4DPSjuovUhn_TJtKME1OWn8EWX_jYFGnqbn0WooWR4Q/s400/foodsense2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://www.bostonglobe.com/&quot;&gt;http://www.bostonglobe.com/&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEQj5UMSwm97FALBcbnocBBeW5Klxhimo62MmoMDmr8xgPts61HSuLJ9sQrFqYFnyoi43nnT8w1bdpSGlHHcYn0IIBTunGWiRE-E9LWSHqkBHkN5TZHyk41E-eNWO8ztSuAOHLzdwbzWw/s1600/bostonglobe.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;305&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEQj5UMSwm97FALBcbnocBBeW5Klxhimo62MmoMDmr8xgPts61HSuLJ9sQrFqYFnyoi43nnT8w1bdpSGlHHcYn0IIBTunGWiRE-E9LWSHqkBHkN5TZHyk41E-eNWO8ztSuAOHLzdwbzWw/s400/bostonglobe.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;u&gt;&lt;b&gt;&amp;nbsp;&lt;a href=&quot;http://www.bostonglobe.com/&quot;&gt;http://www.bostonglobe.com&lt;/a&gt; in a smaller device&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS2Av_3CRlAEqX9y54oAWAmb8pV1Af4V11Y4jBq9n1_8wCh4jbxTeTdH7lSfvVcpVl-OjkZqlD0vOHPg9LEed_oSD6H4dG3gN6-D0M0OGn_qc33ql-oZ8XCYF7uW2Djr5KrrAc2Nd1BOw/s1600/bostonglobe2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS2Av_3CRlAEqX9y54oAWAmb8pV1Af4V11Y4jBq9n1_8wCh4jbxTeTdH7lSfvVcpVl-OjkZqlD0vOHPg9LEed_oSD6H4dG3gN6-D0M0OGn_qc33ql-oZ8XCYF7uW2Djr5KrrAc2Nd1BOw/s400/bostonglobe2.jpg&quot; width=&quot;375&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://hicksdesign.co.uk/journal/finally-a-fluid-hicksdesign&quot;&gt;http://hicksdesign.co.uk/journal/finally-a-fluid-hicksdesign&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeSwqj1sFz7hQZEmprUB1xY0Rd-qyaKiKmKOJi9BsoM_CLGAt9gE7iTFhKgILuOfXTT5Bk30yQgM9xKdTfK4l9B_qL3LZi-jaxn3UwcowhnpOlrmG8Pq1IHfA3V5Cy3g4ZTmBdtq9BiTE/s1600/httphicksdesign.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeSwqj1sFz7hQZEmprUB1xY0Rd-qyaKiKmKOJi9BsoM_CLGAt9gE7iTFhKgILuOfXTT5Bk30yQgM9xKdTfK4l9B_qL3LZi-jaxn3UwcowhnpOlrmG8Pq1IHfA3V5Cy3g4ZTmBdtq9BiTE/s400/httphicksdesign.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;a href=&quot;http://hicksdesign.co.uk/journal/finally-a-fluid-hicksdesign&quot;&gt;http://hicksdesign.co.uk/journal/finally-a-fluid-hicksdesign&lt;/a&gt; in a smaller devive&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5uxmh0LBPPAxxaoNorStC6gLR9KEwkN4ydA5dy4N1sfp_OrxGVIRmMZ-eeW2Md2zpyzN3qmd9K8zgFKHU5vAlP5ag1YZkV3cdoKWTrPf9lONN8pSGAqZPlKxWsNbc1i3Y_kTQbsV6UjY/s1600/httphicksdesign2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5uxmh0LBPPAxxaoNorStC6gLR9KEwkN4ydA5dy4N1sfp_OrxGVIRmMZ-eeW2Md2zpyzN3qmd9K8zgFKHU5vAlP5ag1YZkV3cdoKWTrPf9lONN8pSGAqZPlKxWsNbc1i3Y_kTQbsV6UjY/s400/httphicksdesign2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
You can also checkout &lt;a href=&quot;http://mediaqueri.es/popular/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;http://mediaqueri.es/popular/&lt;/a&gt;. The site contains a curated collection of responsive web designs!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLFyhba62CrtiUHu32Bdd8KTYF72L7AgOuFtCGKheDhCyZfMNzZSoOtpO-JwddafImj5mVMF1ohSlG9_JE7zkaOdBfR-6X_V70AafUoHnhtNjvumkNBS-U4nfXCsADQCssghT1U42sxro/s1600/sparkbox.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLFyhba62CrtiUHu32Bdd8KTYF72L7AgOuFtCGKheDhCyZfMNzZSoOtpO-JwddafImj5mVMF1ohSlG9_JE7zkaOdBfR-6X_V70AafUoHnhtNjvumkNBS-U4nfXCsADQCssghT1U42sxro/s400/sparkbox.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
So, have a look and get inspired!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/2355705993565671575/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/site-inspiration-using-media-queries.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/2355705993565671575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/2355705993565671575'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/site-inspiration-using-media-queries.html' title='Site Inspiration using Media Queries'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKrABqW8d4OTs-h-rc-x6IaCdNCSR8Rg2wwjXqoEHfizP-X4q9mpKooX6ziyOCJAXR8MtMwC1JkS3asv0mNCAmmZDpyh_IkYDwbpg_-020MrTaJGA9E0QuuKiyyizRqB0UKQEcT_USJ2E/s72-c/foodsense.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-2262965523065436550</id><published>2012-02-06T01:40:00.000-08:00</published><updated>2012-02-06T01:51:05.680-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Browser detection using Jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;The &lt;code&gt;$.browser&lt;/code&gt; property provides information about the web  browser that is accessing the page, as reported by the browser itself.  It contains flags for each of the four most prevalent browser classes  (Internet Explorer, Mozilla, Webkit, and Opera) as well as version  information. (&lt;a href=&quot;http://api.jquery.com/jQuery.browser/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;http://api.jquery.com/jQuery.browser/&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
Available flags are:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;webkit (as of jQuery 1.4)&lt;/li&gt;
&lt;li&gt;safari (deprecated)&lt;/li&gt;
&lt;li&gt;opera&lt;/li&gt;
&lt;li&gt;msie&lt;/li&gt;
&lt;li&gt;mozilla&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Well, in my case, when I tested my code to all browsers, there was no problem, except from Internet Explorer:-(&lt;br /&gt;
&lt;br /&gt;
I had a div (class=box_details) with height 306px, which should be higher in IE. So, I wrote the following code and the problem was solved:-)&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
$(document).ready(function() {
if ( $.browser.msie ) {
 $(&#39;.box_details&#39;).css(&#39;height&#39;, 330);
  
 }
});
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/2262965523065436550/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/browser-detection-using-jquery.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/2262965523065436550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/2262965523065436550'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/browser-detection-using-jquery.html' title='Browser detection using Jquery'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-5249415020506464307</id><published>2012-02-02T17:18:00.000-08:00</published><updated>2012-02-07T00:10:08.527-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Click &amp; Hover Effect with Jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Suppose you have a menu at your site, and you don&#39;t want to reload the whole page to see the content of a certain div. Instead, you want to load it using jquery and ajax!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYwyp7Kx37MCSgqikfL0pLf7sEBfzgba0_zcW7U1F56szkFsZ0JW5w9mzWa8XXnUv2yvp0v3P6nv8Jo-Ge5LoeO-6lR_aTke2SIk-hoIh21qI6jdDbbh3jsx1vWQXAKFb16dcrD19ohFc/s1600/menu.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYwyp7Kx37MCSgqikfL0pLf7sEBfzgba0_zcW7U1F56szkFsZ0JW5w9mzWa8XXnUv2yvp0v3P6nv8Jo-Ge5LoeO-6lR_aTke2SIk-hoIh21qI6jdDbbh3jsx1vWQXAKFb16dcrD19ohFc/s1600/menu.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
What I will show you here is, how we can achieve the hover effect, without affecting the clicked element. Don&#39;t you understand what I mean?&lt;br /&gt;
&lt;br /&gt;
Go to &lt;a href=&quot;http://www.snap2design.com/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;http://www.snap2design.com&lt;/a&gt;, and have a look at the menu. When you mouseover a menu item, you see that its background-color becomes black and when you mouseout, it becomes grey again, except of course from the clicked menu, which remains black!&lt;br /&gt;
&lt;br /&gt;
How can we achieve this? The answer is by using Jquery! A fast and concise &lt;a href=&quot;http://jquery.com/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;JavaScript Library&lt;/a&gt; that simplifies HTML  document traversing, event handling, animating, and Ajax interactions  for rapid web development. Here we will use &lt;a href=&quot;http://api.jquery.com/hover/&quot; style=&quot;color: #b32c20;&quot; target=&quot;_blank&quot;&gt;the click and hover function&lt;/a&gt; of this wonderful library.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Click Function&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
$(document).ready(function() {

$(&quot;.navigation_item h3&quot;).click(function () {

$(&quot;.navigation_item&quot;).each(function() {
$(this).find(&quot;h3 a&quot;).removeClass(&#39;selected&#39;);
$(this).find(&quot;h3 a&quot;).css(&quot;background-color&quot;, &quot;#424242&quot;);

});


$(this).find(&quot;h3 a&quot;).addClass(&quot;selected&quot;);
});

});
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
Seems all this strange to you? Well, let me explain you a little bit what I am doing here.&lt;br /&gt;
&lt;br /&gt;
Firstly, when we click the h3 element of a navigation_item,&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;we remove &quot;selected&quot; class and&amp;nbsp;&lt;/li&gt;
&lt;li&gt;change background color of each item to #424242 &lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&amp;nbsp;***Just to say that selected class is defined in a seperate css file &lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
.selected{ background-color:#000000}
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
Finally we add &quot;selected&quot; class to the clicked item.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
***I want to clarify that I refer to the situation of a menu which loads content via AJAX, and not by reloading whole page. The link with the example&amp;nbsp; I gave you above, has a menu with submenus. I explain the case of the first level menu. The same technique is used for the second level as well. You can see the html markup below:&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;div class=&quot;navigation_item&quot;&gt;

&lt;h3&gt;

&lt;a class=&quot;selected&quot; href=&quot;#&quot;&gt;ABOUT&lt;/a&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class=&quot;navigation_item&quot;&gt;

&lt;h3&gt;

&lt;a class=&quot;&quot; href=&quot;#&quot;&gt;WORK&lt;/a&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class=&quot;navigation_item&quot;&gt;

&lt;h3&gt;

&lt;a class=&quot;&quot; href=&quot;#&quot;&gt;DISSERTATION&lt;/a&gt;&lt;/h3&gt;&lt;/div&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
So til now, when we click a navigation item,&amp;nbsp; its background-color becomes black(selected class). The other ones have a grey background-color (#424242).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Hover Effect &lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;
$(&quot;.navigation_item h3&quot;).hover(

function () {

$(this).find(&quot;h3 a&quot;).css(&quot;background-color&quot;,&quot;#000000&quot;);


}, 
function () {
if(!$(this).find(&quot;h3 a&quot;).hasClass(&quot;selected&quot;)){

$(this).find(&quot;h3 a&quot;).css(&quot;background-color&quot;,&quot;#666666&quot;);

} else {

$(this).find(&quot;h3 a&quot;).css(&quot;background-color&quot;,&quot;#000000&quot;);

}

});
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
Well, let&#39;s explain the hover effect now! When we mouseover a menu item, we make its backround-color black. That&#39;s easy! &lt;br /&gt;
When we mouseout, we have to make a check. The menu item that has &quot;selected&quot; class, keeps its black background-color, otherwise it becomes grey (#424242).&lt;br /&gt;
&lt;br /&gt;
What would happen, if we didn&#39;t make the check? Every menu item would become grey and we wouldn&#39;t know, which one was the selected one. &lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Well, in the above example I wanted to show you the technique I use, in order to check which menu item is the selected one when we use AJAX, and keep its &quot;selected&quot; class, when we mouseover that! &lt;br /&gt;
&lt;br /&gt;
I am glad to hear, what you do in a similar situation!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/5249415020506464307/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/hover-effect-jquery.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/5249415020506464307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/5249415020506464307'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/hover-effect-jquery.html' title='Click &amp; Hover Effect with Jquery'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYwyp7Kx37MCSgqikfL0pLf7sEBfzgba0_zcW7U1F56szkFsZ0JW5w9mzWa8XXnUv2yvp0v3P6nv8Jo-Ge5LoeO-6lR_aTke2SIk-hoIh21qI6jdDbbh3jsx1vWQXAKFb16dcrD19ohFc/s72-c/menu.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-4455732684523312597</id><published>2012-02-01T04:20:00.001-08:00</published><updated>2012-02-01T04:32:23.095-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>Adding an App to a Facebook Page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;If you want to add an app to your Facebook page and for some reason you can&#39;t find &lt;b&gt;View App Profile Page &lt;/b&gt;at the left part of the page when you registered it at &lt;a href=&quot;http://www.facebook.com/developers&quot;&gt;http://www.facebook.com/developers&lt;/a&gt;, you can do it by typing in the addess bar the following:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&amp;amp;next=YOUR_URL&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;where YOUR_APP_ID and YOUR_URL can be found in your &lt;a href=&quot;https://developers.facebook.com/apps&quot;&gt;app settings.&lt;/a&gt; &lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/4455732684523312597/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/adding-app-to-facebook-page.html#comment-form' title='1 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/4455732684523312597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/4455732684523312597'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/02/adding-app-to-facebook-page.html' title='Adding an App to a Facebook Page'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-8973084641427468943</id><published>2012-01-25T03:22:00.000-08:00</published><updated>2012-01-25T03:55:11.697-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>Implementing Facebook Share in 2 different ways</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Well, how often do we see in every website the commonly used &quot;Share&quot; button? &lt;br /&gt;
&lt;br /&gt;
Don&#39;t you know how to integrate it into your website? Don&#39;t worry, I suggest you 2 ways, you can choose the one that suits you most!&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;u&gt;&lt;b&gt;Facebook Share button - No1&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You can render the Facebook Share button in an anchor (a) tag that takes the following 3 attributes:&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;u&gt;&lt;b&gt;name&lt;/b&gt;&lt;/u&gt;: You &lt;b&gt;must&lt;/b&gt; specify fb_share for this attribute.&lt;/li&gt;
&lt;li&gt;&lt;u&gt;&lt;b&gt;type&lt;/b&gt;&lt;/u&gt;: The type of Share button or link to render, with or without a count included&lt;/li&gt;
&lt;li&gt;&lt;u&gt;&lt;b&gt;share_url&lt;/b&gt;&lt;/u&gt;: The URL for the page you want to share &lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
You can do this by firstly including following lines in the head section of your code: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:js&quot;&gt;&lt;script src=&quot;http://static.ak.fbcdn.net/connect.php/js/FB.Share&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;

&lt;/pre&gt;&lt;br /&gt;
and then by using the anchor tag with the appropriate attributes, exactly where you want it to appear on your page. &lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush:js&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;a name=&quot;fb_share&quot; type=&quot;button&quot; share_url=&quot;YOUR_URL&quot;&gt;&lt;/a&gt; 
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
From the above attributes, only first one- name - is mandatory, the other ones are optional.&lt;br /&gt;
&lt;br /&gt;
The &quot;type&quot; attribute can have one of the following values:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;box_count&lt;/li&gt;
&lt;li&gt;button_count&lt;/li&gt;
&lt;li&gt;button&lt;/li&gt;
&lt;li&gt;icon_link or&lt;/li&gt;
&lt;li&gt; icon&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
If none of them is specified, then the button &lt;b&gt;defaults &lt;/b&gt;to the &quot;&lt;b&gt;button count&lt;/b&gt;&quot; type. Experiment with them, and see which you like most!&lt;br /&gt;
&lt;br /&gt;
Finally, regarding the anchor tag, if you don&#39;t specify a &lt;b&gt;share_url&lt;/b&gt;, then this attribute defaults to the current page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Facebook Share button - No2&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Are you working with graphic designers, that want every button in your page to be customized according to the general design of your website?&lt;br /&gt;
&lt;br /&gt;
Well in this situation, you can include your own button this way:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:js&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
function fbs_click() {u=location.href;t=document.title;window.open(&#39;http://www.facebook.com/sharer.php?u=&#39;+encodeURIComponent(u)+&#39;&amp;t=&#39;+encodeURIComponent(t),&#39;sharer&#39;,&#39;toolbar=0,status=0,width=626,height=436&#39;);return false;}
&lt;/script&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=7629929636332256455&amp;amp;postID=8973084641427468943#&quot; target=&quot;_blank&quot; title=&quot;Click to share this post on Facebook&quot;&gt;&lt;img src=&quot;images/mybutton.png&quot; /&gt;&lt;/a&gt;
&lt;/pre&gt;&lt;br /&gt;
Let me explain a little bit. As you can see, you have an anchor tag, which, on click, calls a javascript function &quot;fbs_click&quot;. Inside img tag, you locate your own image!&lt;br /&gt;
&lt;br /&gt;
In your head section or just above the anchor tag, you define &quot;&lt;b&gt;fbs_click&lt;/b&gt;&quot; function the way I did. The function, takes the url of your current page. &lt;br /&gt;
&lt;br /&gt;
The url that is passed to the Facebook servers looks up certain HTML tags within it. If you don&#39;t tag your page, Facebook Share will grab the title of your page as specified in the title tag, and will create a summary description from the first text that appears in the body of your page. A list of thumbnails will all be selected from available images on your page.&lt;br /&gt;
&lt;br /&gt;
In order to control the exact title, description, and thumbnail that Facebook Share uses, add the following meta tags to the head element in your page:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush:js&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;meta property=&quot;og:title&quot; content=&quot;title&quot; /&gt;
&lt;meta property=&quot;og:description&quot; content=&quot;description&quot; /&gt;
&lt;meta property=&quot;og:image&quot; content=&quot;thumbnail_image&quot; /&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
If you want to do this the simple way, use the first solution! If you want to put your own button, just use the second way!&lt;br /&gt;
&lt;br /&gt;
There is also a third way to include a share button in your website. You have to include the Facebook JS SDK and invoke &lt;code&gt;stream.publish&lt;/code&gt; or &lt;code&gt;stream.share&lt;/code&gt; from the &lt;a href=&quot;http://developers.facebook.com/docs/reference/javascript/FB.ui&quot;&gt;FB.ui()&lt;/a&gt; method. But I will explain it in more detail, in another post!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
***You can read more about &quot;Share button&quot; at the official &lt;a href=&quot;http://developers.facebook.com/docs/share/&quot; target=&quot;_blank&quot;&gt;Facebook site&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/8973084641427468943/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/01/implementing-facebook-share-in-3.html#comment-form' title='3 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/8973084641427468943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/8973084641427468943'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/01/implementing-facebook-share-in-3.html' title='Implementing Facebook Share in 2 different ways'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-7412651504816532887</id><published>2012-01-22T12:16:00.000-08:00</published><updated>2012-01-22T12:16:21.402-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wamp"/><title type='text'>Import large sql dump into Wamp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Do you want to import a huge sql file locally at Wamp?&lt;br /&gt;
&lt;br /&gt;
Edit php.ini file and change(increase) the values of following variables&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;upload_max_filesize&lt;/li&gt;
&lt;li&gt;post_max_size &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/7412651504816532887/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/01/import-large-sql-dump-into-wamp.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7412651504816532887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7412651504816532887'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/01/import-large-sql-dump-into-wamp.html' title='Import large sql dump into Wamp'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-1258051811755335077</id><published>2012-01-05T07:13:00.000-08:00</published><updated>2012-01-05T07:16:05.186-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ckeditor"/><title type='text'>Ckeditor &amp; Greek entities</title><content type='html'>If you type a greek word in ckeditor and in source view you take some weird characters, then put this code in the config.js file and problem is gone:&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;config.htmlEncodeOutput = false;
config.entities = false;
config.entities_greek = false;
&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/1258051811755335077/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/01/ckeditor-greek-entities.html#comment-form' title='1 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/1258051811755335077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/1258051811755335077'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2012/01/ckeditor-greek-entities.html' title='Ckeditor &amp; Greek entities'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-7700167109695579558</id><published>2011-12-28T03:48:00.000-08:00</published><updated>2011-12-28T03:51:31.515-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fireworks"/><title type='text'>Transparent PNG in Fireworks</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Having problem with png transparency in Fireworks? Solution is to save it in 32 Bit mode and not in 24 Bit mode!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;In more detail&lt;/b&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Choose Window -&amp;gt; Optimize&lt;/li&gt;
&lt;li&gt;Select PNG32 and Matte-&amp;gt;Transparent button&lt;/li&gt;
&lt;li&gt;File -&amp;gt; Export&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/7700167109695579558/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2011/12/transparent-png-in-fireworks.html#comment-form' title='1 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7700167109695579558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/7700167109695579558'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2011/12/transparent-png-in-fireworks.html' title='Transparent PNG in Fireworks'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7629929636332256455.post-6228951030056661707</id><published>2011-11-10T12:11:00.000-08:00</published><updated>2011-11-10T12:18:12.594-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>How to backup your information from Facebook</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Are you afraid of loosing your photos, videos and posts you share on Facebook? You can simply backup all this information by following the steps below:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Click the account menu &lt;img alt=&quot;&quot; class=&quot;img&quot; src=&quot;https://fbcdn_dragon-a.akamaihd.net/cfs-ak-snc6/85001/493/207097142662705_1348602426.png&quot; /&gt; at the top right of any Facebook page&lt;/li&gt;
&lt;li&gt; Choose &lt;b&gt;&lt;a style=color:#B32C20&quot; target=&quot;_blank&quot; href=&quot;https://www.facebook.com/settings&quot;&gt;Account Settings&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Click on &lt;b&gt;&quot;Download a copy&quot;&lt;/b&gt; of your Facebook data&lt;/li&gt;
&lt;li&gt;Click the Download button on the following page&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://giota-mywebworld.blogspot.com/feeds/6228951030056661707/comments/default' title='Σχόλια ανάρτησης'/><link rel='replies' type='text/html' href='http://giota-mywebworld.blogspot.com/2011/11/how-to-backup-your-information-from.html#comment-form' title='0 σχόλια'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/6228951030056661707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7629929636332256455/posts/default/6228951030056661707'/><link rel='alternate' type='text/html' href='http://giota-mywebworld.blogspot.com/2011/11/how-to-backup-your-information-from.html' title='How to backup your information from Facebook'/><author><name>giota</name><uri>http://www.blogger.com/profile/12371079235478376359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN3IYnRaD-ZYg3vGV_nbrfXv_ykFsMPluyuz7FOfZrg8xrVLAQKPb7ml7ikq51Ox416TBOhsSQwWyjfGhg8iqSjm1H65LRX-RQIA4yRoy8Lbno-T2mmqRewsOeROuHBw/s220/300867_10150304674123394_558873393_7846073_6526497_n.jpg'/></author><thr:total>0</thr:total></entry></feed>