<?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; Essentials</title>
	<atom:link href="http://www.webstylepress.com/category/javascript/essentials/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>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>
		<item>
		<title>Javascript Essentials Part 1</title>
		<link>http://www.webstylepress.com/javascript-essentials-part-1/</link>
		<comments>http://www.webstylepress.com/javascript-essentials-part-1/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 19:46:38 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[most wanted]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=386</guid>
		<description><![CDATA[This section contains following solutions in JavaScript. Make Home Page Script (text based, image based) Add to Favorites Script (Cross Browser, By Image, By text) (Simple, Cross Browser support, Onload add to favorites) Switch to Full Screen Last Date of Page Updated Print Page (IE, Cross Browser) Save page from printing (Printing Security Issue) Website [...]<p><a href="http://www.webstylepress.com/javascript-essentials-part-1/">Javascript Essentials Part 1</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 section contains following solutions in JavaScript.</p>
<ul>
<li><strong>Make Home Page Script (text based, image based)</strong></li>
<li><strong>Add to Favorites Script (Cross Browser, By Image, By text)</strong><br />
(Simple, Cross Browser support, Onload add to favorites)</li>
<li><strong>Switch to Full Screen</strong></li>
<li><strong>Last Date of Page Updated</strong></li>
<li><strong>Print Page (IE, Cross Browser)</strong></li>
<li><strong>Save page from printing (Printing Security Issue)</strong></li>
<li><strong>Website Launched Since</strong></li>
<li><strong>Close window</strong><br />
(With Prompt, Without Prompt, Self close with time (5000 for 5 sec.) Auto close with prompt, Self close with time (3000 for 3sec.) Auto close without prompt)</li>
<li><strong>Open window on browser close &#8211; Open window on close window</strong></li>
<li><strong>Back Button (history.back)</strong><br />
(Text based, Image based, History back and forward buttons)</li>
</ul>
<p><span id="more-386"></span></p>
<h4>Make Home Page Script</h4>
<h6>Text Based Script</h6>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">if</span> IE<span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>A HREF<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;#&quot;</span> <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;downlinks&quot;</span>
onClick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.webstylepress.com');&quot;</span><span style="color: #339933;">&gt;</span>
Make Webstylepress Homepage
<span style="color: #339933;">&lt;/</span>A<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>endif<span style="color: #009900;">&#93;</span><span style="color: #339933;">--&gt;</span></pre></div></div>

<h6>Image Based Script</h6>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;#&quot;</span> onClick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webstylepress.com');&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;images/homepage.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Make WebStylePress Homepage&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Image-HomePage&quot;</span> width<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;&quot;</span> height<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;&quot;</span> border<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<p><a href="http://www.webstylepress.com/javascript-essentials-part-1/">Javascript Essentials Part 1</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-2/" title="Javascript Essentials Part 2">Javascript Essentials Part 2</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/protect-your-wordpress-blog-from-hotlinking/" title="Protect Your WordPress Blog From Hotlinking">Protect Your WordPress Blog From Hotlinking</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/javascript-essentials-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

