<?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 Press, Best Practices from all the Web, Build Better Websites &#187; Javascript</title>
	<atom:link href="http://www.webstylepress.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>Web VS Style</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:35:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<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 Press, Best Practices from all the Web, Build Better Websites</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 Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><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/images-not-displaying-in-ie-displaying-in-firefox/" title="Images Not Displaying in IE, Displaying in Firefox">Images Not Displaying in IE, Displaying in Firefox</a></li><li><a href="http://www.webstylepress.com/protect-your-wordpress-blog-from-hotlinking/" title="Protect Your WordPress Blog From Hotlinking">Protect Your WordPress Blog From Hotlinking</a></li><li><a href="http://www.webstylepress.com/convert-inpage-to-urdu-text/" title="Convert from InPage to Urdu Unicode Text">Convert from InPage to Urdu Unicode Text</a></li><li><a href="http://www.webstylepress.com/call-wordpress-record-voice/" title="Post Audio to Your Blog Using Any Phone &#8211; Call You WordPress Blog">Post Audio to Your Blog Using Any Phone &#8211; Call You WordPress Blog</a></li><li><a href="http://www.webstylepress.com/email-riddler-secure-email-link/" title="Email Riddler &#8211; Secure Email Link">Email Riddler &#8211; Secure Email Link</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/exact-reach-of-sites-comparison-real-time/" title="Find out Exact Reach of Sites and Comparison with Each Other in Real Time">Find out Exact Reach of Sites and Comparison with Each Other in Real Time</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/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/country-select-on-change-country-flag-image-transition/feed/</wfw:commentRss>
		<slash:comments>5</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[fonts]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tricks]]></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 [...]<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 Press, Best Practices from all the Web, Build Better Websites</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 Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/lorem-ipsum-ready/" title="Lorem ipsum Ready to Use">Lorem ipsum Ready to Use</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/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></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 Press, Best Practices from all the Web, Build Better Websites</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 Press, Best Practices from all the Web, Build Better Websites</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>2</slash:comments>
		</item>
		<item>
		<title>Advanced JS Calendar</title>
		<link>http://www.webstylepress.com/advanced-js-calendar/</link>
		<comments>http://www.webstylepress.com/advanced-js-calendar/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 08:43:42 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=451</guid>
		<description><![CDATA[Following javascript based calendar is kind of advanced and it shows current month, year and controls of next or previous. You can view days of any year or month in future or in past. You get the idea. This calendar uses an external javascript file. The origional code can be found at dynamicdrive. Download Advanced [...]<p><a href="http://www.webstylepress.com/advanced-js-calendar/">Advanced JS Calendar</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/11/advanced-calendar.gif" alt="" title="advanced-calendar" width="250" height="212" class="alignnone size-full wp-image-453" /></p>
<p>Following javascript based calendar is kind of advanced and it shows current month, year and controls of next or previous. You can view days of any year or month in future or in past. You get the idea. This calendar uses an external javascript file. The origional code can be found at <a rel="nofollow" target="_blank" href="http://www.dynamicdrive.com">dynamicdrive</a>.</p>
<p><span id="more-451"></span></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/11/advanced-js-calendar.rar'>Download Advanced JS Calendar</a></script></p>
<p><a href="http://www.webstylepress.com/advanced-js-calendar/">Advanced JS Calendar</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><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><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/jquery-smooth-news-rotator/" title="Create jQuery Smooth News Rotator">Create jQuery Smooth News Rotator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/advanced-js-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Simple Javascript Based Calendar</title>
		<link>http://www.webstylepress.com/simple-js-calendar/</link>
		<comments>http://www.webstylepress.com/simple-js-calendar/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 08:35:13 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Medium]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=447</guid>
		<description><![CDATA[Following script is a calendar script which simply shows current month and highlights current date. &#60;html&#62;&#60;body&#62; &#60;table border=&#34;0&#34; cellpadding=&#34;5&#34; cellspacing=&#34;0&#34;&#62; &#60;tr&#62; &#60;td align=&#34;center&#34; valign=&#34;middle&#34; bgcolor=&#34;#eeeeee&#34;&#62; &#60;table border=&#34;0&#34; cellpadding=&#34;5&#34; cellspacing=&#34;0&#34; bgcolor=&#34;#FFFFFF&#34;&#62; &#60;tr&#62; &#60;td align=&#34;center&#34; valign=&#34;middle&#34;&#62; &#60;SCRIPT LANGUAGE=&#34;JavaScript&#34;&#62; monthnames = new Array( &#34;January&#34;, &#34;Februrary&#34;, &#34;March&#34;, &#34;April&#34;, &#34;May&#34;, &#34;June&#34;, &#34;July&#34;, &#34;August&#34;, &#34;September&#34;, &#34;October&#34;, &#34;November&#34;, &#34;Decemeber&#34;); var linkcount=0; function [...]<p><a href="http://www.webstylepress.com/simple-js-calendar/">Create Simple Javascript Based Calendar</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Following script is a calendar script which simply shows current month and highlights current date.</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/11/simple-js-calendar.gif" alt="" title="simple-js-calendar" width="165" height="231" class="alignnone size-full wp-image-448" /></p>
<p><span id="more-447"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;&lt;body&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot;&gt;
  &lt;tr&gt;
    &lt;td align=&quot;center&quot; valign=&quot;middle&quot; bgcolor=&quot;#eeeeee&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; bgcolor=&quot;#FFFFFF&quot;&gt;
        &lt;tr&gt; 
          &lt;td align=&quot;center&quot; valign=&quot;middle&quot;&gt; &lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
monthnames = new Array(
&quot;January&quot;,
&quot;Februrary&quot;,
&quot;March&quot;,
&quot;April&quot;,
&quot;May&quot;,
&quot;June&quot;,
&quot;July&quot;,
&quot;August&quot;,
&quot;September&quot;,
&quot;October&quot;,
&quot;November&quot;,
&quot;Decemeber&quot;);
var linkcount=0;
function addlink(month, day, href) {
var entry = new Array(3);
entry[0] = month;
entry[1] = day;
entry[2] = href;
this[linkcount++] = entry;
}
Array.prototype.addlink = addlink;
linkdays = new Array();
monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;
todayDate=new Date();
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear &lt; 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0) 
&amp;&amp; !(thisyear % 100 == 0))
||(thisyear % 400 == 0)) monthdays[1]++;
startspaces=thisdate;
while (startspaces &gt; 7) startspaces-=7;
startspaces = thisday - startspaces + 1;
if (startspaces &lt; 0) startspaces+=7;
document.write(&quot;&lt;table border=0 bgcolor=#FFFFFF &quot;);
document.write(&quot;bordercolor=black&gt;&lt;font color=black face=verdana&gt;&quot;);
document.write(&quot;&lt;tr&gt;&lt;td colspan=7&gt;&lt;center&gt;&lt;strong&gt;&quot; 
+ monthnames[thismonth] + &quot; &quot; + thisyear 
+ &quot;&lt;/strong&gt;&lt;/center&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&quot;);
document.write(&quot;&lt;tr&gt;&quot;);
document.write(&quot;&lt;td align=center&gt;Su&lt;/td&gt;&quot;);
document.write(&quot;&lt;td align=center&gt;M&lt;/td&gt;&quot;);
document.write(&quot;&lt;td align=center&gt;Tu&lt;/td&gt;&quot;);
document.write(&quot;&lt;td align=center&gt;W&lt;/td&gt;&quot;);
document.write(&quot;&lt;td align=center&gt;Th&lt;/td&gt;&quot;);
document.write(&quot;&lt;td align=center&gt;F&lt;/td&gt;&quot;);
document.write(&quot;&lt;td align=center&gt;Sa&lt;/td&gt;&quot;); 
document.write(&quot;&lt;/tr&gt;&quot;);
document.write(&quot;&lt;tr&gt;&quot;);
for (s=0;s&lt;startspaces;s++) {
document.write(&quot;&lt;td&gt; &lt;/td&gt;&quot;);
}
count=1;
while (count &lt;= monthdays[thismonth]) {
for (b = startspaces;b&lt;7;b++) {
linktrue=false;
document.write(&quot;&lt;td&gt;&quot;);
for (c=0;c&lt;linkdays.length;c++) {
if (linkdays[c] != null) {
if ((linkdays[c][0]==thismonth + 1) &amp;&amp; (linkdays[c][1]==count)) {
document.write(&quot;&lt;a href=\&quot;&quot; + linkdays[c][2] + &quot;\&quot;&gt;&quot;);
linktrue=true;
      }
   }
}
if (count==thisdate) {
document.write(&quot;&lt;font color='E44401'&gt;&lt;strong&gt;&quot;);
}
if (count &lt;= monthdays[thismonth]) {
document.write(count);
}
else {
document.write(&quot; &quot;);
}
if (count==thisdate) {
document.write(&quot;&lt;/strong&gt;&lt;/font&gt;&quot;);
}
if (linktrue)
document.write(&quot;&lt;/a&gt;&quot;);
document.write(&quot;&lt;/td&gt;&quot;);
count++;
}
document.write(&quot;&lt;/tr&gt;&quot;);
document.write(&quot;&lt;tr&gt;&quot;);
startspaces=0;
}
document.write(&quot;&lt;/table&gt;&lt;/p&gt;&quot;);
// End --&gt;
&lt;/SCRIPT&gt; &lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</pre></div></div>

<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/11/simple-calendar.rar'>Download Simple Calendar Script</a></span></p>
<p><a href="http://www.webstylepress.com/simple-js-calendar/">Create Simple Javascript Based Calendar</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><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/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/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/jquery-smooth-news-rotator/" title="Create jQuery Smooth News Rotator">Create jQuery Smooth News Rotator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/simple-js-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Essentials Part 6</title>
		<link>http://www.webstylepress.com/javascript-essentials-part-6/</link>
		<comments>http://www.webstylepress.com/javascript-essentials-part-6/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 00:01:49 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[most wanted]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=430</guid>
		<description><![CDATA[We shall discuss the following important issues relating to javascript. Mouseover mouseout changes and Theme change - Change Link Color (Text change, Color change, both change) - Color Switch by css (background change) - Theme switch by css Image Galleries - CJ motion gallery &#8211; left right mouse over scroll - Oncliking link image changes [...]<p><a href="http://www.webstylepress.com/javascript-essentials-part-6/">Javascript Essentials Part 6</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>We shall discuss the following important issues relating to javascript.</p>
<ul>
<li><strong>Mouseover mouseout changes and Theme change</strong><br />
- Change Link Color (Text change, Color change, both change)<br />
- Color Switch by css (background change)<br />
- Theme switch by css
</li>
<li><strong>Image Galleries</strong><br />
- CJ motion gallery &#8211; left right mouse over scroll<br />
- Oncliking link image changes with fade in out &#8211; gallery (Captions &#038; Image Transitions)<br />
- Compact Gallery<br />
- One popup for all images (Displaying changing images.)<br />
- One popup for all images (Displaying changing images and captions
</li>
<li><strong>More Form Effects</strong><br />
- Form field highlight on focus<br />
- Form Field Select<br />
- Form field counter<br />
- Data appears or disappears on click and focus out
</li>
</ul>
<p><span id="more-430"></span></p>
<h4>Mouseover mouseout changes</h4>
<h5>Change Link Color(Text change, Color change, both change)</h5>
<p>This example explains how to change the link color and text on mouse over and out events.</p>
<p>Consider following script for mouse over and out events.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">onMouseOver=&quot;this.innerHTML = 'The Software Tycoon'; this.style.color = '#ff0000';&quot; onMouseOut=&quot;this.innerHTML = 'Microsoft'; this.style.color = '#0000ff';&quot;</pre></div></div>

<p>Full example:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;body&gt;
&lt;A HREF=&quot;http://www.microsoft.com/&quot;
onMouseOver=&quot;this.style.color = '#ff0000';&quot; onMouseOut=&quot;this.style.color = '#0000ff';&quot;&gt;Microsoft&lt;/A&gt;
&lt;br&gt;&lt;br&gt;
&lt;A HREF=&quot;http://www.microsoft.com/&quot;&gt;
&lt;FONT COLOR=&quot;#0000ff&quot; onMouseOver=&quot;this.innerHTML = 'The Software Tycoon'; this.style.color = '#ff0000';&quot; onMouseOut=&quot;this.innerHTML = 'Microsoft'; this.style.color = '#0000ff';&quot;&gt;Microsoft&lt;/FONT&gt;&lt;/A&gt;
&lt;br&gt;
&lt;A HREF=&quot;http://www.microsoft.com/&quot;&gt;
&lt;FONT onMouseOver=&quot;this.innerHTML = 'The Software Tycoon'&quot; onMouseOut=&quot;this.innerHTML = 'Microsoft'&quot;&gt;Microsoft&lt;/FONT&gt;&lt;/A&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p><a rel="nofollow" target="_blank" href="http://www.webdevelopersnotes.com/tutorials/javascript/javascript_event_handlers_onmouseover_onmouseout.php3" target="_blank">more reference at JavaScript Event Handlers &#8211; onmouseover and onmouseout</a></p>
<p><a href="http://www.webstylepress.com/javascript-essentials-part-6/">Javascript Essentials Part 6</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><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/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/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/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/jquery-smooth-news-rotator/" title="Create jQuery Smooth News Rotator">Create jQuery Smooth News Rotator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/javascript-essentials-part-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript Essentials Part 5</title>
		<link>http://www.webstylepress.com/javascript-essentials-part-5/</link>
		<comments>http://www.webstylepress.com/javascript-essentials-part-5/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 17:16:27 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[most wanted]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=422</guid>
		<description><![CDATA[Talk about form controls via Javascript. I have been hunting down js control over forms from the day I started web development. I love the control over programming and its essential too. Here in this javascript essentials part I will share with you some essential form controls. Accept Terms &#038; Go Advanced Email Address Validator [...]<p><a href="http://www.webstylepress.com/javascript-essentials-part-5/">Javascript Essentials Part 5</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Talk about form controls via Javascript. I have been hunting down js control over forms from the day I started web development. I love the control over programming and its essential too. Here in this javascript essentials part I will share with you some essential form controls.</p>
<ul>
<li>Accept Terms &#038; Go</li>
<li>Advanced Email Address Validator</li>
<li>Auto Drop Down List &#8211; Select from drop down and list updates accordingly</li>
<li>Auto Month DropDown with Date and Year</li>
<li>Auto Phone Number Format</li>
<li>Auto Tab</li>
<li>Character Counter</li>
<li>Check Un-check all from check boxes</li>
<li>Check Un-check all 2</li>
<li>Characters Disallow</li>
<li>Preview Image While Uploading</li>
<li>Submit Once</li>
</ul>
<p><span id="more-422"></span></p>
<h4>Accept Terms and Go</h4>
<p>This script is about forcing user to click check box in order to accept terms or policy.</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/11/accept-and-go.gif" alt="" title="accept-and-go" width="256" height="164" class="alignnone size-full wp-image-423" /></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
&lt;!-- Original:  Colin Pc  --&gt;
&lt;!-- Web Site:  http://www.insighteye.com/ --&gt;
&lt;!-- This script and many more are available free online at --&gt;
&lt;!-- The JavaScript Source!! http://javascript.internet.com --&gt;
&lt;!-- Begin
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box to continue.');
return false;
}else
return true;
}
//  End --&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action=&quot;www.tecnonascita.com&quot; method=&quot;POST&quot; onsubmit=&quot;return checkCheckBox(this)&quot;&gt;
I accept: &lt;input type=&quot;checkbox&quot; value=&quot;0&quot; name=&quot;agree&quot;&gt;
&lt;input type=&quot;submit&quot; value=&quot;Continue Order&quot;&gt;
&lt;input type=&quot;button&quot; value=&quot;Exit&quot; onclick=&quot;document.location.href='backpage.html';&quot;&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p><a href="http://www.webstylepress.com/javascript-essentials-part-5/">Javascript Essentials Part 5</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><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-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/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/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/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/jquery-smooth-news-rotator/" title="Create jQuery Smooth News Rotator">Create jQuery Smooth News Rotator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/javascript-essentials-part-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Essentials Part 4</title>
		<link>http://www.webstylepress.com/javascript-essentials-part-4/</link>
		<comments>http://www.webstylepress.com/javascript-essentials-part-4/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 13:32:14 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[most wanted]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=405</guid>
		<description><![CDATA[We will cover following essentials of javascript in this area. TOOLTIPS - Moving Tooltips - Hint Tooltip - Fade in out Tooltip - Regular Tooltip DATE &#038; TIME - Regular Time &#038; Date Full Script (Live) - Date Script (Month, Date, Year) - Time Script (Time(Hour,minutes,second), AM:PM) &#8211; Live Rotation - Image Rotation (Page Reload [...]<p><a href="http://www.webstylepress.com/javascript-essentials-part-4/">Javascript Essentials Part 4</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>We will cover following essentials of javascript in this area.</p>
<ul>
<li><strong>TOOLTIPS</strong><br />
- Moving Tooltips<br />
- Hint Tooltip<br />
- Fade in out Tooltip<br />
- Regular Tooltip
</li>
<li><strong>DATE &#038; TIME</strong><br />
- Regular Time &#038; Date Full Script (Live)<br />
- Date Script (Month, Date, Year)<br />
- Time Script (Time(Hour,minutes,second), AM:PM) &#8211; Live</li>
<li><strong>Rotation</strong><br />
- Image Rotation (Page Reload or Refresh Based)<br />
- Text Rotation (Page Reload or Refresh Based)<br />
- Image Rotation (Daily)<br />
- Image Rotation (After some seconds) &#8211; Appear<br />
- Image Rotation (After some seconds) &#8211; Fade in out
</li>
<li><strong>Form Validation</strong><br />
- By Simple Body and Head Section Script Method<br />
- By External js Validator File</li>
<li><strong>Scrollers (marquee and advanced)</strong><br />
- Scroll Control by an external js File<br />
- Simple Scroll<br />
- Continuous Scroll</li>
<li><strong>Text and Image Loading</strong><br />
- Loading by text (till all page loads)<br />
- Loading by image</li>
</ul>
<p><span id="more-405"></span></p>
<h4>TOOLTIPS</h4>
<h5>Moving Tooltips</h5>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;head&gt;
&lt;script language=&quot;JavaScript&quot;&gt;
&lt;!--
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
//--&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;DIV id=dek style=&quot;Z-INDEX: 1; VISIBILITY: hidden; POSITION: absolute&quot;&gt;&lt;/DIV&gt;
  &lt;SCRIPT language=&quot;&quot; type=text/javascript&gt;
&lt;!--
Xoffset=  20;    // modify these values to ...
Yoffset= 10;    // change the popup position.
var old,skn,iex=(document.all),yyy=-550;
var ns4=document.layers
var ns6=document.getElementById&amp;&amp;!document.all
var ie4=document.all
if (ns4)
skn=document.dek
else if (ns6)
skn=document.getElementById(&quot;dek&quot;).style
else if (ie4)
skn=document.all.dek.style
if(ns4)document.captureEvents(Event.MOUSEMOVE);
else{
skn.visibility=&quot;visible&quot;
skn.display=&quot;none&quot;
}
document.onmousemove=get_mouse;
function popup(msg,bak){
var content=&quot;&lt;TABLE  WIDTH=200 BORDER=0 BORDERCOLOR=#4F1919 CELLPADDING=3 CELLSPACING=0 &quot;+
&quot;BGCOLOR=&quot;+bak+&quot;&gt;&lt;TD ALIGN=center&gt;&lt;FONT COLOR=ffffff SIZE=1 face=Verdana, Arial, Helvetica, sans-serif&gt;&quot;+ msg +&quot;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TABLE&gt;&quot;;
yyy=Yoffset;
 if(ns4){skn.document.write(content);skn.document.close();skn.visibility=&quot;visible&quot;;}
 if(ns6){document.getElementById(&quot;dek&quot;).innerHTML=content;skn.display='';}
 if(ie4){document.all(&quot;dek&quot;).innerHTML=content;skn.display='';}
}
function get_mouse(e){
var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;
skn.left=x+Xoffset;
var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;
skn.top=y+yyy;
}
function kill(){
yyy=-1000;
if(ns4){skn.visibility=&quot;hidden&quot;;}
else if (ns6||ie4)
skn.display=&quot;none&quot;;
}
// --&gt;
&lt;/SCRIPT&gt;
&lt;a onmouseover=&quot;popup('.enter static, non-flash, non animated website :)','#840000')&quot; onmouseout=kill() href=&quot;index1.htm&quot; target=&quot;_self&quot;&gt;
&lt;img src=&quot;20040410-300x250-blank.jpg&quot; width=&quot;100&quot; height=&quot;50&quot; border=&quot;0&quot;&gt;&lt;/a&gt;</pre></div></div>

<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/11/moving-tooltips.gif" alt="" title="moving-tooltips" width="233" height="69" class="alignnone size-full wp-image-410" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/11/moving-tool-tip.rar'>Download Moving Tool Tip</a></span></p>
<h5>Hint Tooltip</h5>
<p>This tool tip is for hint purpose and appears by clicking at some link.</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/11/hint-tool-tip.gif" alt="" title="hint-tool-tip" width="300" height="92" class="alignnone size-full wp-image-412" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/11/hint-tooltip.rar'>Download Hint Tooltip Script</a></span></p>
<h5>Fade in out Tooltip</h5>
<p><a rel="nofollow" target="_blank" href="http://www.dynamicdrive.com/dynamicindex5/linkinfo2.htm" target="_blank">http://www.dynamicdrive.com/dynamicindex5/linkinfo2.htm</a></p>
<h5>Regular Tooltip</h5>
<p>Image tool tip is by <strong>alt</strong> tag and text tooltip is by <strong>title</strong> tag.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;#&quot; title=&quot;here is tooltip text&quot;&gt;some link&lt;/a&gt;
&lt;img src=&quot;someimage.jpg&quot; alt=&quot;tooltip text&quot;&gt;</pre></div></div>

<p><a href="http://www.webstylepress.com/javascript-essentials-part-4/">Javascript Essentials Part 4</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><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-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/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/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/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/jquery-smooth-news-rotator/" title="Create jQuery Smooth News Rotator">Create jQuery Smooth News Rotator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/javascript-essentials-part-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript Essentials Part 3</title>
		<link>http://www.webstylepress.com/javascript-essentials-part-3/</link>
		<comments>http://www.webstylepress.com/javascript-essentials-part-3/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 16:40:32 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[most wanted]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=394</guid>
		<description><![CDATA[I have selected some very very essential scripts based on javascript which are widely and mostly used in everyday website. I have been also using these for years and it seems like these will never get old and will be always wanted by web developers. I started a series of Javascript Essentials and this is [...]<p><a href="http://www.webstylepress.com/javascript-essentials-part-3/">Javascript Essentials Part 3</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I have selected some very very essential scripts based on javascript which are widely and mostly used in everyday website. I have been also using these for years and it seems like these will never get old and will be always wanted by web developers. I started a series of <a href="http://www.webstylepress.com/category/javascript/essentials/"><strong>Javascript Essentials</strong></a> and this is the third episode regarding that. Hope everybody will find these extremely useful.</p>
<p>I will answer to the following most wanted requirements in javascript here:</p>
<ul>
<li>Tab Content Script &#8211; Switching Menu Like Yahoo</li>
<li>External JS Switcher</li>
<li>Jump Menu Switching<br />
(Radio buttons select and jump menu content changes)</li>
<li>Right Click Menu-IE5.5+</li>
<li>Featureless Window &#8211; Pop up window with custom properties</li>
<li>Button Pop-Up</li>
<li>Pop-Up &#8211; Body Based</li>
<li>Pop-Up Using Head and Body of Web page</li>
<li>Pop-Up window maker</li>
<li>Pop-Up Box &#8211; On Load &#8211; Cross Browser</li>
<li>Focus (Window Focus)</li>
<li>Jump to Top Sliding Scrolling Button</li>
</ul>
<p><span id="more-394"></span></p>
<h4>Tab Content Script &#8211; switching menu like yahoo</h4>
<h6>Head CSS Section</h6>

<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: #cc00cc;">#tablist</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.1em</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #933;">12px</span> Verdana<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#tablist</span> li<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#tablist</span> li a<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span> <span style="color: #933;">0.5em</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#778</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#tablist</span> li a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#tablist</span> li a<span style="color: #3333ff;">:visited</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">navy</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#tablist</span> li a.current<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> lightyellow<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#tabcontentcontainer</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Insert Optional Height definition here to give all the content a unified height */</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.tabcontent<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span> &lt;script type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #00AA00;">&gt;</span>
//Set tab to intially be selected when <span style="color: #000000; font-weight: bold;">page</span> loads<span style="color: #00AA00;">:</span>
//<span style="color: #00AA00;">&#91;</span>which tab <span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">=</span>first tab<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> ID of tab <span style="color: #000000; font-weight: bold;">content</span> to <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">:</span>
var initialtab<span style="color: #00AA00;">=</span><span style="color: #00AA00;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;sc1&quot;</span><span style="color: #00AA00;">&#93;</span>
////////Stop editting////////////////
function cascadedstyle<span style="color: #00AA00;">&#40;</span>el<span style="color: #00AA00;">,</span> cssproperty<span style="color: #00AA00;">,</span> csspropertyNS<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
if <span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">el.currentStyle</span><span style="color: #00AA00;">&#41;</span>
return el.currentStyle<span style="color: #00AA00;">&#91;</span>cssproperty<span style="color: #00AA00;">&#93;</span>
else if <span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">window.getComputedStyle</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
var elstyle<span style="color: #00AA00;">=</span>window.getComputedStyle<span style="color: #00AA00;">&#40;</span>el<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #00AA00;">&#41;</span>
return elstyle.getPropertyValue<span style="color: #00AA00;">&#40;</span>csspropertyNS<span style="color: #00AA00;">&#41;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
var previoustab<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;&quot;</span>
function expandcontent<span style="color: #00AA00;">&#40;</span>cid<span style="color: #00AA00;">,</span> aobject<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
if <span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">document.getElementById</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
highlighttab<span style="color: #00AA00;">&#40;</span>aobject<span style="color: #00AA00;">&#41;</span>
detectSourceindex<span style="color: #00AA00;">&#40;</span>aobject<span style="color: #00AA00;">&#41;</span>
if <span style="color: #00AA00;">&#40;</span>previoustab!<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #00AA00;">&#41;</span>
document.getElementById<span style="color: #00AA00;">&#40;</span>previoustab<span style="color: #00AA00;">&#41;</span><span style="color: #6666ff;">.style</span>.<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;none&quot;</span>
document.getElementById<span style="color: #00AA00;">&#40;</span>cid<span style="color: #00AA00;">&#41;</span><span style="color: #6666ff;">.style</span>.<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;block&quot;</span>
previoustab<span style="color: #00AA00;">=</span>cid
if <span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">aobject.blur</span><span style="color: #00AA00;">&#41;</span>
aobject.blur<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#41;</span>
return false
<span style="color: #00AA00;">&#125;</span>
else
return true
<span style="color: #00AA00;">&#125;</span>
function highlighttab<span style="color: #00AA00;">&#40;</span>aobject<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
if <span style="color: #00AA00;">&#40;</span>typeof tabobjlinks<span style="color: #00AA00;">==</span><span style="color: #ff0000;">&quot;undefined&quot;</span><span style="color: #00AA00;">&#41;</span>
collecttablinks<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#41;</span>
for <span style="color: #00AA00;">&#40;</span>i<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> i&lt;tabobjlinks.length<span style="color: #00AA00;">;</span> i<span style="color: #00AA00;">++</span><span style="color: #00AA00;">&#41;</span>
tabobjlinks<span style="color: #00AA00;">&#91;</span>i<span style="color: #00AA00;">&#93;</span><span style="color: #6666ff;">.style</span>.backgroundColor<span style="color: #00AA00;">=</span>initTabcolor
var themecolor<span style="color: #00AA00;">=</span>aobject.getAttribute<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;theme&quot;</span><span style="color: #00AA00;">&#41;</span>? aobject.getAttribute<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;theme&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">:</span> initTabpostcolor
aobject<span style="color: #6666ff;">.style</span>.backgroundColor<span style="color: #00AA00;">=</span>document.getElementById<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;tabcontentcontainer&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #6666ff;">.style</span>.backgroundColor<span style="color: #00AA00;">=</span>themecolor
<span style="color: #00AA00;">&#125;</span>
function collecttablinks<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
var tabobj<span style="color: #00AA00;">=</span>document.getElementById<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;tablist&quot;</span><span style="color: #00AA00;">&#41;</span>
tabobjlinks<span style="color: #00AA00;">=</span>tabobj.getElementsByTagName<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;A&quot;</span><span style="color: #00AA00;">&#41;</span>
<span style="color: #00AA00;">&#125;</span>
function detectSourceindex<span style="color: #00AA00;">&#40;</span>aobject<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
for <span style="color: #00AA00;">&#40;</span>i<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> i&lt;tabobjlinks.length<span style="color: #00AA00;">;</span> i<span style="color: #00AA00;">++</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
if <span style="color: #00AA00;">&#40;</span>aobject<span style="color: #00AA00;">==</span>tabobjlinks<span style="color: #00AA00;">&#91;</span>i<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
tabsourceindex<span style="color: #00AA00;">=</span>i //source index of tab bar <span style="color: #993333;">relative</span> to other tabs
break
<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
function do_onload<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
var cookiename<span style="color: #00AA00;">=</span><span style="color: #00AA00;">&#40;</span>typeof persisttype!<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;undefined&quot;</span> &amp;&amp; persisttype<span style="color: #00AA00;">==</span><span style="color: #ff0000;">&quot;sitewide&quot;</span><span style="color: #00AA00;">&#41;</span>? <span style="color: #ff0000;">&quot;tabcontent&quot;</span> <span style="color: #00AA00;">:</span> window<span style="color: #6666ff;">.location</span><span style="color: #6666ff;">.pathname</span>
var cookiecheck<span style="color: #00AA00;">=</span>window<span style="color: #6666ff;">.get_cookie</span> &amp;&amp; get_cookie<span style="color: #00AA00;">&#40;</span>cookiename<span style="color: #00AA00;">&#41;</span>.indexOf<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;|&quot;</span><span style="color: #00AA00;">&#41;</span>!<span style="color: #00AA00;">=</span>-<span style="color: #cc66cc;">1</span>
collecttablinks<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#41;</span>
initTabcolor<span style="color: #00AA00;">=</span>cascadedstyle<span style="color: #00AA00;">&#40;</span>tabobjlinks<span style="color: #00AA00;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;backgroundColor&quot;</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;background-color&quot;</span><span style="color: #00AA00;">&#41;</span>
initTabpostcolor<span style="color: #00AA00;">=</span>cascadedstyle<span style="color: #00AA00;">&#40;</span>tabobjlinks<span style="color: #00AA00;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;backgroundColor&quot;</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;background-color&quot;</span><span style="color: #00AA00;">&#41;</span>
if <span style="color: #00AA00;">&#40;</span>typeof enablepersistence!<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;undefined&quot;</span> &amp;&amp; enablepersistence &amp;&amp; cookiecheck<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
var cookieparse<span style="color: #00AA00;">=</span>get_cookie<span style="color: #00AA00;">&#40;</span>cookiename<span style="color: #00AA00;">&#41;</span>.split<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;|&quot;</span><span style="color: #00AA00;">&#41;</span>
var whichtab<span style="color: #00AA00;">=</span>cookieparse<span style="color: #00AA00;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#93;</span>
var tabcontentid<span style="color: #00AA00;">=</span>cookieparse<span style="color: #00AA00;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#93;</span>
expandcontent<span style="color: #00AA00;">&#40;</span>tabcontentid<span style="color: #00AA00;">,</span> tabobjlinks<span style="color: #00AA00;">&#91;</span>whichtab<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#41;</span>
<span style="color: #00AA00;">&#125;</span>
else
expandcontent<span style="color: #00AA00;">&#40;</span>initialtab<span style="color: #00AA00;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span> tabobjlinks<span style="color: #00AA00;">&#91;</span>initialtab<span style="color: #00AA00;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#93;</span>-<span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#41;</span>
<span style="color: #00AA00;">&#125;</span>
if <span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">window.addEventListener</span><span style="color: #00AA00;">&#41;</span>
window.addEventListener<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;load&quot;</span><span style="color: #00AA00;">,</span> do_onload<span style="color: #00AA00;">,</span> false<span style="color: #00AA00;">&#41;</span>
else if <span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">window.attachEvent</span><span style="color: #00AA00;">&#41;</span>
window.attachEvent<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;onload&quot;</span><span style="color: #00AA00;">,</span> do_onload<span style="color: #00AA00;">&#41;</span>
else if <span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">document.getElementById</span><span style="color: #00AA00;">&#41;</span>
window.onload<span style="color: #00AA00;">=</span>do_onload
&lt;/script<span style="color: #00AA00;">&gt;</span></pre></div></div>

<h6>Body Section</h6>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;ul id=&quot;tablist&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://www.dynamicdrive.com&quot; class=&quot;current&quot; onClick=&quot;return expandcontent('sc1', this)&quot;&gt;Dynamic Drive&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;new.htm&quot; onClick=&quot;return expandcontent('sc2', this)&quot; theme=&quot;#EAEAFF&quot;&gt;What's New&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;hot.htm&quot; onClick=&quot;return expandcontent('sc3', this)&quot; theme=&quot;#FFE6E6&quot;&gt;What's Hot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;search.htm&quot; onClick=&quot;return expandcontent('sc4', this)&quot; theme=&quot;#DFFFDF&quot;&gt;Search&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;DIV id=&quot;tabcontentcontainer&quot;&gt;
&lt;div id=&quot;sc1&quot; class=&quot;tabcontent&quot;&gt;
Visit Dynamic Drive for free, award winning DHTML scripts for your site:&lt;br /&gt;
&lt;/div&gt;
&lt;div id=&quot;sc2&quot; class=&quot;tabcontent&quot;&gt;
Visit our &lt;a href=&quot;http://www.dynamicdrive.com/new.htm&quot;&gt;What's New&lt;/a&gt; section to see recently added scripts to our archive.
&lt;/div&gt;
&lt;div id=&quot;sc3&quot; class=&quot;tabcontent&quot;&gt;
Visit our &lt;a href=&quot;http://www.dynamicdrive.com/hot.htm&quot;&gt;Hot&lt;/a&gt; section for a list of DD scripts that are popular to the visitors.
&lt;/div&gt;
&lt;div id=&quot;sc4&quot; class=&quot;tabcontent&quot;&gt;
&lt;form action=&quot;http://www.google.com/search&quot; method=&quot;get&quot; onSubmit=&quot;this.q.value='site:www.dynamicdrive.com '+this.qfront.value&quot;&gt;
&lt;p&gt;Search Dynamic Drive:&lt;br /&gt;
&lt;input name=&quot;q&quot; type=&quot;hidden&quot; /&gt;
&lt;input name=&quot;qfront&quot; type=&quot;text&quot; style=&quot;width: 180px&quot; /&gt; &lt;input type=&quot;submit&quot; value=&quot;Search&quot; /&gt;&lt;/p&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/DIV&gt;</pre></div></div>

<p><a rel="nofollow" target="_blank" href="http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm" target="_blank">Script Home Page</a></p>
<p><a href="http://www.webstylepress.com/javascript-essentials-part-3/">Javascript Essentials Part 3</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><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-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/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/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/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/jquery-smooth-news-rotator/" title="Create jQuery Smooth News Rotator">Create jQuery Smooth News Rotator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/javascript-essentials-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Essentials Part 2</title>
		<link>http://www.webstylepress.com/javascript-essentials-part-2/</link>
		<comments>http://www.webstylepress.com/javascript-essentials-part-2/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 08:45:34 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[most wanted]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=390</guid>
		<description><![CDATA[In Javascript Essential Part-2 we will cover following tasks. Page Fit to Screen No Right Click (no alert) No Right Click with alert No Right Click on Images Disable Image Toolbar script Count Down (Live) Count Up (Live) FF1+ IE5+ Opr7+ Scroll bar color &#8211; 16-A- Left Scroll bar No Scroll bar Auto Page Reloaded-Auto [...]<p><a href="http://www.webstylepress.com/javascript-essentials-part-2/">Javascript Essentials Part 2</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>In Javascript Essential Part-2 we will cover following tasks.</p>
<ul>
<li><strong>Page Fit to Screen</strong></li>
<li><strong>No Right Click (no alert)</strong></li>
<li><strong>No Right Click with alert</strong></li>
<li><strong>No Right Click on Images</strong></li>
<li><strong>Disable Image Toolbar script</strong></li>
<li><strong>Count Down (Live)</strong></li>
<li><strong>Count Up (Live) FF1+ IE5+ Opr7+</strong></li>
<li><strong>Scroll bar color &#8211; 16-A- Left Scroll bar</strong></li>
<li><strong>No Scroll bar</strong></li>
<li>Auto Page Reloaded-Auto Refresh &#8211; Meta tag based &#8211; Button based -Live Refresh with countdown</strong></li>
<li><strong>Dynamically Re sized Iframe &#8211; Auto Re sizable Iframe (IE5+/NS6)</strong></li>
<li><strong>Switch content -Tabbed content &#8211; FF1+ IE5+ Opr7+</strong></li>
<li><strong>Special content switching with div</strong></li>
<li><strong>Switch content 2 &#8211; FF1+ IE5+</strong></li>
</ul>
<p><span id="more-390"></span></p>
<h4>Page Fit to Screen</h4>
<p>Add this script in the head section of page to switch the page position to fit the screen.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;JavaScript&quot;</span><span style="color: #339933;">&gt;</span>
self.<span style="color: #660066;">moveTo</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
self.<span style="color: #660066;">resizeTo</span><span style="color: #009900;">&#40;</span>screen.<span style="color: #660066;">availWidth</span><span style="color: #339933;">,</span>screen.<span style="color: #660066;">availHeight</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p><a href="http://www.webstylepress.com/javascript-essentials-part-2/">Javascript Essentials Part 2</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><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-1/" title="Javascript Essentials Part 1">Javascript Essentials Part 1</a></li><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/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/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/jquery-smooth-news-rotator/" title="Create jQuery Smooth News Rotator">Create jQuery Smooth News Rotator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/javascript-essentials-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.707 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-12-26 17:57:13 -->
<!-- Compression = gzip -->
