<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Style Guide For Webdevelopers and Webmasters</title>
	<atom:link href="http://www.webstylepress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>All about Web 2.0 and Building Better Standard based Websites using Ajax, jQuery, CSS, XHTML and Latest Techniques</description>
	<lastBuildDate>Thu, 31 Dec 2009 03:10:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Country Select &#8211; On Change Country Flag Image Transition</title>
		<link>http://www.webstylepress.com/country-select-on-change-country-flag-image-transition/</link>
		<comments>http://www.webstylepress.com/country-select-on-change-country-flag-image-transition/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 03:10:00 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=550</guid>
		<description><![CDATA[This is a very easy example on country flag change. If you have got a form with country selection field then you can easily display a flag related to that specific country on country selection made by user. In this example all the flags images are placed in a folder named as &#8216;flags&#8217; which is [...]<p><a href="http://www.webstylepress.com/country-select-on-change-country-flag-image-transition/">Country Select &#8211; On Change Country Flag Image Transition</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This is a very easy example on country flag change. If you have got a form with country selection field then you can easily display a flag related to that specific country on country selection made by user. In this example all the flags images are placed in a folder named as &#8216;flags&#8217; which is in folder named as &#8216;images&#8217;. You should have a folder &#8216;images&#8217; at website root and a folder &#8216;flags&#8217; containing all the flags in png file format in it. Give this script a go. This is really cool and easy way to create a user friendly selection form field.</p>
<p><span id="more-550"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;img id=&quot;flag&quot; src=&quot;images/flags/pk.png&quot;/&gt;
&lt;select onchange=&quot;if(document.images) document.images['flag'].src='images/flags/'+this.options[this.selectedIndex].value+'.png';&quot; name=&quot;country&quot;&gt;
&lt;option selected=&quot;selected&quot; value=&quot;pk&quot;&gt;Pakistan&lt;/option&gt;
&lt;option value=&quot;af&quot;&gt;Afghanistan&lt;/option&gt;
&lt;option value=&quot;al&quot;&gt;Albania&lt;/option&gt;
&lt;option value=&quot;dz&quot;&gt;Algeria&lt;/option&gt;
&lt;option value=&quot;as&quot;&gt;American Samoa&lt;/option&gt;
&lt;option value=&quot;ad&quot;&gt;Andorra&lt;/option&gt;
&lt;option value=&quot;ao&quot;&gt;Angola&lt;/option&gt;
&lt;option value=&quot;ai&quot;&gt;Anguilla&lt;/option&gt;
&lt;option value=&quot;aq&quot;&gt;Antarctica&lt;/option&gt;
&lt;option value=&quot;ag&quot;&gt;Antigua and Barbuda&lt;/option&gt;
&lt;option value=&quot;ar&quot;&gt;Argentina&lt;/option&gt;
&lt;option value=&quot;am&quot;&gt;Armenia&lt;/option&gt;
&lt;option value=&quot;arpa&quot;&gt;Arpanet&lt;/option&gt;
&lt;option value=&quot;aw&quot;&gt;Aruba&lt;/option&gt;
&lt;option value=&quot;au&quot;&gt;Australia&lt;/option&gt;
&lt;option value=&quot;at&quot;&gt;Austria&lt;/option&gt;
&lt;option value=&quot;az&quot;&gt;Azerbaijan&lt;/option&gt;
&lt;option value=&quot;bs&quot;&gt;Bahamas&lt;/option&gt;
&lt;option value=&quot;bh&quot;&gt;Bahrain&lt;/option&gt;
&lt;option value=&quot;bd&quot;&gt;Bangladesh&lt;/option&gt;
&lt;option value=&quot;bb&quot;&gt;Barbados&lt;/option&gt;
&lt;option value=&quot;by&quot;&gt;Belarus&lt;/option&gt;
&lt;option value=&quot;be&quot;&gt;Belgium&lt;/option&gt;
&lt;option value=&quot;bz&quot;&gt;Belize&lt;/option&gt;
&lt;option value=&quot;bj&quot;&gt;Benin&lt;/option&gt;
&lt;option value=&quot;bm&quot;&gt;Bermuda&lt;/option&gt;
&lt;option value=&quot;bt&quot;&gt;Bhutan&lt;/option&gt;
&lt;option value=&quot;bo&quot;&gt;Bolivia&lt;/option&gt;
&lt;option value=&quot;ba&quot;&gt;Bosnia and Herzegovina&lt;/option&gt;
&lt;option value=&quot;bw&quot;&gt;Botswana&lt;/option&gt;
&lt;option value=&quot;bv&quot;&gt;Bouvet Island&lt;/option&gt;
&lt;option value=&quot;br&quot;&gt;Brazil&lt;/option&gt;
&lt;option value=&quot;io&quot;&gt;British Indian Ocean Territory&lt;/option&gt;
&lt;option value=&quot;bn&quot;&gt;Brunei Darussalam&lt;/option&gt;
&lt;option value=&quot;bg&quot;&gt;Bulgaria&lt;/option&gt;
&lt;option value=&quot;bf&quot;&gt;Burkina Faso&lt;/option&gt;
&lt;option value=&quot;bi&quot;&gt;Burundi&lt;/option&gt;
&lt;option value=&quot;kh&quot;&gt;Cambodia&lt;/option&gt;
&lt;option value=&quot;cm&quot;&gt;Cameroon&lt;/option&gt;
&lt;option value=&quot;ca&quot;&gt;Canada&lt;/option&gt;
&lt;option value=&quot;cv&quot;&gt;Cape Verde&lt;/option&gt;
&lt;option value=&quot;ky&quot;&gt;Cayman Islands&lt;/option&gt;
&lt;option value=&quot;cf&quot;&gt;Central African Republic&lt;/option&gt;
&lt;option value=&quot;td&quot;&gt;Chad&lt;/option&gt;
&lt;option value=&quot;cl&quot;&gt;Chile&lt;/option&gt;
&lt;option value=&quot;cn&quot;&gt;China&lt;/option&gt;
&lt;option value=&quot;cx&quot;&gt;Christmas Island&lt;/option&gt;
&lt;option value=&quot;cc&quot;&gt;Cocos (Keeling) Islands&lt;/option&gt;
&lt;option value=&quot;co&quot;&gt;Colombia&lt;/option&gt;
&lt;option value=&quot;km&quot;&gt;Comoros&lt;/option&gt;
&lt;option value=&quot;cg&quot;&gt;Congo&lt;/option&gt;
&lt;option value=&quot;ck&quot;&gt;Cook Islands&lt;/option&gt;
&lt;option value=&quot;cr&quot;&gt;Costa Rica&lt;/option&gt;
&lt;option value=&quot;hr&quot;&gt;Croatia (Hrvatska)&lt;/option&gt;
&lt;option value=&quot;cu&quot;&gt;Cuba&lt;/option&gt;
&lt;option value=&quot;cy&quot;&gt;Cyprus&lt;/option&gt;
&lt;option value=&quot;cz&quot;&gt;Czech Republic&lt;/option&gt;
&lt;option value=&quot;cs&quot;&gt;Czechoslovakia (former)&lt;/option&gt;
&lt;option value=&quot;dk&quot;&gt;Denmark&lt;/option&gt;
&lt;option value=&quot;dj&quot;&gt;Djibouti&lt;/option&gt;
&lt;option value=&quot;dm&quot;&gt;Dominica&lt;/option&gt;
&lt;option value=&quot;do&quot;&gt;Dominican Republic&lt;/option&gt;
&lt;option value=&quot;tp&quot;&gt;East Timor&lt;/option&gt;
&lt;option value=&quot;ec&quot;&gt;Ecuador&lt;/option&gt;
&lt;option value=&quot;eg&quot;&gt;Egypt&lt;/option&gt;
&lt;option value=&quot;sv&quot;&gt;El Salvador&lt;/option&gt;
&lt;option value=&quot;gq&quot;&gt;Equatorial Guinea&lt;/option&gt;
&lt;option value=&quot;er&quot;&gt;Eritrea&lt;/option&gt;
&lt;option value=&quot;ee&quot;&gt;Estonia&lt;/option&gt;
&lt;option value=&quot;et&quot;&gt;Ethiopia&lt;/option&gt;
&lt;option value=&quot;eu&quot;&gt;Europe&lt;/option&gt;
&lt;option value=&quot;fk&quot;&gt;Falkland Islands (Malvinas)&lt;/option&gt;
&lt;option value=&quot;fo&quot;&gt;Faroe Island&lt;/option&gt;
&lt;option value=&quot;fj&quot;&gt;Fiji&lt;/option&gt;
&lt;option value=&quot;fi&quot;&gt;Finland&lt;/option&gt;
&lt;option value=&quot;fr&quot;&gt;France&lt;/option&gt;
&lt;option value=&quot;gf&quot;&gt;French Guiana&lt;/option&gt;
&lt;option value=&quot;pf&quot;&gt;French Polynesia&lt;/option&gt;
&lt;option value=&quot;tf&quot;&gt;French Southern Territories&lt;/option&gt;
&lt;option value=&quot;ga&quot;&gt;Gabon&lt;/option&gt;
&lt;option value=&quot;gm&quot;&gt;Gambia&lt;/option&gt;
&lt;option value=&quot;ge&quot;&gt;Georgia&lt;/option&gt;
&lt;option value=&quot;de&quot;&gt;Germany&lt;/option&gt;
&lt;option value=&quot;gh&quot;&gt;Ghana&lt;/option&gt;
&lt;option value=&quot;gi&quot;&gt;Gibraltar&lt;/option&gt;
&lt;option value=&quot;gb&quot;&gt;Great Britain (UK)&lt;/option&gt;
&lt;option value=&quot;gr&quot;&gt;Greece&lt;/option&gt;
&lt;option value=&quot;gl&quot;&gt;Greenland&lt;/option&gt;
&lt;option value=&quot;gd&quot;&gt;Grenada&lt;/option&gt;
&lt;option value=&quot;gp&quot;&gt;Guadeloupa&lt;/option&gt;
&lt;option value=&quot;gu&quot;&gt;Guam&lt;/option&gt;
&lt;option value=&quot;gt&quot;&gt;Guatemala&lt;/option&gt;
&lt;option value=&quot;gn&quot;&gt;Guinea&lt;/option&gt;
&lt;option value=&quot;gw&quot;&gt;Guinea-Bissau&lt;/option&gt;
&lt;option value=&quot;gy&quot;&gt;Guyana&lt;/option&gt;
&lt;option value=&quot;ht&quot;&gt;Haiti&lt;/option&gt;
&lt;option value=&quot;hm&quot;&gt;Heard and McDonald Islands&lt;/option&gt;
&lt;option value=&quot;hn&quot;&gt;Honduras&lt;/option&gt;
&lt;option value=&quot;hk&quot;&gt;Hong Kong&lt;/option&gt;
&lt;option value=&quot;hu&quot;&gt;Hungary&lt;/option&gt;
&lt;option value=&quot;is&quot;&gt;Iceland&lt;/option&gt;
&lt;option value=&quot;in&quot;&gt;India&lt;/option&gt;
&lt;option value=&quot;id&quot;&gt;Indonesia&lt;/option&gt;
&lt;option value=&quot;int&quot;&gt;International&lt;/option&gt;
&lt;option value=&quot;ir&quot;&gt;Iraq&lt;/option&gt;
&lt;option value=&quot;iq&quot;&gt;Iran&lt;/option&gt;
&lt;option value=&quot;ie&quot;&gt;Ireland&lt;/option&gt;
&lt;option value=&quot;il&quot;&gt;Israel&lt;/option&gt;
&lt;option value=&quot;it&quot;&gt;Italy&lt;/option&gt;
&lt;option value=&quot;jm&quot;&gt;Jamaica&lt;/option&gt;
&lt;option value=&quot;jp&quot;&gt;Japan&lt;/option&gt;
&lt;option value=&quot;jo&quot;&gt;Jordan&lt;/option&gt;
&lt;option value=&quot;kz&quot;&gt;Kazakhstan&lt;/option&gt;
&lt;option value=&quot;ke&quot;&gt;Kenya&lt;/option&gt;
&lt;option value=&quot;ki&quot;&gt;Kiribati&lt;/option&gt;
&lt;option value=&quot;kp&quot;&gt;Korea (North)&lt;/option&gt;
&lt;option value=&quot;kr&quot;&gt;Korea (South)&lt;/option&gt;
&lt;option value=&quot;kw&quot;&gt;Kuwait&lt;/option&gt;
&lt;option value=&quot;kg&quot;&gt;Kyrgyzstan&lt;/option&gt;
&lt;option value=&quot;la&quot;&gt;Laos&lt;/option&gt;
&lt;option value=&quot;lv&quot;&gt;Latvia&lt;/option&gt;
&lt;option value=&quot;lb&quot;&gt;Lebanon&lt;/option&gt;
&lt;option value=&quot;ls&quot;&gt;Lesotho&lt;/option&gt;
&lt;option value=&quot;lr&quot;&gt;Liberia&lt;/option&gt;
&lt;option value=&quot;ly&quot;&gt;Libya&lt;/option&gt;
&lt;option value=&quot;li&quot;&gt;Liechtenstein&lt;/option&gt;
&lt;option value=&quot;lt&quot;&gt;Lithuania&lt;/option&gt;
&lt;option value=&quot;lu&quot;&gt;Luxembourg&lt;/option&gt;
&lt;option value=&quot;mo&quot;&gt;Macau&lt;/option&gt;
&lt;option value=&quot;mk&quot;&gt;Macedonia&lt;/option&gt;
&lt;option value=&quot;mg&quot;&gt;Madagascar&lt;/option&gt;
&lt;option value=&quot;mw&quot;&gt;Malawi&lt;/option&gt;
&lt;option value=&quot;my&quot;&gt;Malaysia&lt;/option&gt;
&lt;option value=&quot;mv&quot;&gt;Maldives&lt;/option&gt;
&lt;option value=&quot;ml&quot;&gt;Mali&lt;/option&gt;
&lt;option value=&quot;mt&quot;&gt;Malta&lt;/option&gt;
&lt;option value=&quot;mh&quot;&gt;Marshall Islands&lt;/option&gt;
&lt;option value=&quot;mq&quot;&gt;Martinique&lt;/option&gt;
&lt;option value=&quot;mr&quot;&gt;Mauritania&lt;/option&gt;
&lt;option value=&quot;mu&quot;&gt;Mauritius&lt;/option&gt;
&lt;option value=&quot;yt&quot;&gt;Mayotte&lt;/option&gt;
&lt;option value=&quot;mx&quot;&gt;Mexico&lt;/option&gt;
&lt;option value=&quot;fm&quot;&gt;Micronesia&lt;/option&gt;
&lt;option value=&quot;md&quot;&gt;Moldova&lt;/option&gt;
&lt;option value=&quot;mc&quot;&gt;Monaco&lt;/option&gt;
&lt;option value=&quot;mn&quot;&gt;Mongolia&lt;/option&gt;
&lt;option value=&quot;ms&quot;&gt;Montserrat&lt;/option&gt;
&lt;option value=&quot;ma&quot;&gt;Morocco&lt;/option&gt;
&lt;option value=&quot;mz&quot;&gt;Mozambique&lt;/option&gt;
&lt;option value=&quot;mm&quot;&gt;Myanmar&lt;/option&gt;
&lt;option value=&quot;na&quot;&gt;Namibia&lt;/option&gt;
&lt;option value=&quot;nr&quot;&gt;Nauru&lt;/option&gt;
&lt;option value=&quot;np&quot;&gt;Nepal&lt;/option&gt;
&lt;option value=&quot;nl&quot;&gt;Netherlands&lt;/option&gt;
&lt;option value=&quot;an&quot;&gt;Netherlands Antilles&lt;/option&gt;
&lt;option value=&quot;nc&quot;&gt;New Caledonia&lt;/option&gt;
&lt;option value=&quot;nz&quot;&gt;New Zealand (Aotearoa)&lt;/option&gt;
&lt;option value=&quot;ni&quot;&gt;Nicaragua&lt;/option&gt;
&lt;option value=&quot;ne&quot;&gt;Nigee&lt;/option&gt;
&lt;option value=&quot;ng&quot;&gt;Nigeria&lt;/option&gt;
&lt;option value=&quot;nu&quot;&gt;Niue&lt;/option&gt;
&lt;option value=&quot;nf&quot;&gt;Norfolk Island&lt;/option&gt;
&lt;option value=&quot;mp&quot;&gt;Northern Mariana Islands&lt;/option&gt;
&lt;option value=&quot;no&quot;&gt;Norway&lt;/option&gt;
&lt;option value=&quot;om&quot;&gt;Oma&lt;/option&gt;
&lt;option value=&quot;pk&quot;&gt;Pakistan&lt;/option&gt;
&lt;option value=&quot;pw&quot;&gt;Palau&lt;/option&gt;
&lt;option value=&quot;pa&quot;&gt;Panama&lt;/option&gt;
&lt;option value=&quot;pg&quot;&gt;Papua New Guinea&lt;/option&gt;
&lt;option value=&quot;py&quot;&gt;Paraguay&lt;/option&gt;
&lt;option value=&quot;pe&quot;&gt;Peru&lt;/option&gt;
&lt;option value=&quot;ph&quot;&gt;Philippines&lt;/option&gt;
&lt;option value=&quot;pn&quot;&gt;Pitcairn&lt;/option&gt;
&lt;option value=&quot;pl&quot;&gt;Poland&lt;/option&gt;
&lt;option value=&quot;pt&quot;&gt;Portugal&lt;/option&gt;
&lt;option value=&quot;pr&quot;&gt;Puerto Ric&lt;/option&gt;
&lt;option value=&quot;qa&quot;&gt;Qatar&lt;/option&gt;
&lt;option value=&quot;re&quot;&gt;Reunion&lt;/option&gt;
&lt;option value=&quot;ro&quot;&gt;Romania&lt;/option&gt;
&lt;option value=&quot;ru&quot;&gt;Russia&lt;/option&gt;
&lt;option value=&quot;rw&quot;&gt;Rwanda&lt;/option&gt;
&lt;option value=&quot;gs&quot;&gt;S. Georgia and S. Sandwich Isls&lt;/option&gt;
&lt;option value=&quot;kn&quot;&gt;Saint Kitts and Nevis&lt;/option&gt;
&lt;option value=&quot;lc&quot;&gt;Saint Lucia&lt;/option&gt;
&lt;option value=&quot;vc&quot;&gt;Saint Vincent and the Grenadines&lt;/option&gt;
&lt;option value=&quot;ws&quot;&gt;Samoa&lt;/option&gt;
&lt;option value=&quot;sm&quot;&gt;San Marino&lt;/option&gt;
&lt;option value=&quot;st&quot;&gt;Sao Tome and Principe&lt;/option&gt;
&lt;option value=&quot;sa&quot;&gt;Saudi Arabia&lt;/option&gt;
&lt;option value=&quot;sn&quot;&gt;Senegal&lt;/option&gt;
&lt;option value=&quot;rs&quot;&gt;Serbia&lt;/option&gt;
&lt;option value=&quot;sc&quot;&gt;Seychelles&lt;/option&gt;
&lt;option value=&quot;sl&quot;&gt;Sierra Leone&lt;/option&gt;
&lt;option value=&quot;sg&quot;&gt;Singapore&lt;/option&gt;
&lt;option value=&quot;sk&quot;&gt;Slovak Republic&lt;/option&gt;
&lt;option value=&quot;si&quot;&gt;Slovenia&lt;/option&gt;
&lt;option value=&quot;sb&quot;&gt;Solomon Islands&lt;/option&gt;
&lt;option value=&quot;so&quot;&gt;Somalia&lt;/option&gt;
&lt;option value=&quot;za&quot;&gt;South Africa&lt;/option&gt;
&lt;option value=&quot;es&quot;&gt;Spain&lt;/option&gt;
&lt;option value=&quot;lk&quot;&gt;Sri Lanka&lt;/option&gt;
&lt;option value=&quot;sh&quot;&gt;St. Helena&lt;/option&gt;
&lt;option value=&quot;pm&quot;&gt;St. Pierre and Miquelon&lt;/option&gt;
&lt;option value=&quot;sd&quot;&gt;Sudan&lt;/option&gt;
&lt;option value=&quot;sr&quot;&gt;Suriname&lt;/option&gt;
&lt;option value=&quot;sj&quot;&gt;Svalbard and Jan Mayen Islands&lt;/option&gt;
&lt;option value=&quot;sz&quot;&gt;Swaziland&lt;/option&gt;
&lt;option value=&quot;se&quot;&gt;Sweden&lt;/option&gt;
&lt;option value=&quot;ch&quot;&gt;Switzerland&lt;/option&gt;
&lt;option value=&quot;sy&quot;&gt;Syria&lt;/option&gt;
&lt;option value=&quot;tw&quot;&gt;Taiwan&lt;/option&gt;
&lt;option value=&quot;tj&quot;&gt;Tajikistan&lt;/option&gt;
&lt;option value=&quot;tz&quot;&gt;Tanzania&lt;/option&gt;
&lt;option value=&quot;th&quot;&gt;Thailand&lt;/option&gt;
&lt;option value=&quot;tg&quot;&gt;Togo&lt;/option&gt;
&lt;option value=&quot;tk&quot;&gt;Tokelau&lt;/option&gt;
&lt;option value=&quot;to&quot;&gt;Tonga&lt;/option&gt;
&lt;option value=&quot;tt&quot;&gt;Trinidad and Tobago&lt;/option&gt;
&lt;option value=&quot;tn&quot;&gt;Tunisia&lt;/option&gt;
&lt;option value=&quot;tr&quot;&gt;Turkey&lt;/option&gt;
&lt;option value=&quot;tm&quot;&gt;Turkmenistan&lt;/option&gt;
&lt;option value=&quot;tc&quot;&gt;Turks and Caicos Islands&lt;/option&gt;
&lt;option value=&quot;tv&quot;&gt;Tuvalu&lt;/option&gt;
&lt;option value=&quot;ug&quot;&gt;Uganda&lt;/option&gt;
&lt;option value=&quot;ua&quot;&gt;Ukraine&lt;/option&gt;
&lt;option value=&quot;ae&quot;&gt;United Arab Emirates&lt;/option&gt;
&lt;option value=&quot;uk&quot;&gt;United Kingdom&lt;/option&gt;
&lt;option value=&quot;us&quot;&gt;United States&lt;/option&gt;
&lt;option value=&quot;uy&quot;&gt;Uruguay&lt;/option&gt;
&lt;option value=&quot;um&quot;&gt;US Minor Outlying Islands&lt;/option&gt;
&lt;option value=&quot;su&quot;&gt;USSR (former)&lt;/option&gt;
&lt;option value=&quot;uz&quot;&gt;Uzbekistan&lt;/option&gt;
&lt;option value=&quot;vu&quot;&gt;Vanuat&lt;/option&gt;
&lt;option value=&quot;va&quot;&gt;Vatican City State (Holy See)&lt;/option&gt;
&lt;option value=&quot;ve&quot;&gt;Venezuela&lt;/option&gt;
&lt;option value=&quot;vn&quot;&gt;Viet Nam&lt;/option&gt;
&lt;option value=&quot;vg&quot;&gt;Virgin Islands (British)&lt;/option&gt;
&lt;option value=&quot;vi&quot;&gt;Virgin Islands (U.S.)&lt;/option&gt;
&lt;option value=&quot;wf&quot;&gt;Wallis and Futuna Islands&lt;/option&gt;
&lt;option value=&quot;eh&quot;&gt;Western Sahara&lt;/option&gt;
&lt;option value=&quot;ye&quot;&gt;Yemem&lt;/option&gt;
&lt;option value=&quot;zr&quot;&gt;Zaier&lt;/option&gt;
&lt;option value=&quot;zm&quot;&gt;Zambia&lt;/option&gt;
&lt;option value=&quot;zw&quot;&gt;Zimbabwe&lt;/option&gt;
&lt;/select&gt;</pre></div></div>

<p><a href="http://www.webstylepress.com/country-select-on-change-country-flag-image-transition/">Country Select &#8211; On Change Country Flag Image Transition</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/jcarousel-lite-scroll/" title="jCarousel Lite Scroll &#8211; Fancy Scroll">jCarousel Lite Scroll &#8211; Fancy Scroll</a></li><li><a href="http://www.webstylepress.com/correct-way-to-use-robotstxt-file/" title="Correct Way To Use Robots.txt File">Correct Way To Use Robots.txt File</a></li><li><a href="http://www.webstylepress.com/designing-elements-bullets-icons-download/" title="Designing Elements &#8211; Bullets and Icons Downloads">Designing Elements &#8211; Bullets and Icons Downloads</a></li><li><a href="http://www.webstylepress.com/simple-and-powerful-form-validation/" title="Simple and Powerful Form Validation">Simple and Powerful Form Validation</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-5/" title="Javascript Essentials Part 5">Javascript Essentials Part 5</a></li><li><a href="http://www.webstylepress.com/flash-hit-counter/" title="Flash Hit Counter Using ActionScript and PHP">Flash Hit Counter Using ActionScript and PHP</a></li><li><a href="http://www.webstylepress.com/how-to-control-font-size-in-percentage/" title="How to Control Font Size in Percentage">How to Control Font Size in Percentage</a></li><li><a href="http://www.webstylepress.com/auto-resize-browser-window-to-image-size/" title="Auto Resize Browser Window To Image Size">Auto Resize Browser Window To Image Size</a></li><li><a href="http://www.webstylepress.com/jquery-fancy-date-picker/" title="jQuery Fancy Date Picker">jQuery Fancy Date Picker</a></li><li><a href="http://www.webstylepress.com/advanced-notepad/" title="Advanced Notepad">Advanced Notepad</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/country-select-on-change-country-flag-image-transition/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Control Font Size in Percentage</title>
		<link>http://www.webstylepress.com/how-to-control-font-size-in-percentage/</link>
		<comments>http://www.webstylepress.com/how-to-control-font-size-in-percentage/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 21:17:45 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[Control]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=526</guid>
		<description><![CDATA[To control fonts in percentage is the easiest method which we can choose while playing with the fluid layouts, or perhaps while working with widgets and web 2.0 elements. 
It is recommended while working with layouts that we define a standard font size for html and body. In the beginning there were loose style for [...]<p><a href="http://www.webstylepress.com/how-to-control-font-size-in-percentage/">How to Control Font Size in Percentage</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.webstylepress.com/wp-content/uploads/2009/04/font-percentages.jpg" alt="font-percentages" title="font-percentages" width="200" height="283" class="alignright size-full wp-image-527" />To control fonts in percentage is the easiest method which we can choose while playing with the fluid layouts, or perhaps while working with widgets and web 2.0 elements. </p>
<p>It is recommended while working with layouts that we define a standard font size for html and body. In the beginning there were loose style for fonts. Nobody used to care about styling fonts. Then in the design era of computer age, designers developed and adopted techniques to control different design aspects of websites and usually most popular standard was to choose 11px to 12 px font for HTML. Many years this technique prevailed until web 2.0 arrived and some web architects decides that fonts must be clear and bold. So now designers and developers adopt a technique to display large font sizes. Font size, color, face are also a part of the design. Here is how we can control font by percentage as a unit for font size. </p>
<p><span id="more-526"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div style=&quot;font-size: 100%;&quot;&gt;100 %&lt;/div&gt;
&lt;div style=&quot;font-size: 150%;&quot;&gt;150 %&lt;/div&gt;
&lt;div style=&quot;font-size: 300%;&quot;&gt;300 %&lt;/div&gt;
&lt;div style=&quot;font-size: 400%;&quot;&gt;400 %&lt;/div&gt;
&lt;div style=&quot;font-size: 500%;&quot;&gt;500 %&lt;/div&gt;
&lt;div style=&quot;font-size: 600%;&quot;&gt;600 %&lt;/div&gt;</pre></div></div>

<p>There are other font size units too e.g. pixels, points, inches, cm, mm etc. Percentage is one of these. Widely used as a standard is em unit for font size, which is considered to be the same for all browsers if browser compatibility is in mind.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div style=&quot;font-size: 12px;&quot;&gt;12 px&lt;/div&gt;
&lt;div style=&quot;font-size: 12pt;&quot;&gt;12 pt&lt;/div&gt;
&lt;div style=&quot;font-size: 0.5in;&quot;&gt;0.5 in&lt;/div&gt;
&lt;div style=&quot;font-size: 1cm;&quot;&gt;1 cm&lt;/div&gt;
&lt;div style=&quot;font-size: 12mm;&quot;&gt;12 mm&lt;/div&gt;
&lt;div style=&quot;font-size: 2pc;&quot;&gt;2 pc&lt;/div&gt;
&lt;div style=&quot;font-size: 2em;&quot;&gt;2 em&lt;/div&gt;
&lt;div style=&quot;font-size: 6ex;&quot;&gt;12 ex&lt;/div&gt;</pre></div></div>

<p><a href="http://www.webstylepress.com/how-to-control-font-size-in-percentage/">How to Control Font Size in Percentage</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li><li><a href="http://www.webstylepress.com/sound-control-in-flash/" title="Sound Control In Flash &#8211; Tutorial and Downloads">Sound Control In Flash &#8211; Tutorial and Downloads</a></li><li><a href="http://www.webstylepress.com/transition-between-sections-of-a-flash-movie/" title="Transition Between Sections of a Flash Movie">Transition Between Sections of a Flash Movie</a></li><li><a href="http://www.webstylepress.com/load-external-swfs-with-smooth-transition/" title="Load External SWFs With Smooth Transition">Load External SWFs With Smooth Transition</a></li><li><a href="http://www.webstylepress.com/buttons-control-in-flash/" title="Buttons Control In Flash">Buttons Control In Flash</a></li><li><a href="http://www.webstylepress.com/fonts-for-web-using-nice-and-clean-fonts-in-web-page/" title="Fonts For Web &#8211; Using Nice and Clean Fonts in Web Page">Fonts For Web &#8211; Using Nice and Clean Fonts in Web Page</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/how-to-control-font-size-in-percentage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standard and Non-Standard Links</title>
		<link>http://www.webstylepress.com/standard-and-non-standard-links/</link>
		<comments>http://www.webstylepress.com/standard-and-non-standard-links/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 20:22:11 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Guidelines]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=522</guid>
		<description><![CDATA[Links are the Web&#8217;s number one interaction element. Violating common expectations for how links work is a sure way to confuse and delay users, and might prevent them from being able to use your site. Lets see what Markup Gurus say about links, and when links meet the standard or non-standard criteria. The usability guideline [...]<p><a href="http://www.webstylepress.com/standard-and-non-standard-links/">Standard and Non-Standard Links</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Links are the Web&#8217;s number one interaction element. Violating common expectations for how links work is a sure way to confuse and delay users, and might prevent them from being able to use your site. Lets see what Markup Gurus say about links, and when links meet the standard or non-standard criteria. The usability guideline for any type of navigational design is to help users understand three major points:</p>
<ul>
<li>Where they&#8217;ve been?</li>
<li>Where they are?</li>
<li>Where they can go (past, present, and future)?</li>
</ul>
<p>These three are interrelated: If we consider browsing a site, a journey; then knowing your past and present locations makes it easier to decide where to go next. </p>
<p><span id="more-522"></span></p>
<p><strong>Standard Guidelines for Links</strong></p>
<ul>
<li>Make obvious what&#8217;s clickable.<br />
For text links, use colored or underlined text.</li>
<li>Don&#8217;t underline non-link text.</li>
<li>Differentiate visited and unvisited links.</li>
<li>Explain what users will find at the other end of the link via &#8216;alt&#8217; and &#8216;title&#8217; tags to enhance scannability and search engine optimization (SEO).</li>
<li>Don&#8217;t use &#8220;click here&#8221; or other non-descriptive link text.</li>
<li>Avoid JavaScript or other fancy techniques (flash) that break standard interaction techniques for dealing with links.</li>
<li>Don&#8217;t open pages in new windows (except for different files i.e. PDF files).</li>
</ul>
<p><a href="http://www.webstylepress.com/standard-and-non-standard-links/">Standard and Non-Standard Links</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/website-standards-2/" title="Website Standards">Website Standards</a></li><li><a href="http://www.webstylepress.com/seo-resources/" title="SEO Tips, Search Engines and Directories Links to Submit Website &#8211; Website Promotion">SEO Tips, Search Engines and Directories Links to Submit Website &#8211; Website Promotion</a></li><li><a href="http://www.webstylepress.com/website-standards/" title="Website Standards and Check-Lists">Website Standards and Check-Lists</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/standard-and-non-standard-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Images Not Displaying in IE, Displaying in Firefox</title>
		<link>http://www.webstylepress.com/images-not-displaying-in-ie-displaying-in-firefox/</link>
		<comments>http://www.webstylepress.com/images-not-displaying-in-ie-displaying-in-firefox/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 19:46:24 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=518</guid>
		<description><![CDATA[Ever experienced a problem when regular image HTML code is displaying images in firefox but not displaying in internet explorer? If you are facing the same problem then consider taking care of following points:


Do not name images as &#8216;banner&#8217;. This can cause problems with some antivirus software or browser add-on.
validate the html document and css [...]<p><a href="http://www.webstylepress.com/images-not-displaying-in-ie-displaying-in-firefox/">Images Not Displaying in IE, Displaying in Firefox</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Ever experienced a problem when regular image HTML code is displaying images in firefox but not displaying in internet explorer? If you are facing the same problem then consider taking care of following points:</p>
<p><span id="more-518"></span></p>
<ul>
<li>Do not name images as &#8216;banner&#8217;. This can cause problems with some antivirus software or browser add-on.</li>
<li>validate the html document and css file. You can lose a lot of time trying to fix something when there are errors in your code.<br />
<a rel="nofollow" target="_blank" href="http://validator.w3.org/">W3C Validator &#8211; HTML</a><br />
<a rel="nofollow" target="_blank" href="http://jigsaw.w3.org/css-validator/">W3C Validator &#8211; CSS </a></li>
<li>Check for valid code &#8211; make sure all tags are closed.<br />
You may have neglected to close an element, or perhaps you meant to &#8220;self-close&#8221; an element, that is, ending it with &#8220;/>&#8221; instead of &#8220;>&#8221; in case of XHTML</li>
<li>Check that &#8217;show pictures&#8217; option is enabled in IE.<br />
Go to tools > Internet Options > Multimedia > Show Pictures</li>
</ul>
<p><a href="http://www.webstylepress.com/images-not-displaying-in-ie-displaying-in-firefox/">Images Not Displaying in IE, Displaying in Firefox</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/customizing-hr/" title="Customizing HR">Customizing HR</a></li><li><a href="http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/" title="Add Media Player With Playlist to Any Website">Add Media Player With Playlist to Any Website</a></li><li><a href="http://www.webstylepress.com/rounded-div-without-images/" title="Create Rounded Flexible Div Without Images">Create Rounded Flexible Div Without Images</a></li><li><a href="http://www.webstylepress.com/scrollbars-in-flash-flash-content-scroll/" title="Scrollbars In flash &#8211; Flash Content Scroll">Scrollbars In flash &#8211; Flash Content Scroll</a></li><li><a href="http://www.webstylepress.com/flash-hit-counter/" title="Flash Hit Counter Using ActionScript and PHP">Flash Hit Counter Using ActionScript and PHP</a></li><li><a href="http://www.webstylepress.com/jquery-fancy-date-picker/" title="jQuery Fancy Date Picker">jQuery Fancy Date Picker</a></li><li><a href="http://www.webstylepress.com/jquery-basic-hide-show-based-on-class/" title="Create jQuery Basic Hide Show Function">Create jQuery Basic Hide Show Function</a></li><li><a href="http://www.webstylepress.com/wrapping-text/" title="Wrapping Text &#8211; Breaking Text with No Spaces into New Line">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a></li><li><a href="http://www.webstylepress.com/markitup-universal-markup-editor/" title="Markitup &#8211; Universal Markup Editor &#8211; Rich Text Editor">Markitup &#8211; Universal Markup Editor &#8211; Rich Text Editor</a></li><li><a href="http://www.webstylepress.com/load-external-swfs-with-smooth-transition/" title="Load External SWFs With Smooth Transition">Load External SWFs With Smooth Transition</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/images-not-displaying-in-ie-displaying-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Any Font in Webpages As Text</title>
		<link>http://www.webstylepress.com/use-any-font-in-webpages-as-text/</link>
		<comments>http://www.webstylepress.com/use-any-font-in-webpages-as-text/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 10:06:43 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[facelift]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[smoothness]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[typeface]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=481</guid>
		<description><![CDATA[
Now using javascript we can use any font in web page by using techniques such as Typeface and Facelift Image Replacement (or FLIR) or sIFR. sIFR needs flash while others do not. sIFR is for smoothness look of fonts.
Instead of creating images or using flash just to show your site&#8217;s graphic text in the font [...]<p><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/">Use Any Font in Webpages As Text</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" target="_blank" href="http://nettuts.com/javascript-ajax/how-to-use-any-font-you-wish-with-flir/"><img src="http://www.webstylepress.com/wp-content/uploads/2009/01/use-any-fonts.png" alt="use-any-fonts" title="use-any-fonts" width="490" height="440" class="alignnone size-full wp-image-493" /></a></p>
<p>Now using javascript we can use any font in web page by using techniques such as <strong>Typeface</strong> and <strong>Facelift Image Replacement</strong> (or FLIR) or <strong>sIFR</strong>. sIFR needs flash while others do not. sIFR is for smoothness look of fonts.</p>
<p>Instead of creating images or using flash just to show your site&#8217;s graphic text in the font you want, you can use typeface.js and write in plain HTML and CSS and get original smooth font look whatever you specify, even if the user machine have not those fonts. This technique is limited yet with limited fonts support and also it is recommended to use it for title of headings of web page. All the font at the web page using this technique can heavy things up at server and page might load very slow. Even then it is cool. Type face is easy, flexible and open source.</p>
<p><span id="more-481"></span></p>
<p>Using FLIR to display any font in web page is even easy. <a rel="nofollow" target="_blank" href="http://nettuts.com/javascript-ajax/how-to-use-any-font-you-wish-with-flir/" target="_blank">Here</a> they have got complete instructions for just that.</p>
<p>I have tried type face method and here is its example to download.</p>
<p><a href='http://www.webstylepress.com/use-any-font-in-webpages-as-text/type-face/' rel='attachment wp-att-490' class="download">Type Face Example Download</a></p>
<p><strong>Related Resources </strong></p>
<p><a rel="nofollow" target="_blank" href="http://facelift.mawhorter.net/">Facelift</a><br />
<a rel="nofollow" target="_blank" href="http://novemberborn.net/">Novemberborn</a><br />
<a rel="nofollow" target="_blank" href="http://nettuts.com/javascript-ajax/how-to-implement-sifr3-into-your-website/">Implementing sIFR for smoothness of fonts in webpages</a><br />
<a rel="nofollow" target="_blank" href="http://typeface.neocracy.org">http://typeface.neocracy.org</a><br />
<a rel="nofollow" target="_blank" href="http://nettuts.com/javascript-ajax/how-to-use-any-font-you-wish-with-flir/">http://nettuts.com/javascript-ajax/how-to-use-any-font-you-wish-with-flir/</a></p>
<p><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/">Use Any Font in Webpages As Text</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-6/" title="Javascript Essentials Part 6">Javascript Essentials Part 6</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-5/" title="Javascript Essentials Part 5">Javascript Essentials Part 5</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-4/" title="Javascript Essentials Part 4">Javascript Essentials Part 4</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-3/" title="Javascript Essentials Part 3">Javascript Essentials Part 3</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-2/" title="Javascript Essentials Part 2">Javascript Essentials Part 2</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-1/" title="Javascript Essentials Part 1">Javascript Essentials Part 1</a></li><li><a href="http://www.webstylepress.com/simple-rollover-swap-image/" title="Simple RollOver Swap Image">Simple RollOver Swap Image</a></li><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li><li><a href="http://www.webstylepress.com/auto-resize-browser-window-to-image-size/" title="Auto Resize Browser Window To Image Size">Auto Resize Browser Window To Image Size</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/use-any-font-in-webpages-as-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Image Opacity Easily Using CSS or JS</title>
		<link>http://www.webstylepress.com/change-image-opacity-easily-using-css-js/</link>
		<comments>http://www.webstylepress.com/change-image-opacity-easily-using-css-js/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 09:14:06 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[blur]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[image effects]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[moz]]></category>
		<category><![CDATA[ns6]]></category>
		<category><![CDATA[opacity]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=484</guid>
		<description><![CDATA[We can simply use CSS alone to reproduce opacity effect that have traditionally been done using scripting. The advantage of looking to CSS instead is obvious &#8211; much more lightweight and easier to implement. We can use this method where we need to use a dim or faint version of image, while when some one [...]<p><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/">Change Image Opacity Easily Using CSS or JS</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p>We can simply use CSS alone to reproduce opacity effect that have traditionally been done using scripting. The advantage of looking to CSS instead is obvious &#8211; much more lightweight and easier to implement. We can use this method where we need to use a dim or faint version of image, while when some one places mouse over it, then image comes sharp, clear and bright.</p>
<p><span id="more-484"></span></p>
<p>Use the following code in head section of web page.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
<span style="color: #6666ff;">.opacityit</span> img<span style="color: #00AA00;">&#123;</span>
filter<span style="color: #3333ff;">:progid</span><span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.Alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">40</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.4</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.opacityit</span><span style="color: #3333ff;">:hover </span>img<span style="color: #00AA00;">&#123;</span>
filter<span style="color: #3333ff;">:progid</span><span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.Alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">100</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Use the following code in body where the image is located.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;#&quot; class=&quot;opacityit&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;email.gif&quot; /&gt;&lt;/a&gt;</pre></div></div>

<p>By this method image loads kind of blur in background and in light colors, but when some one places mouse over it. It becomes sharp.</p>
<p><strong>Simple Opacity</strong></p>
<p>We are using JavaScript to change the opacity of an image here. The technique works in both IE4+ and NS6+, and can be used to create some interesting &#8220;fading&#8221; effects. Here is the simple way to just place an image with opacity.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;img src=&quot;image.gif&quot; style=&quot;filter:alpha(opacity=50); -moz-opacity:0.5&quot;&gt;</pre></div></div>

<p>In <strong>-moz-opacity:0.5</strong> accepted range of values are 0 to 1, where 0 would make the image disappear and in <strong>alpha(opacity=50)</strong> range is between  1 to 100. We have combined the code both for IE and Mozilla for code compatibility.</p>
<p>We can also alter the opacity of image using javascript.</p>
<p><strong>Head section code</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> alteropacity<span style="color: #009900;">&#40;</span>imageobject<span style="color: #339933;">,</span> opacity<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appName</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Netscape&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=-</span><span style="color: #CC0000;">1</span>
  <span style="color: #339933;">&amp;&amp;</span>parseInt<span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appVersion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span>
    imageobject.<span style="color: #660066;">style</span>.<span style="color: #660066;">MozOpacity</span><span style="color: #339933;">=</span>opacity<span style="color: #339933;">/</span><span style="color: #CC0000;">100</span>
 <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appName</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span> 
  <span style="color: #339933;">&amp;&amp;</span>parseInt<span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appVersion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span>
    imageobject.<span style="color: #660066;">filters</span>.<span style="color: #660066;">alpha</span>.<span style="color: #660066;">opacity</span><span style="color: #339933;">=</span>opacity
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p><strong>Body Section Code</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;img src=&quot;image.gif&quot; style=&quot;filter:alpha(opacity=50); -moz-opacity:0.5&quot; 
onMouseover=&quot;alteropacity(this, 100)&quot; onMouseout=&quot;alteropacity(this, 30)&quot;&gt;</pre></div></div>

<p><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/">Change Image Opacity Easily Using CSS or JS</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/css-maximum-benefits/" title="How to Gain Maximum from CSS">How to Gain Maximum from CSS</a></li><li><a href="http://www.webstylepress.com/advanced-js-calendar/" title="Advanced JS Calendar">Advanced JS Calendar</a></li><li><a href="http://www.webstylepress.com/simple-js-calendar/" title="Create Simple Javascript Based Calendar">Create Simple Javascript Based Calendar</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-6/" title="Javascript Essentials Part 6">Javascript Essentials Part 6</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-5/" title="Javascript Essentials Part 5">Javascript Essentials Part 5</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-4/" title="Javascript Essentials Part 4">Javascript Essentials Part 4</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-3/" title="Javascript Essentials Part 3">Javascript Essentials Part 3</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-2/" title="Javascript Essentials Part 2">Javascript Essentials Part 2</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-1/" title="Javascript Essentials Part 1">Javascript Essentials Part 1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/change-image-opacity-easily-using-css-js/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Chatbox For Websites and Blogs</title>
		<link>http://www.webstylepress.com/chatbox-for-websites-blogs-forums/</link>
		<comments>http://www.webstylepress.com/chatbox-for-websites-blogs-forums/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 04:33:52 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=471</guid>
		<description><![CDATA[To listen to customers or your online visitors there have been many solutions but this one is very simple, easy and easy. Shoutbox a.k.a tagboard/chatbox, is an easy to use messaging system that allows you to interact with others instantly while you are at website. A shoutbox can be placed on your blog or website. [...]<p><a href="http://www.webstylepress.com/chatbox-for-websites-blogs-forums/">Chatbox For Websites and Blogs</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/11/shout-mix-screen.jpg" alt="" title="shout-mix-screen" width="182" height="302" class="alignnone size-full wp-image-472" align="right" style="margin-left:10px;" />To listen to customers or your online visitors there have been many solutions but this one is very simple, easy and easy. Shoutbox a.k.a tagboard/chatbox, is an easy to use messaging system that allows you to interact with others instantly while you are at website. A shoutbox can be placed on your blog or website. Your visitors can then easily post comments in it. They can also use the shoutbox to chat with you and other visitors at the same time. The free shoutbox has both IP and URL banning features also! Everything is customizable. One minute setup.</p>
<p><span id="more-471"></span></p>
<p><strong>Shout Mix Website</strong></p>
<p><a rel="nofollow" target="_blank" href="http://www.shoutmix.com/main/">http://www.shoutmix.com/main/</a></p>
<p><a href="http://www.webstylepress.com/chatbox-for-websites-blogs-forums/">Chatbox For Websites and Blogs</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/" title="Add Media Player With Playlist to Any Website">Add Media Player With Playlist to Any Website</a></li><li><a href="http://www.webstylepress.com/code-hider-tool-lock-webpage-code/" title="Code Hider Tool &#8211; Lock Webpage Code">Code Hider Tool &#8211; Lock Webpage Code</a></li><li><a href="http://www.webstylepress.com/visually-inspect-edit-css-html/" title="Visually Inspect and Edit CSS and HTML To Perfection">Visually Inspect and Edit CSS and HTML To Perfection</a></li><li><a href="http://www.webstylepress.com/full-free-xml-sitemap-generator/" title="Online Full Free XML Sitemap Generator">Online Full Free XML Sitemap Generator</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/write-urdu-in-web-pages/" title="Write Urdu In Web Pages">Write Urdu In Web Pages</a></li><li><a href="http://www.webstylepress.com/color-schemers-and-resources/" title="Color Schemers and Resources &#8211; Online Color Scheme Tools">Color Schemers and Resources &#8211; Online Color Scheme Tools</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/chatbox-for-websites-blogs-forums/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Media Player With Playlist to Any Website</title>
		<link>http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/</link>
		<comments>http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 04:30:42 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=474</guid>
		<description><![CDATA[
A revolutionary and easy to use music player that plays audio on your website. Link to audio, get single line of code and play. It is that easy. Light weighted media player which will not disturb your website layout. You can manage play lists and customize it in the way you want it. 
 
Features

Adds [...]<p><a href="http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/">Add Media Player With Playlist to Any Website</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/11/site-audio-player.jpg" alt="" title="site-audio-player" width="500" height="219" class="alignnone size-full wp-image-475" /></p>
<p>A revolutionary and easy to use music player that plays audio on your website. Link to audio, get single line of code and play. It is that easy. Light weighted media player which will not disturb your website layout. You can manage play lists and customize it in the way you want it. </p>
<p><span id="more-474"></span> </p>
<p><strong>Features</strong></p>
<ul>
<li>Adds audio to your site with one line of HTML</li>
<li>Uses simple, easy-to-hack HTML instead of complicated proprietary markup, ushering in the REAL Media Web
</li>
<li>Magical floating design never gets lost, is available when you need it, gets out of your way when you don&#8217;t need it</li>
<li>Automatically finds all audio links on your page, turning your page into a playlist</li>
<li>Plays all your blog entries with a single button click</li>
<li>Allows you to put the play buttons where they belong: IN CONTEXT</li>
<li>Keeps the user in the page rather than sending them away to a media player</li>
<li>Picks up your images and adds them as cover art</li>
<li>Requires no download, install or maintenance</li>
</ul>
<p><a rel="nofollow" target="_blank" href="http://mediaplayer.yahoo.com/">http://mediaplayer.yahoo.com</a></p>
<p><a href="http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/">Add Media Player With Playlist to Any Website</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/chatbox-for-websites-blogs-forums/" title="Chatbox For Websites and Blogs">Chatbox For Websites and Blogs</a></li><li><a href="http://www.webstylepress.com/code-hider-tool-lock-webpage-code/" title="Code Hider Tool &#8211; Lock Webpage Code">Code Hider Tool &#8211; Lock Webpage Code</a></li><li><a href="http://www.webstylepress.com/visually-inspect-edit-css-html/" title="Visually Inspect and Edit CSS and HTML To Perfection">Visually Inspect and Edit CSS and HTML To Perfection</a></li><li><a href="http://www.webstylepress.com/full-free-xml-sitemap-generator/" title="Online Full Free XML Sitemap Generator">Online Full Free XML Sitemap Generator</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/write-urdu-in-web-pages/" title="Write Urdu In Web Pages">Write Urdu In Web Pages</a></li><li><a href="http://www.webstylepress.com/color-schemers-and-resources/" title="Color Schemers and Resources &#8211; Online Color Scheme Tools">Color Schemers and Resources &#8211; Online Color Scheme Tools</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/add-media-player-with-playlist-to-any-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Protect Your WordPress Blog From Hotlinking</title>
		<link>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/</link>
		<comments>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 22:44:47 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Modrewrite]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wp Customization]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[hotlinking]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=466</guid>
		<description><![CDATA[Hotlinking is the use of an image from a website into another web page belonging to another site. There is thin chances that any popular blog will not be hot linked ever. By this way other websites use your host&#8217;s bandwidth and cause load at your server which has no benefit for you but loss. [...]<p><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/">Protect Your WordPress Blog From Hotlinking</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Hotlinking is the use of an image from a website into another web page belonging to another site. There is thin chances that any popular blog will not be hot linked ever. By this way other websites use your host&#8217;s bandwidth and cause load at your server which has no benefit for you but loss. Following is a solution to protect your WordPress blog from hotlinking using .htaccess file.</p>
<p>Ever visited a webpage when you were trying to access an image, which shows you an image saying that image stealing is prohibited. We are going to use this way. The image will still be displayed from your blog but then it can be small and of low quality minimizing load. So we will create a small image written something like &#8220;Content Stealing is prohibited at my server&#8221; and upload it on our blog server.</p>
<p>Then, we will edit our .htaccess file, located in your WordPress blog root directory. Sometimes ftp does not show .htaccess file because it is hidden. In that case we can apply a filter -a via ftp which will show us hidden files too. </p>
<p><span id="more-466"></span></p>
<p>Add the following code to your .htaccess file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">RewriteEngine On
#Replace ?myblog\.com/
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?myblog\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
#Replace /images/donothotlink.jpg
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/donothotlink.jpg [L]</pre></div></div>

<p>Replace myblog with your blog URL name. For this blog it will be <strong>webstylepress</strong><br />
Use <strong>donothotlink</strong> as a name for your jpg image.</p>
<p>And you are done. Now when anybody shall copy any image URL from your blog, this image will be shown instead.</p>
<p><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/">Protect Your WordPress Blog From Hotlinking</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/code-hider-tool-lock-webpage-code/" title="Code Hider Tool &#8211; Lock Webpage Code">Code Hider Tool &#8211; Lock Webpage Code</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-1/" title="Javascript Essentials Part 1">Javascript Essentials Part 1</a></li><li><a href="http://www.webstylepress.com/div-issues-problems-and-solution/" title="DIV Issues, Problems and Solutions">DIV Issues, Problems and Solutions</a></li><li><a href="http://www.webstylepress.com/fav-icon-tutorial/" title="Fav Icon Tutorial">Fav Icon Tutorial</a></li><li><a href="http://www.webstylepress.com/robots-txt-file/" title="Robots File &#8211; Usage and Best Practices">Robots File &#8211; Usage and Best Practices</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Gain Maximum from CSS</title>
		<link>http://www.webstylepress.com/css-maximum-benefits/</link>
		<comments>http://www.webstylepress.com/css-maximum-benefits/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 09:13:35 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=364</guid>
		<description><![CDATA[CSS is a simple file which controls the visual appearance of a web page without compromising its structure. Why to use it and how to use it properly. If you don&#8217;t use CSS on your web pages and you have many tables and content on them, chances are that your HTML file size will be [...]<p><a href="http://www.webstylepress.com/css-maximum-benefits/">How to Gain Maximum from CSS</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
]]></description>
			<content:encoded><![CDATA[<p>CSS is a simple file which controls the visual appearance of a web page without compromising its structure. Why to use it and how to use it properly. If you don&#8217;t use CSS on your web pages and you have many tables and content on them, chances are that your HTML file size will be quite heavy. Fact is that we live in a busy world, and people will not wait more than 5 seconds for web page to load. Some web developers implement the CSS on wrong way. They write their CSS in HTML code of the page, like this:</p>
<p><span id="more-364"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt; 
&lt;title&gt;My Page&lt;/title&gt;
&lt;style&gt;
A { font-family: Verdana; font-size:8pt; color:black; text-decoration:none } 
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;some content&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>Correct way is to link the external CSS file in the pages. i.e.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link rel='stylesheet' href='css/styles.css' type='text/css' media='all' /&gt;</pre></div></div>

<p><a href="http://www.webstylepress.com/css-maximum-benefits/">How to Gain Maximum from CSS</a> is a post from: <a href="http://www.webstylepress.com">Web Style Guide For Webdevelopers and Webmasters</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/rounded-div-without-images/" title="Create Rounded Flexible Div Without Images">Create Rounded Flexible Div Without Images</a></li><li><a href="http://www.webstylepress.com/modern-font-styles-for-websites/" title="Modern Font Styles For Websites">Modern Font Styles For Websites</a></li><li><a href="http://www.webstylepress.com/astyle-visual-css-editor/" title="Astyle Visual CSS Editor">Astyle Visual CSS Editor</a></li><li><a href="http://www.webstylepress.com/wrapping-text/" title="Wrapping Text &#8211; Breaking Text with No Spaces into New Line">Wrapping Text &#8211; Breaking Text with No Spaces into New Line</a></li><li><a href="http://www.webstylepress.com/w3c-validation-tips/" title="W3C Validation Tips and Best Practices">W3C Validation Tips and Best Practices</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/css-maximum-benefits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
