<?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>Encodez Blog &#187; Javascript</title>
	<atom:link href="http://encodez.com/blog/category/webdevelopement/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://encodez.com/blog</link>
	<description>Computer language design is just like a stroll in the park. Jurassic Park, that is. — Larry Wall</description>
	<lastBuildDate>Thu, 22 Jul 2010 05:34:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Adding link to Banner Image (Multi-transition Banner)</title>
		<link>http://encodez.com/blog/2010/02/adding-link-to-banner-image-multi-transition-banner/</link>
		<comments>http://encodez.com/blog/2010/02/adding-link-to-banner-image-multi-transition-banner/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 09:55:02 +0000</pubDate>
		<dc:creator>Muneer Shaheed</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Webdevelopement]]></category>

		<guid isPermaLink="false">http://encodez.com/blog/?p=319</guid>
		<description><![CDATA[I received comments and email from many of our visitor requesting &#8220;How to make the large image as clickable link?&#8221; under the post Javascript Multitransition Banner released. I am writing this post in response to them. To create a link on the large image of the banner,, we need to alter the function encTransformBanner = [...]]]></description>
			<content:encoded><![CDATA[<p>I received comments and email from many of our visitor requesting &#8220;How to make the large image as clickable link?&#8221; under the post <a href="http://www.encodez.com/blog/2009/06/javascript-multitransition-banner/" title="Javascript Multitransition Banner released">Javascript Multitransition Banner released</a>. I am writing this post in response to them.</p>
<p>To create a link on the large image of the banner,, we need to alter the function <strong>encTransformBanner = function(ids)</strong><br />
Add the following code at the end of the function</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cursor&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;pointer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>click<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>		
		window<span style="color: #339933;">.</span>location<span style="color: #339933;">.</span>href <span style="color: #339933;">=</span> encBannerTexts<span style="color: #009900;">&#91;</span>ids<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>The final code will looks like following for the function.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">encTransformBanner <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>ids<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    encCurrentBanner <span style="color: #339933;">=</span> ids<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> currentBg <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainerCover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;background-image&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;background-image&quot;</span><span style="color: #339933;">,</span> currentBg<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">var</span> cssObj <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;opacity&quot;</span><span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;0.1&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;background-repeat&quot;</span><span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;no-repeat&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;background-image&quot;</span><span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;url(&quot;</span> <span style="color: #339933;">+</span> encImg <span style="color: #009900;">&#91;</span>ids<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>src <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;)&quot;</span><span style="color: #009900;">&#125;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainerCover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span>cssObj<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>encTransitionType <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;slide&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>     
        $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainerCover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;background-position&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;-50px 0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>                
        $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainerCover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>stop<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>animate<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;(0 0)&quot;</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #cc66cc;">600</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>    
    <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>encTransitionType <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;slideDown&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>      
        $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainerCover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;background-position&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;0 -50px&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>                
        $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainerCover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>stop<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>animate<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;(0 0)&quot;</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #cc66cc;">600</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span>
    <span style="color: #009900;">&#123;</span>      
        $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainerCover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>stop<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>animate<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #cc66cc;">1000</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cursor&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;pointer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;div#bannerContainer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>click<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>		
		window<span style="color: #339933;">.</span>location<span style="color: #339933;">.</span>href <span style="color: #339933;">=</span> encBannerTexts<span style="color: #009900;">&#91;</span>ids<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Cool. Thats it. <img src='http://encodez.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://encodez.com/blog/2010/02/adding-link-to-banner-image-multi-transition-banner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript Multitransition Banner released</title>
		<link>http://encodez.com/blog/2009/06/javascript-multitransition-banner/</link>
		<comments>http://encodez.com/blog/2009/06/javascript-multitransition-banner/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 09:39:03 +0000</pubDate>
		<dc:creator>Muneer Shaheed</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Webdevelopement]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[banner]]></category>
		<category><![CDATA[download]]></category>

		<guid isPermaLink="false">http://www.encodez.com/blog/?p=164</guid>
		<description><![CDATA[It is pleasure for me to share the codes that I have written for a banner. This is completely using Javascript/<a title="jQuery" href="http://jquery.com/" target="_blank">jQuery</a> and CSS. Easy to customize and easy to install. Actually I was adopting the design from <a href="http://www.cisco.com/" target="_blank">CISCO</a> and <a href="http://www.ibm.com/us/en/" target="_blank">IBM</a> websites. I am not much good in Adobe Flash animation. It is the main reason to build this in Javascript. LOL.]]></description>
			<content:encoded><![CDATA[<p>It is pleasure for me to share the codes that I have written for a banner. This is completely using Javascript/<a title="jQuery" href="http://jquery.com/" target="_blank">jQuery</a> and CSS. Easy to customize and easy to install. Actually I was adopting the design from <a href="http://www.cisco.com/" target="_blank">CISCO</a> and <a href="http://www.ibm.com/us/en/" target="_blank">IBM</a> websites. I am not much good in Adobe Flash animation. It is the main reason to build this in Javascript. LOL.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6032126876218296";
google_ad_slot = "8998015769";
google_ad_width = 468;
google_ad_height = 60;
google_cpa_choice = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br />
.</p>
<p><strong>Highlits:</strong></p>
<ul>
<li>100% pure Javascript/jQuery</li>
<li>Fast Loading</li>
<li>Auto animate banner</li>
<li>Easy to use link buttons</li>
<li>Enable or disable any texts</li>
<li>Easy to integrate with PHP, ASP.NET and any other servers</li>
</ul>
<p><strong>Demo</strong></p>
<p>Click <a title="Demonstration" href="http://encodez.com/demos/multi-transition-banner/" target="_blank"><strong>here </strong></a>to see a demo</p>
<p><strong>Download</strong></p>
<p><a href="http://www.encodez.com/downloads/free-multi-transition_banner.zip"><img class="alignleft size-full wp-image-175" title="1245317616_download" src="http://www.encodez.com/blog/wp-content/uploads/2009/06/1245317616_download.png" alt="" width="16" height="16" /></a> <a href="http://www.encodez.com/downloads/free-multi-transition_banner.zip">Link 1</a></p>
<p><strong>Screenshot :</strong></p>
<div id="attachment_169" class="wp-caption alignnone" style="width: 415px"><a href="http://encodez.com/demos/multi-transition-banner/"><img class="size-full wp-image-169" title="multi-transition-banner-free-1" src="http://www.encodez.com/blog/wp-content/uploads/2009/06/multi-transition-banner-free-1.jpg" alt="Screenshot 1" width="405" height="331" /></a><p class="wp-caption-text">Screenshot 1</p></div>
<p>.</p>
<div id="attachment_171" class="wp-caption alignnone" style="width: 414px"><a href="http://encodez.com/demos/multi-transition-banner/"><img class="size-full wp-image-171" title="multi-transition-banner-free-21" src="http://www.encodez.com/blog/wp-content/uploads/2009/06/multi-transition-banner-free-21.jpg" alt="Screenshot 2" width="404" height="393" /></a><p class="wp-caption-text">Screenshot 2</p></div>
<p>.</p>
<div id="attachment_172" class="wp-caption alignnone" style="width: 410px"><a href="http://encodez.com/demos/multi-transition-banner/"><img class="size-full wp-image-172" title="multi-transition-banner-free-3" src="http://www.encodez.com/blog/wp-content/uploads/2009/06/multi-transition-banner-free-3.jpg" alt="Screenshot 3" width="400" height="163" /></a><p class="wp-caption-text">Screenshot 3</p></div>
<p><strong>Installation:</strong></p>
<p>Installation instruction found in source file.</p>
<h3><span style="color: #008000;">This is not 100% complete. Please give me your feedbacks. I will make any changes for the improvement.</span></h3>
<ul>
<li><strong>Use it for free &amp; Please give me a link back if you like.</strong></li>
</ul>
<h3><span style="color: #ff0000;">Bugs &amp; Fixes</span></h3>
<ul>
<li><a title="Dropdown Menu Issue" href="http://www.encodez.com/blog/index.php/2009/06/javascript-multitransition-banner/#comment-2247" target="_self">Dropdown Menu problem</a></li>
<li><a title="Dropdown Menu Issue" href="http://encodez.com/blog/2010/02/adding-link-to-banner-image-multi-transition-banner/" target="_self">Adding link to Large image in Banner</a></li>
</ul>
<p>.</p>
]]></content:encoded>
			<wfw:commentRss>http://encodez.com/blog/2009/06/javascript-multitransition-banner/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>Broblem! Flash object overlapping menus and layers in Firefox and IE</title>
		<link>http://encodez.com/blog/2009/02/solve-flash-object-overlapping-menus-and-layers-in-firefox-and-ie/</link>
		<comments>http://encodez.com/blog/2009/02/solve-flash-object-overlapping-menus-and-layers-in-firefox-and-ie/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 07:38:50 +0000</pubDate>
		<dc:creator>Muneer Shaheed</dc:creator>
				<category><![CDATA[Free Scripts]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Webdevelopement]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash overlap]]></category>

		<guid isPermaLink="false">http://www.encodez.com/blog/?p=119</guid>
		<description><![CDATA[Hi all, hopefully many of the designer will face this problem. Most possible case is dropdown menu and flash banner. Both always come near by.

To overcome this issue, there is a possible way by using the code &#60;object&#62; and &#60;embed&#62; simply. I have illustrated the code below.]]></description>
			<content:encoded><![CDATA[<p>Hi all, hopefully many of the designer will face this problem. Most possible case is dropdown menu and flash banner. Both always come near by.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6032126876218296";
google_ad_slot = "8998015769";
google_ad_width = 468;
google_ad_height = 60;
google_cpa_choice = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>To overcome this issue, there is a possible way by using the code &lt;object&gt; and &lt;embed&gt; simply. I have illustrated the code below.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">object</span> <span style="color: #000066;">classid</span><span style="color: #66cc66;">=</span>clsid:D27CDB6E-AE6D-11cf-96B8-<span style="color: #cc66cc;">444553540000</span> <span style="color: #000066;">codebase</span><span style="color: #66cc66;">=</span>http:<span style="color: #66cc66;">//</span>download.macromedia.com<span style="color: #66cc66;">/</span>pub<span style="color: #66cc66;">/</span>shockwave<span style="color: #66cc66;">/</span>cabs<span style="color: #66cc66;">/</span>flash<span style="color: #66cc66;">/</span>swflash.cab#version<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span> movie<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myEncodez.swf&quot;</span> quality<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> wmode<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;transparent&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;150&quot;</span> <span style="color: #000066;">version</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;8,0,0,0&quot;</span> <span style="color: #000066;">bgcolor</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#ffffff&quot;</span> &gt;</span>
&nbsp;
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span>movie <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myEncodez.swf&quot;</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span>quality <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;high&quot;</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span>wmode <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;transparent&quot;</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #000066;">width</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;600&quot;</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #000066;">height</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;150&quot;</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #000066;">version</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;8,0,0,0&quot;</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #000066;">bgcolor</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#ffffff&quot;</span>&gt;</span>
&nbsp;
   <span style="color: #009900;">&lt;embed <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myEncodez.swf&quot;</span> pluginspage<span style="color: #66cc66;">=</span>http:<span style="color: #66cc66;">//</span>www.macromedia.com<span style="color: #66cc66;">/</span>shockwave<span style="color: #66cc66;">/</span>download<span style="color: #66cc66;">/</span>index.cgi?P1_Prod_Version<span style="color: #66cc66;">=</span>ShockwaveFlash <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span>application<span style="color: #66cc66;">/</span>x-shockwave-flash movie<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myEncodez.swf&quot;</span> quality<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> wmode<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;transparent&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;150&quot;</span> <span style="color: #000066;">version</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;8,0,0,0&quot;</span> <span style="color: #000066;">bgcolor</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#ffffff&quot;</span> &gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>embed&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">object</span>&gt;</span></pre></td></tr></table></div>

<p>Also this is a solution for the Microsoft&#8217;s recent security update which was annoying developers and users who faced a message saying &#8220;<strong>Click to activate and use this control</strong>&#8221; in all &lt;embed&gt; and &lt;object&gt; s. More info about this security update can be found in <a href="http://msdn.microsoft.com/en-us/library/ms537508.aspx" target="_blank">here</a></p>
<p>In contrast, <a href="http://www.milonic.com/" target="_blank">Milonic </a>has released a Javascript function which does the same as above &lt;object&gt; &amp; &lt;embed&gt; tags. The code can be <a href="http://www.milonic.com/insert_active_flash.js" target="_blank">downloaded from here</a>. It is very simple to use the code rather to write full &lt;embed&gt; tag in the HTML file. Thanks to <strong>Milonic Solutions</strong>.</p>
<p><strong>How to use the Milonic&#8217;s Insert Active Flash Javascript file (insert_active_flash.js).</strong></p>
<p><strong>1. </strong><a href="http://www.milonic.com/insert_active_flash.js" target="_blank">Download </a>the file and make a reference at the header part of HTML file.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;insert_active_flash.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p><strong>2.</strong> Create a Layer using &lt;div&gt; and assign an id for that</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myFlashDiv&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p><strong>3.</strong> Use the following code withing the &#8220;myFlashDiv&#8221; layer which will be later replaced by insert_active_flash script.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myFlashDiv&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
    myFlashObject=new Object
     myFlashObject.movie=&quot;flashfile.swf&quot;
     myFlashObject.quality=&quot;high&quot;
     myFlashObject.wmode=&quot;transparent&quot;
     myFlashObject.width=850
     myFlashObject.height=550
     myFlashObject.version=&quot;5,0,0,0&quot;
&nbsp;
     commitFlashObject(myFlashObject, &quot;myFlashDiv&quot;)
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>This is it. It is simple right?</p>
<p>When later the flash function execute, it will dynamically replace the above javascript code in to &lt;object&gt; code and will embed the movie using classic method. No worry for us!</p>
]]></content:encoded>
			<wfw:commentRss>http://encodez.com/blog/2009/02/solve-flash-object-overlapping-menus-and-layers-in-firefox-and-ie/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Javascript Smooth Scroller</title>
		<link>http://encodez.com/blog/2009/01/javascript-smooth-scroller/</link>
		<comments>http://encodez.com/blog/2009/01/javascript-smooth-scroller/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 10:12:51 +0000</pubDate>
		<dc:creator>Muneer Shaheed</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Free Scripts]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Webdevelopement]]></category>
		<category><![CDATA[scroller]]></category>

		<guid isPermaLink="false">http://www.encodez.com/blog/?p=92</guid>
		<description><![CDATA[I am happy to share the Javascript Scroller which I created for one of my project. Javascript Scroller has been built up with combination of CSS and Javascript. Examples : Sample 1 Sample 2 Download Link Link 1 &#8211; Link 2 Editing the width and height of Scroller It is just simple to edit the [...]]]></description>
			<content:encoded><![CDATA[<p>I am happy to share the Javascript Scroller which I created for one of my project. Javascript Scroller has been built up with combination of CSS and Javascript.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6032126876218296";
google_ad_slot = "8998015769";
google_ad_width = 468;
google_ad_height = 60;
google_cpa_choice = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<table border="0">
<tbody>
<tr>
<td align="left" valign="top">
<div id="attachment_94" class="wp-caption alignnone" style="width: 209px"><img class="size-full wp-image-94" title="Javascript Smooth Scroller" src="http://www.encodez.com/blog/wp-content/uploads/2009/01/scroller1.jpg" alt="Scroller Preview" width="199" height="582" /><br />
<p class="wp-caption-text">Scroller Preview 1</p></div></td>
<td align="left" valign="top">
<p><div id="attachment_96" class="wp-caption alignnone" style="width: 314px"><img class="size-full wp-image-96" title="Javascript Smooth Scroller" src="http://www.encodez.com/blog/wp-content/uploads/2009/01/news-image-2.jpg" alt="Preview" width="304" height="352" /><p class="wp-caption-text">Scroller Preview 2</p></div></td>
</tr>
</tbody>
</table>
<h3>Examples :</h3>
<ol>
<li><a title="Javascript Smooth Scroller - Sample 1" href="http://encodez.com/demos/Javascript_smooth_scroller_i.html" target="_blank">Sample 1</a></li>
<li><a title="Javascript Smooth Scroller - Sample 2" href="http://encodez.com/demos/Javascript_smooth_scroller_ii.html" target="_blank">Sample 2</a></li>
</ol>
<h3>Download Link</h3>
<p><a title="Download Javascript Smooth Scroller" href="http://www.encodez.com/downloads/javascript_smooth_scroller/javascript smooth scroller.zip" target="_blank"><strong>Link 1</strong></a> &#8211;   <strong>Link 2</strong></p>
<p><div id="attachment_103" class="wp-caption aligncenter" style="width: 360px"><img class="size-full wp-image-103" title="Compatibility with almost all browsers" src="http://www.encodez.com/blog/wp-content/uploads/2009/01/all-browser-compatible-smoo.gif" alt="Browser compatibility" width="350" height="200" /><p class="wp-caption-text">Browser compatibility</p></div>
<h3>Editing the width and height of Scroller</h3>
<p>It is just simple to edit the size or any other style of Smooth Scroller.</p>
<p><strong>CSS to change</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#encFilmMain</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;">160px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* full width */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#encFilm</span>
<span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* height */</span>
   <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#encFilmInner</span>
<span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#efefef</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">290px</span><span style="color: #00AA00;">;</span>  <span style="color: #808080; font-style: italic;">/* height */</span>
   <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>Javascript to change</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> scrollAmount<span style="color: #339933;">=</span><span style="color: #CC0000;">240</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">// scroll amount</span>
<span style="color: #003366; font-weight: bold;">var</span> barHeight<span style="color: #339933;">=</span><span style="color: #CC0000;">290</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//height</span></pre></td></tr></table></div>

<p>If you like or you have any doubts, please do not forget to leave your comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://encodez.com/blog/2009/01/javascript-smooth-scroller/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>
