<?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>BlueJavax</title>
	<atom:link href="http://www.bluejavax.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bluejavax.com</link>
	<description>Coding Is Fun</description>
	<lastBuildDate>Thu, 26 Aug 2010 19:09:08 +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>Dynamic Thumbnail on the fly.</title>
		<link>http://www.bluejavax.com/archives/388</link>
		<comments>http://www.bluejavax.com/archives/388#comments</comments>
		<pubDate>Thu, 26 Aug 2010 19:07:05 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Demo]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=388</guid>
		<description><![CDATA[Hello there people, Its been a long time I have not posted anything. Did you ever thought of why to create thumbnail and saving them to server, or even you databases. keeping you mind throuh the complete script that uploads and then generates a thumbnail, Then you save the path to database.. aaaah&#8230; Well i [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.bluejavax.com/wp-content/uploads/2010/08/localhost-2010-8-26-217.png"><img class="alignleft size-medium wp-image-390" title="localhost 2010-8-26 21:7" src="http://www.bluejavax.com/wp-content/uploads/2010/08/localhost-2010-8-26-217-300x153.png" alt="" width="300" height="153" /></a>Hello there people, Its been a long time I have not posted anything.</p>
<p>Did you ever thought of why to create thumbnail and saving them to server, or even you databases. keeping you mind throuh the complete script that uploads and then generates a thumbnail, Then you save the path to database.. aaaah&#8230; Well i was tired. after searching internet i got a script.. Thank god.</p>
<p>Ok here is the script that i have been using for a while now. The best part is, that it created an image in buffer only. I mean it does not save an image to a folder. its just resizes your image temporarily where as you actual image remains same.</p>
<p>here is a</p>
<h2><a title="fly Thumbz" href="http://demo.bluejavax.com/fly_thumbz" target="_blank">demo</a>.</h2>
<p>The code goes here</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpFunction">set_time_limit</span><span class="phpOperator">(</span><span class="htmlText">10000</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpComment">//--- need to<span class="phpKeyword"> do </span><span class="htmlText">this</span><span class="phpKeyword"> for </span><span class="htmlText">larger images in</span><span class="phpKeyword"> case </span><span class="htmlText">the server stops</span><span class="phpOperator">.</span>.
</span>
<span class="phpFunction">error_reporting</span><span class="phpOperator">(</span><span class="phpConstant">E_ALL</span> ^ <span class="phpConstant">E_NOTICE</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpKeyword"><span class="phpKeyword">
include </span></span><span class="phpString">'resize.image.<span class="phpKeyword">class<span class="phpOperator">.</span></span>php'</span><span class="phpText">;</span> <span class="phpComment">//----<span class="phpKeyword"><span class="phpKeyword"> include </span></span><span class="htmlText">the </span><span class="phpKeyword">class </span><span class="phpFunction">file</span>
</span>
$resize_image <span class="phpOperator">=</span><span class="phpKeyword"> new </span><span class="htmlText">Resize_Image</span><span class="phpText">;</span> <span class="phpComment">//---- <span class="phpKeyword">class </span>instance
</span>
<span class="phpComment">// Folder where the <span class="phpOperator">(</span><span class="htmlText">original</span><span class="phpOperator">)</span><span class="htmlText"> images are located with trailing slash at the </span><span class="phpFunction">end</span>
</span>$images_dir <span class="phpOperator">=</span> <span class="phpString">''</span><span class="phpText">;</span> <span class="phpComment">// you can leave it empty<span class="phpOperator">.</span><span class="htmlText"> Only</span><span class="phpKeyword"> if </span><span class="htmlText">you are providing the original image with its path </span><span class="phpOperator">(</span><span class="htmlText">see next syntax</span><span class="phpOperator">)</span>. Its good to<span class="phpKeyword"> use </span><span class="htmlText">when you have images from different locations and you are using this </span><span class="phpFunction">file</span><span class="htmlText"> only</span><span class="phpOperator">.</span>
</span>
<span class="phpComment">// Image to resize
</span>$image <span class="phpOperator">=</span> <span class="phpScriptVar">$_GET</span><span class="phpOperator">[</span><span class="phpString">'image'</span><span class="phpOperator">]</span><span class="phpText">;</span> <span class="phpComment">// This is the image name.<span class="phpOperator">.</span>. You can provide path with it.
</span><span class="phpComment">//<span class="phpFunction">echo</span> $image<span class="phpText">;</span>
</span><span class="phpFunction">list</span><span class="phpOperator">(</span>$width, $height, $type, $attr<span class="phpOperator">)</span> <span class="phpOperator">=</span> <span class="phpFunction">getimagesize</span><span class="phpOperator">(</span>$image<span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpComment">//--- get dimensions of the oirginal image
</span><span class="phpComment">/* Some validation */</span>
<span class="phpKeyword">
if<span class="phpOperator">(</span></span><span class="phpOperator">!</span>@<span class="phpFunction">file_exists</span><span class="phpOperator">(</span>$images_dir.$image<span class="phpOperator">)</span><span class="phpOperator">)</span>
<span class="phpOperator">{</span>
<span class="phpFunction">exit</span><span class="phpOperator">(</span><span class="phpString">'The requested image does not exist.'</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpComment">// Get the<span class="phpKeyword"> new </span>with &#038;amp<span class="phpText">;</span> height --<span class="phpOperator">[</span>The parameter given in html with image name.<span class="phpOperator">.</span>. will be covered below<span class="phpOperator">]</span>
</span><span class="phpComment">//<span class="phpFunction">echo</span> $width <span class="phpOperator">.</span><span class="phpString">" <span class="phpOperator">|</span> "</span>. $height;
</span>$new_width <span class="phpOperator">=</span> <span class="phpVarType"><span class="phpOperator">(</span><span class="htmlText">int</span><span class="phpOperator">)</span></span><span class="phpScriptVar">$_GET</span><span class="phpOperator">[</span><span class="phpString">'new_width'</span><span class="phpOperator">]</span><span class="phpText">;</span>
$new_height <span class="phpOperator">=</span> <span class="phpVarType"><span class="phpOperator">(</span><span class="htmlText">int</span><span class="phpOperator">)</span></span><span class="phpScriptVar">$_GET</span><span class="phpOperator">[</span><span class="phpString">'new_height'</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpComment">// --------the code below makes a decision on the basis of priority<span class="phpOperator">.</span>
</span>
<span class="phpKeyword">
if<span class="phpOperator">(</span></span>$width<span class="phpOperator">&gt;</span>$height<span class="phpOperator">)</span> <span class="phpComment">//-<span class="phpKeyword">-if </span>width is greater than the image you be reduced first, by with specified <span class="phpOperator">(</span><span class="htmlText">with aspect ratio</span><span class="phpOperator">)</span>.
</span><span class="phpOperator">{</span>
$resize_image<span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">new_width </span><span class="phpOperator">=</span> $new_width<span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
else </span><span class="phpComment">//--any other contition like height is greater or both are of same ratio will be resized <span class="phpOperator">(</span><span class="htmlText">with aspect ratio</span><span class="phpOperator">)</span>.
</span><span class="phpOperator">{</span>
$resize_image<span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">new_height </span><span class="phpOperator">=</span> $new_height;
<span class="phpOperator">}</span>
<span class="phpComment">//--the above conditions can be changed<span class="phpKeyword"> as </span><span class="htmlText">per user need</span><span class="phpOperator">.</span>.<span class="phpOperator">.</span>.
</span>
$resize_image<span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">image_to_resize </span><span class="phpOperator">=</span> $images_dir.$image<span class="phpText">;</span> <span class="phpComment">// Full Path to the <span class="phpFunction">file</span>
</span>
$resize_image<span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">ratio </span><span class="phpOperator">=</span><span class="phpKeyword"> true<span class="phpText">;</span></span> <span class="phpComment">// Keep aspect ratio
</span><span class="phpComment"><span class="phpComment">//$image-</span><span class="phpOperator">&gt;</span><span class="htmlText">save_folder </span><span class="phpOperator">=</span> <span class="phpString">"thumbs/"</span><span class="phpText">;</span>
</span>$process <span class="phpOperator">=</span> $resize_image<span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">resize</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpComment">// Output image
</span><span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>In the above code you will see that we have not saved thumbnail to any folder. So its just gives output to browser.</p>
<p>Here is how you will you use it</p>
<pre class="html">
<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;resize_image.php?image=products/my_image.jpg<span class="htmlSpecialChar">&amp;amp;</span>new_width=150<span class="htmlSpecialChar">&amp;amp;</span>new_height=100&quot;</span> &gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--------------------
in the above code you can see that we have passed 3 parameters
1) the image with relative path....
2) New desired width
3) New desired height
--&gt;</span></span>
</pre>
<p>Thats all, you are done.</p>
<h2><a href="http://demo.bluejavax.com/fly_thumbz" target="_blank">Demo</a> | <a href="http://demo.bluejavax.com/fly_thumb.zip">Files</a></h2>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/388/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail/Facebook like Chat With CodeIgniter</title>
		<link>http://www.bluejavax.com/archives/379</link>
		<comments>http://www.bluejavax.com/archives/379#comments</comments>
		<pubDate>Mon, 05 Jul 2010 17:23:30 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[codeigniter]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=379</guid>
		<description><![CDATA[Hey to all my CodeIgniter friends. SO you all have been waiting for a Gmail and Facebook like chat  to be implemented in Codeigniter. Well this is an extended version of this chat. Download the files from the link above and do the following things. Before doing the setup below. Please configure your database settings [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.bluejavax.com/wp-content/uploads/2010/07/chat.png"><img class="alignleft size-medium wp-image-380" title="chat" src="http://www.bluejavax.com/wp-content/uploads/2010/07/chat-300x238.png" alt="" width="300" height="238" /></a>Hey to all my CodeIgniter friends. SO you all have been waiting for a Gmail and Facebook like chat  to be implemented in Codeigniter.<span id="more-379"></span> Well this is an extended version of</p>
<h2><a href="http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/http://" target="_blank">this chat</a>.</h2>
<p>Download the files from the link above and do the following things.</p>
<p>Before doing the setup below. Please configure your database settings first.</p>
<p>The fact is that you need to to change the chat.js file</p>
<pre class="php">
<span class="phpKeyword">
var </span>baseUrl <span class="phpOperator">=</span> <span class="phpString">"http<span class="phpOperator">:</span><span class="phpComment">//yourURl<span class="phpOperator">.</span>com/chatfolder"</span><span class="phpText">;</span>
</span>
<span class="phpComment">// or your ip address incase you are using over intranet.
</span>
</pre>
<p>Change all your URls in th script from</p>
<pre class="php">
url<span class="phpOperator">:</span> <span class="phpString">"chat.php<span class="phpOperator">?</span>action<span class="phpOperator">=</span>chatheartbeat"</span>,
</pre>
<p>to</p>
<pre class="php">
url<span class="phpOperator">:</span> baseUrl<span class="phpOperator">+</span><span class="phpString">"chat.php<span class="phpOperator">?</span>action<span class="phpOperator">=</span>chatheartbeat"</span>,
</pre>
<p>open samplea.php</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpFunction">session_start</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
$me <span class="phpOperator">=</span> <span class="phpScriptVar">$_GET</span><span class="phpOperator">[</span><span class="phpString">'me'</span><span class="phpOperator">]</span><span class="phpText">;</span>
$you<span class="phpOperator">=</span> <span class="phpScriptVar">$_GET</span><span class="phpOperator">[</span><span class="phpString">'u'</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpScriptVar">$_SESSION</span><span class="phpOperator">[</span><span class="phpString">'username'</span><span class="phpOperator">]</span> <span class="phpOperator">=</span> $me<span class="phpText">;</span> <span class="phpComment">// Must be already set
</span><span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot; &gt;</span>
<span class="htmlOtherTag">&lt;html&gt;</span>
<span class="htmlOtherTag">&lt;head&gt;</span>
<span class="htmlOtherTag">&lt;title&gt;</span>Sample Chat Application<span class="htmlOtherTag">&lt;/title&gt;</span>
<span class="htmlStyleTag">&lt;style&gt;</span>
<span class="cssSelector">body {</span>
<span class="cssProperty">background-color</span><span class="cssRest">:</span><span class="cssValue"> #eeeeee</span><span class="cssRest">;</span>
padding:0;
<span class="cssProperty">margin</span><span class="cssRest">:</span><span class="cssValue">0 auto</span><span class="cssRest">;</span>
<span class="cssProperty">font-family</span><span class="cssRest">:</span><span class="cssValue"><span class="cssString">"Lucida Grande"</span>,Verdana,Arial,<span class="cssString">"Bitstream Vera Sans"</span>,sans-serif</span><span class="cssRest">;</span>
<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue">11px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
<span class="htmlStyleTag">&lt;/style&gt;</span>
<span class="htmlOtherTag">&lt;link type=<span class="htmlAttributeValue">&quot;text/css&quot;</span> rel=<span class="htmlAttributeValue">&quot;stylesheet&quot;</span> media=<span class="htmlAttributeValue">&quot;all&quot;</span> href=<span class="htmlAttributeValue">&quot;css/chat.css&quot;</span> /&gt;</span>
<span class="htmlOtherTag">&lt;link type=<span class="htmlAttributeValue">&quot;text/css&quot;</span> rel=<span class="htmlAttributeValue">&quot;stylesheet&quot;</span> media=<span class="htmlAttributeValue">&quot;all&quot;</span> href=<span class="htmlAttributeValue">&quot;css/screen.css&quot;</span> /&gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--[if lte IE 7]&gt;</span>
<span class="htmlOtherTag">&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; media=&quot;all&quot; href=&quot;css/screen_ie.css&quot; /&gt;</span>
<span class="htmlOtherTag">&lt;![endif]--&gt;</span></span>
<span class="htmlOtherTag">&lt;/head&gt;</span>
<span class="htmlOtherTag">&lt;body&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;main_container&quot;</span>&gt;</span>
<span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;javascript:void(0)&quot;</span> onclick=<span class="htmlAttributeValue">&quot;javascript:chatWith(&#039;<span class="htmlOtherTag">&lt;?=$you?&gt;</span></span>&#039;)&quot;</span>&gt;Chat With <span class="htmlOtherTag">&lt;?=$you?&gt;</span><span class="htmlAnchorTag">&lt;/a&gt;</span>
<span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;javascript:void(0)&quot;</span> onclick=<span class="htmlAttributeValue">&quot;javascript:chatWith(&#039;babydoe&#039;)&quot;</span>&gt;</span>Chat With Baby Doe<span class="htmlAnchorTag">&lt;/a&gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!-- YOUR BODY HERE --&gt;</span></span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span> src=<span class="htmlAttributeValue">&quot;js/jquery.js&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span> src=<span class="htmlAttributeValue">&quot;js/chat.js&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlOtherTag">&lt;/body&gt;</span>
<span class="htmlOtherTag">&lt;/html&gt;</span>
</pre>
<p>Copy the code to your CodeIgniter View and make necessary changes like &lt;?=base_url()?&gt; inclusion and other stuff.</p>
<p>At the top of the file you see the following code</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpFunction">session_start</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
$me <span class="phpOperator">=</span> <span class="phpScriptVar">$_GET</span><span class="phpOperator">[</span><span class="phpString">'me'</span><span class="phpOperator">]</span><span class="phpText">;</span>
$you<span class="phpOperator">=</span> <span class="phpScriptVar">$_GET</span><span class="phpOperator">[</span><span class="phpString">'u'</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpScriptVar">$_SESSION</span><span class="phpOperator">[</span><span class="phpString">'username'</span><span class="phpOperator">]</span> <span class="phpOperator">=</span> $me<span class="phpText">;</span> <span class="phpComment">// Must be already set
</span><span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>To change that code to Codeigniter do the following steps.</p>
<p>In your controller (the one that calls your view), either use session or pass names as parameters.</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpFunctionKeyword">function</span><span class="htmlText"> chat</span><span class="phpOperator">(</span>$me, $you<span class="phpOperator">)</span>
<span class="phpOperator">{</span>
$data<span class="phpOperator">[</span><span class="phpString">'me'</span><span class="phpOperator">]</span> <span class="phpOperator">=</span> $me<span class="phpText">;</span>
$data<span class="phpOperator">[</span><span class="phpString">'you'</span><span class="phpOperator">]</span> <span class="phpOperator">=</span> $you;
<span class="phpScriptVar">$this</span><span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">load</span><span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">view</span><span class="phpOperator">(</span><span class="phpString">'chat'</span>, $data<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>I use two parameters because one is for your name and other is the name for the person you want to chat with.</p>
<p>Make sure names should not have any spaces or dotz. It should be just words or underscores.</p>
<p>ok so.</p>
<p>change the following code</p>
<pre class="php">
<span class="phpOperator">&lt;</span>a href=<span class="phpString">"javascript<span class="phpOperator">:</span>void<span class="phpOperator">(</span><span class="phpNumber">0</span><span class="phpOperator">)</span>"</span> onclick<span class="phpOperator">=</span><span class="phpString">"javascript<span class="phpOperator">:</span>chatWith<span class="phpOperator">(</span><span class="phpString">'babydoe'</span><span class="phpOperator">)</span>"</span><span class="phpOperator">&gt;</span>Chat With Baby Doe<span class="phpOperator">&lt;</span>/a<span class="phpOperator">&gt;</span>
</pre>
<p>to this</p>
<pre class="php">
<span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;javascript:void(0)&quot;</span>  onclick=<span class="htmlAttributeValue">&quot;javascript:chatWith(&#039;<span class="htmlOtherTag">&lt;?=$you?&gt;</span></span>&#039;)&quot;</span>&gt;Chat With  <span class="htmlOtherTag">&lt;?=$you?&gt;</span><span class="htmlAnchorTag">&lt;/a&gt;</span>
//---make it dynamic.
</pre>
<p>Open two of your browser  and open the link. be sure either using localhost or the ip address. depending on what you have used in your chat.js</p>
<p>In Firefox open this link http://localhost/gchat/welcome/chat/misha/rahul and in the other browser open this</p>
<p>http://localhost/gchat/welcome/chat/rahul/chat. Click the first link.</p>
<p>Then you should have your chat working fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/379/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Facebook Like Link Sharing</title>
		<link>http://www.bluejavax.com/archives/361</link>
		<comments>http://www.bluejavax.com/archives/361#comments</comments>
		<pubDate>Fri, 02 Jul 2010 17:43:33 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Demo]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=361</guid>
		<description><![CDATA[View Demo Its been so long, after switching from windows to Ubuntu.Things are more easy, attractive ans secure. This Tutorial is for creating a FACEBOOK LINK LINK SHARING INTERFACE. The script used php, javascript expressions, jquery and some css too. Ok, lets start Lets us create an Interface First call the file index.php&#8230; Why.. well [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.bluejavax.com/wp-content/uploads/2010/07/share_fb.png"><img class="alignleft size-thumbnail wp-image-372" title="share_fb" src="http://www.bluejavax.com/wp-content/uploads/2010/07/share_fb-555x150.png" alt="" width="555" height="150" /></a></p>
<h2><a href="http://www.demo.bluejavax.com/share_fb/" target="_blank">View Demo </a></h2>
<p>Its been so long, after switching from windows to Ubuntu.Things are more easy, attractive ans secure.<br />
This Tutorial is for creating a FACEBOOK LINK LINK SHARING INTERFACE.<br />
The script used php, javascript expressions, jquery and some css too.<span id="more-361"></span><br />
Ok, lets start</p>
<p>Lets us create an Interface First<br />
call the file index.php&#8230; Why.. well you can have Index.html also. Incase you are not loading any data from database&#8230;<br />
Since I&#8217;m loading the previously shared links so its index.php</p>
<pre class="php">
Facebook Like Links Sharing
<span class="phpOperator">&lt;</span><span class="phpOperator">!</span>--Loading Jquery Below-<span class="phpOperator">-<span class="phpOperator">&gt;</span></span>
<span class="phpOperator">&lt;</span>script src=<span class="phpString">"http<span class="phpOperator">:</span><span class="phpComment">//ajax<span class="phpOperator">.</span>googleapis<span class="phpOperator">.</span>com/ajax/libs/jquery/<span class="phpNumber">1</span><span class="phpOperator">.</span><span class="phpNumber">4</span><span class="phpOperator">.</span><span class="phpNumber">2</span>/jquery<span class="phpOperator">.</span>min<span class="phpOperator">.</span>js"</span> type=<span class="phpString">"text/javascript"</span></span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/script<span class="phpOperator">&gt;</span> </pre>
<p> Next you need a Textbox and a publish button. Here we go
<pre class="html"> <span class="htmlFormTag">&lt;textarea id=<span class="htmlAttributeValue">&quot;contentbox&quot;</span>&gt;</span><span class="htmlFormTag">&lt;/textarea&gt;</span>
 <span class="htmlFormTag">&lt;input id=<span class="htmlAttributeValue">&quot;submit&quot;</span> onclick=<span class="htmlAttributeValue">&quot;saveLink()&quot;</span> name=<span class="htmlAttributeValue">&quot;Publish&quot;</span> type=<span class="htmlAttributeValue">&quot;Submit&quot;</span> value=<span class="htmlAttributeValue">&quot;Publish&quot;</span> /&gt;</span> </pre>
<p>  Ok Now we need a Script that Fetches whatever you write and then process it, to show you. Guess what&#8230; It uses jquery.
<pre class="php">   $<span class="phpOperator">(</span>document<span class="phpOperator">)</span>.ready<span class="phpOperator">(</span><span class="phpFunctionKeyword">function</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpOperator">{</span>      $<span class="phpOperator">(</span><span class="phpString">"#contentbox"</span><span class="phpOperator">)</span>.keyup<span class="phpOperator">(</span><span class="phpFunctionKeyword">function</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpComment"><span class="phpComment">//--the script catches all your written text<span class="phpKeyword"> as </span>you type     <span class="phpOperator">{</span>        <span class="phpKeyword"> var </span>content<span class="phpOperator">=</span>$<span class="phpOperator">(</span>this<span class="phpOperator">)</span>.val<span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>        <span class="phpKeyword"> var </span>urlRegex <span class="phpOperator">=</span> /<span class="phpOperator">(</span>\b<span class="phpOperator">(</span>https<span class="phpOperator">?</span><span class="phpOperator">|</span>ftp<span class="phpOperator">|</span>file<span class="phpOperator">)</span><span class="phpOperator">:</span>\/\/<span class="phpOperator">[</span>-A-Z0-<span class="phpNumber">9</span><span class="phpOperator">+</span>&#038;amp<span class="phpText">;</span>@#\/%<span class="phpOperator">?</span><span class="phpOperator">=</span>~_<span class="phpOperator">|</span><span class="phpOperator">!</span><span class="phpOperator">:</span>,<span class="phpOperator">.</span><span class="phpText">;</span><span class="phpOperator">]</span>*<span class="phpOperator">[</span>-A-Z0-<span class="phpNumber">9</span><span class="phpOperator">+</span>&#038;amp<span class="phpText">;</span>@#\/%<span class="phpOperator">=</span>~_<span class="phpOperator">|</span><span class="phpOperator">]</span><span class="phpOperator">)</span>/ig;        <span class="phpKeyword"> var </span>regexp <span class="phpOperator">=</span> /<span class="phpOperator">(</span>ftp<span class="phpOperator">|</span>http<span class="phpOperator">|</span>https<span class="phpOperator">)</span><span class="phpOperator">:</span>\/\/<span class="phpOperator">(</span>\w<span class="phpOperator">+</span><span class="phpOperator">:</span><span class="phpOperator">{</span><span class="phpNumber">0</span>,1<span class="phpOperator">}</span>\w*@<span class="phpOperator">)</span><span class="phpOperator">?</span><span class="phpOperator">(</span>\S<span class="phpOperator">+</span><span class="phpOperator">)</span><span class="phpOperator">(</span><span class="phpOperator">:</span><span class="phpOperator">[</span><span class="phpNumber">0</span>-9<span class="phpOperator">]</span><span class="phpOperator">+</span><span class="phpOperator">)</span><span class="phpOperator">?</span><span class="phpOperator">(</span>\/<span class="phpOperator">|</span>\/<span class="phpOperator">(</span><span class="phpOperator">[</span>\w#<span class="phpOperator">!</span><span class="phpOperator">:</span><span class="phpOperator">.</span><span class="phpOperator">?</span><span class="phpOperator">+</span><span class="phpOperator">=</span>&#038;amp<span class="phpText">;</span>%@<span class="phpOperator">!</span>\-\/<span class="phpOperator">]</span><span class="phpOperator">)</span><span class="phpOperator">)</span><span class="phpOperator">?</span>/<span class="phpText">;</span>        <span class="phpKeyword"> var </span>url= content.match<span class="phpOperator">(</span>urlRegex<span class="phpOperator">)</span><span class="phpText">;</span> //---Filtering URL from the content using regular expressions------         <span class="phpKeyword"> if<span class="phpOperator">(</span></span>url<span class="phpOperator">.</span>length</span><span class="phpOperator">&gt;</span><span class="phpNumber">0</span><span class="phpOperator">)</span><span class="phpComment">//--check<span class="phpKeyword"> for </span>length-----         <span class="phpOperator">{</span>              $<span class="phpOperator">(</span><span class="phpString">"#linkbox"</span><span class="phpOperator">)</span>.slideDown<span class="phpOperator">(</span><span class="phpString">'show'</span><span class="phpOperator">)</span><span class="phpText">;</span>             $<span class="phpOperator">(</span><span class="phpString">"#linkbox"</span><span class="phpOperator">)</span>.html<span class="phpOperator">(</span><span class="phpString">"<span class="phpOperator">&lt;</span>img src="</span>link_loader.gif<span class="phpString">" alt<span class="phpOperator">=</span>"</span><span class="phpString">" /</span><span class="phpOperator">&gt;</span> Loading Data.<span class="phpOperator">.</span>.<span class="phpOperator">.</span>."</span><span class="phpOperator">)</span><span class="phpText">;</span>             $<span class="phpOperator">.</span>get<span class="phpOperator">(</span><span class="phpString">"urlget.php<span class="phpOperator">?</span>url="</span><span class="phpOperator">+</span>url,<span class="phpFunctionKeyword">function</span><span class="phpOperator">(</span>response<span class="phpOperator">)</span><span class="phpComment">//---sending your url<span class="phpKeyword"> as </span>parameter to <span class="phpString">"urlget.php"</span> and fetching the response----             <span class="phpOperator">{</span>                 <span class="phpKeyword"> var </span>title=<span class="phpOperator">(</span>/<span class="phpOperator">(</span>.*<span class="phpOperator">?</span><span class="phpOperator">)</span><span class="phpOperator">&lt;</span>\/title</span><span class="phpOperator">&gt;</span>/m<span class="phpOperator">)</span>.<span class="phpFunction">exec</span><span class="phpOperator">(</span>response<span class="phpOperator">)</span><span class="phpOperator">[</span><span class="phpNumber">1</span><span class="phpOperator">]</span><span class="phpText">;</span> <span class="phpComment">// Loading <span class="phpOperator">&lt;</span>title</span><span class="phpOperator">&gt;</span>data                <span class="phpKeyword"> var </span>logo<span class="phpOperator">=</span><span class="phpOperator">(</span>/<span class="phpOperator">&lt;</span>img src=<span class="phpString">"<span class="phpOperator">(</span>.*<span class="phpOperator">?</span><span class="phpOperator">)</span>" alt="" /&gt;&lt;img class="img" src=""</span><span class="phpOperator">+</span>logo<span class="phpOperator">+</span><span class="phpString">"" alt=""</span> /<span class="phpOperator">&gt;</span>
</span>
<span class="phpOperator">&lt;</span>div<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>strong<span class="phpOperator">&gt;</span><span class="phpString">"<span class="phpOperator">+</span>title<span class="phpOperator">+</span>"</span><span class="phpOperator">&lt;</span>/strong<span class="phpOperator">&gt;</span> &quot;<span class="phpOperator">+</span>url<span class="phpOperator">)</span>             <span class="phpOperator">}</span><span class="phpOperator">)</span><span class="phpText">;</span>          <span class="phpOperator">}</span>        <span class="phpKeyword"> return </span>>false<span class="phpText">;</span>     <span class="phpOperator">}</span><span class="phpOperator">)</span><span class="phpText">;</span>  <span class="phpOperator">}</span><span class="phpOperator">)</span><span class="phpText">;</span>  </pre>
<p>  So that one will do nothing.. You need thet urlget.php so here we go
<pre class="php">  </pre>
<p>  Using the Above code will show the logo or any first image and the url details. Next would be saving the data in database.. when you click on PUBLISH. here is the table
<pre class="php"> CREATE TABLE `links` <span class="phpOperator">(</span>    `link_id` int<span class="phpOperator">(</span>11<span class="phpOperator">)</span> NOT NULL AUTO_INCREMENT,    `link` varchar<span class="phpOperator">(</span>250<span class="phpOperator">)</span> NOT NULL,    PRIMARY KEY <span class="phpOperator">(</span>`link_id`<span class="phpOperator">)</span>  <span class="phpOperator">)</span> </pre>
<p> Now the script to insert the data.
<pre class="php"> <span class="phpFunctionKeyword">function</span> saveLink<span class="phpOperator">(</span><span class="phpOperator">)</span>     <span class="phpOperator">{</span>        <span class="phpKeyword"> var </span>content<span class="phpOperator">=</span>$<span class="phpOperator">(</span><span class="phpString">'#contentbox'</span><span class="phpOperator">)</span>.val<span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>        <span class="phpKeyword"> var </span>urlRegex <span class="phpOperator">=</span> /<span class="phpOperator">(</span>\b<span class="phpOperator">(</span>https<span class="phpOperator">?</span><span class="phpOperator">|</span>ftp<span class="phpOperator">|</span>file<span class="phpOperator">)</span><span class="phpOperator">:</span>\/\/<span class="phpOperator">[</span>-A-Z0-<span class="phpNumber">9</span><span class="phpOperator">+</span>&#038;amp<span class="phpText">;</span>@#\/%<span class="phpOperator">?</span><span class="phpOperator">=</span>~_<span class="phpOperator">|</span><span class="phpOperator">!</span><span class="phpOperator">:</span>,<span class="phpOperator">.</span><span class="phpText">;</span><span class="phpOperator">]</span>*<span class="phpOperator">[</span>-A-Z0-<span class="phpNumber">9</span><span class="phpOperator">+</span>&#038;amp<span class="phpText">;</span>@#\/%<span class="phpOperator">=</span>~_<span class="phpOperator">|</span><span class="phpOperator">]</span><span class="phpOperator">)</span>/ig;        <span class="phpKeyword"> var </span>regexp <span class="phpOperator">=</span> /<span class="phpOperator">(</span>ftp<span class="phpOperator">|</span>http<span class="phpOperator">|</span>https<span class="phpOperator">)</span><span class="phpOperator">:</span>\/\/<span class="phpOperator">(</span>\w<span class="phpOperator">+</span><span class="phpOperator">:</span><span class="phpOperator">{</span><span class="phpNumber">0</span>,1<span class="phpOperator">}</span>\w*@<span class="phpOperator">)</span><span class="phpOperator">?</span><span class="phpOperator">(</span>\S<span class="phpOperator">+</span><span class="phpOperator">)</span><span class="phpOperator">(</span><span class="phpOperator">:</span><span class="phpOperator">[</span><span class="phpNumber">0</span>-9<span class="phpOperator">]</span><span class="phpOperator">+</span><span class="phpOperator">)</span><span class="phpOperator">?</span><span class="phpOperator">(</span>\/<span class="phpOperator">|</span>\/<span class="phpOperator">(</span><span class="phpOperator">[</span>\w#<span class="phpOperator">!</span><span class="phpOperator">:</span><span class="phpOperator">.</span><span class="phpOperator">?</span><span class="phpOperator">+</span><span class="phpOperator">=</span>&#038;amp<span class="phpText">;</span>%@<span class="phpOperator">!</span>\-\/<span class="phpOperator">]</span><span class="phpOperator">)</span><span class="phpOperator">)</span><span class="phpOperator">?</span>/         <span class="phpKeyword"> var </span>url= content.match<span class="phpOperator">(</span>urlRegex<span class="phpOperator">)</span><span class="phpText">;</span>        <span class="phpKeyword"> if<span class="phpOperator">(</span></span>url<span class="phpOperator">.</span>length<span class="phpOperator">&gt;</span><span class="phpNumber">0</span><span class="phpOperator">)</span>         <span class="phpOperator">{</span>             $<span class="phpOperator">.</span>get<span class="phpOperator">(</span><span class="phpString">"saveurl<span class="phpOperator">.</span>php<span class="phpOperator">?</span>url="</span><span class="phpOperator">+</span>url,<span class="phpFunctionKeyword">function</span><span class="phpOperator">(</span>response<span class="phpOperator">)</span>             <span class="phpOperator">{</span>                <span class="phpKeyword"> var </span>title=<span class="phpOperator">(</span>/<span class="phpOperator">(</span>.*<span class="phpOperator">?</span><span class="phpOperator">)</span><span class="phpOperator">&lt;</span>\/title<span class="phpOperator">&gt;</span>/m<span class="phpOperator">)</span>.<span class="phpFunction">exec</span><span class="phpOperator">(</span>response<span class="phpOperator">)</span><span class="phpOperator">[</span><span class="phpNumber">1</span><span class="phpOperator">]</span><span class="phpText">;</span>                <span class="phpKeyword"> var </span>logo<span class="phpOperator">=</span><span class="phpOperator">(</span>/<span class="phpOperator">&lt;</span>img src=<span class="phpString">"<span class="phpOperator">(</span>.*<span class="phpOperator">?</span><span class="phpOperator">)</span>" alt="" /&gt;
 
	&lt;li id="updates"&gt;
&lt;div id="lft"&gt;&lt;img class="img" src=""</span><span class="phpOperator">+</span>logo<span class="phpOperator">+</span><span class="phpString">"" alt=""</span> /<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/div<span class="phpOperator">&gt;</span>
<span class="phpOperator">&lt;</span>div id<span class="phpOperator">=</span><span class="phpString">"rt"</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>strong<span class="phpOperator">&gt;</span><span class="phpString">"<span class="phpOperator">+</span>title<span class="phpOperator">+</span>"</span><span class="phpOperator">&lt;</span>/strong<span class="phpOperator">&gt;</span> <span class="phpString">"<span class="phpOperator">+</span>url<span class="phpOperator">+</span>"</span><span class="phpOperator">&lt;</span>/div<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/li<span class="phpOperator">&gt;</span>
<span class="phpString">"<span class="phpOperator">)</span><span class="phpText">;</span>                  $<span class="phpOperator">(</span>"</span>#linkbox&quot;<span class="phpOperator">)</span>.fadeOut<span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>             <span class="phpOperator">}</span><span class="phpOperator">)</span><span class="phpText">;</span>         <span class="phpOperator">}</span>        <span class="phpKeyword"> return </span>>false<span class="phpText">;</span>     <span class="phpOperator">}</span> </pre>
<p>  The Script seems similar the difference is that it calls another php Script saveurl.php . That captures and saves data. Here is the code
<pre class="php">  </pre>
<p>  The Above Script Uses a config file config.php
<pre class="php"> $mysql_hostname <span class="phpOperator">=</span> <span class="phpString">"localhost"</span><span class="phpText">;</span> $mysql_user <span class="phpOperator">=</span> <span class="phpString">"root"</span><span class="phpText">;</span> $mysql_password <span class="phpOperator">=</span> <span class="phpString">"root"</span><span class="phpText">;</span> $mysql_database <span class="phpOperator">=</span> <span class="phpString">"fb"</span><span class="phpText">;</span>  $cn <span class="phpOperator">=</span> <span class="phpFunction">mysql_connect</span><span class="phpOperator">(</span>$mysql_hostname, $mysql_user, $mysql_password<span class="phpOperator">)</span> or <span class="phpFunction">die</span><span class="phpOperator">(</span><span class="phpString">"Opps some thing went wrong"</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpFunction">mysql_select_db</span><span class="phpOperator">(</span>$mysql_database, $cn<span class="phpOperator">)</span> or <span class="phpFunction">die</span><span class="phpOperator">(</span><span class="phpString">"Opps some thing went wrong"</span><span class="phpOperator">)</span><span class="phpText">;</span> </pre>
<p>  Thats it now Now If you want to load the the previous shared links use this in you index.php file. Just paste this code below your publish button
<pre class="php">   <span class="phpOperator">&lt;</span>script type=<span class="phpString">"text/javascript"</span><span class="phpOperator">&gt;</span><span class="phpComment">// <span class="phpOperator">&lt;</span><span class="phpOperator">!</span><span class="phpOperator">[</span>CDATA<span class="phpOperator">[</span>
</span>             <span class="phpFunctionKeyword">function</span> lods<span class="phpOperator">(</span><span class="phpOperator">)</span>             <span class="phpOperator">{</span>             window<span class="phpOperator">.</span>onload <span class="phpOperator">=</span> loadHistory<span class="phpOperator">(</span><span class="phpString">""</span><span class="phpOperator">)</span><span class="phpText">;</span><span class="phpComment">/****javascript method that takes a parameter ans uses it to extract and load data ****/</span>         <span class="phpComment">//              <span class="phpOperator">}</span>             window<span class="phpOperator">.</span>onload <span class="phpOperator">=</span> lods<span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
</span><span class="phpComment"><span class="phpComment">// <span class="phpOperator">]</span><span class="phpOperator">]</span></span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/script<span class="phpOperator">&gt;</span>
</span>
<span class="phpOperator">&lt;</span>/div<span class="phpOperator">&gt;</span>
</pre>
<p>Thats All.Below are the links to Download and Demo</p>
<h2><a href="http://www.demo.bluejavax.com/share_fb/" target="_blank">View Demo </a></h2>
<h2><a href="http://www.demo.bluejavax.com/share_fb/share_fb.zip" target="_blank">Download the Script</a></h2>
<p>Comments will be appreciated.</p>
<p>Thank you</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/in/"><img style="border-width: 0pt;" src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" /></a><br />
<span> </span>By <a rel="cc:attributionURL" href="http://www.demo.bluejavax.com/motion/">bluejavax</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/in/">Creative Commons Attribution-Share Alike 2.5 India License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/361/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Journals United</title>
		<link>http://www.bluejavax.com/archives/344</link>
		<comments>http://www.bluejavax.com/archives/344#comments</comments>
		<pubDate>Wed, 26 May 2010 17:14:24 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=344</guid>
		<description><![CDATA[A content sharing website, where users can register and write journals, news, hacks, poery etc. Specifications: User can register and can search and write content. User can follow there friends. User gets comment updates. The admin section allows to edit user profiles and complete archives Site uses ajax and jquery, for quick updates and editing. [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.bluejavax.com/wp-content/uploads/2010/05/junited.png"><img class="alignleft size-thumbnail wp-image-348" title="Journals United" src="http://www.bluejavax.com/wp-content/uploads/2010/05/junited-600x150.png" alt="" width="588" height="147" /></a></p>
<p>A content sharing website, where users can register and write journals, news, hacks, poery etc.<img title="More..." src="http://www.bluejavax.com/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>
<p><strong>Specifications:</strong></p>
<ul>
<li>User can register and can search and write content.</li>
<li>User can follow there friends.</li>
<li>User gets comment updates.</li>
<li>The admin section allows to edit user profiles and complete archives</li>
<li>Site uses ajax and jquery, for quick updates and editing.</li>
</ul>
<p><span style="color: #ff0000;">THE SITE HAS BEEN REMOVED BY ME DUE TO PAYMENT ISSUES.</span></p>
<p><span style="color: #99cc00;"><strong>THE SCRIPT WILL BE SOON AVAILABLE FOR SELLING</strong>.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/344/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightbox To Ajax Images</title>
		<link>http://www.bluejavax.com/archives/336</link>
		<comments>http://www.bluejavax.com/archives/336#comments</comments>
		<pubDate>Sat, 01 May 2010 19:52:12 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Demo]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=336</guid>
		<description><![CDATA[Hey all, This tutorial is for the problem that occurs, when lightbox doesn&#8217;t work with images called with ajax. The problem usually occurs when you are using many javascript frameworks together. Since i faced one, so felt it to share with you all. The tutorial is simple and easy to implement. The trick is to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bluejavax.com/wp-content/uploads/2010/05/FireShot-capture-010-Using-lightbox-with-ajax-localhost_ajax_lightbox.png" rel="lightbox"><img class="alignleft size-medium wp-image-337" title="FireShot capture #010 - 'Using lightbox with ajax' - localhost_ajax_lightbox" src="http://www.bluejavax.com/wp-content/uploads/2010/05/FireShot-capture-010-Using-lightbox-with-ajax-localhost_ajax_lightbox-300x160.png" alt="" width="300" height="160" /></a>Hey all, This tutorial is for the problem that occurs, when lightbox doesn&#8217;t work with images called with ajax.</p>
<p>The problem usually occurs when you are using many javascript frameworks together. Since i faced one, so felt it to share with you all.</p>
<p>The tutorial is simple and easy to implement. The trick is to load lighbox.js with jQuery when you want it.<span id="more-336"></span></p>
<p>Here is the simple code.</p>
<blockquote><p>code for index.html</p></blockquote>
<pre class="html">
<span class="htmlOtherTag">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</span>
<span class="htmlOtherTag">&lt;html xmlns=<span class="htmlAttributeValue">&quot;http://www.w3.org/1999/xhtml&quot;</span> lang=<span class="htmlAttributeValue">&quot;en&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;head&gt;</span>
<span class="htmlOtherTag">&lt;title&gt;</span>Using lightbox with ajax<span class="htmlOtherTag">&lt;/title&gt;</span>
<span class="htmlOtherTag">&lt;link rel=<span class="htmlAttributeValue">&quot;stylesheet&quot;</span> href=<span class="htmlAttributeValue">&quot;css/lightbox.css&quot;</span> type=<span class="cssString">&quot;text/css&quot;</span> media=<span class="htmlAttributeValue">&quot;screen&quot;</span> /&gt;</span>
<span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span> src=<span class="htmlAttributeValue">&quot;js/jquery.js&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlScriptTag">&lt;script src=<span class="htmlAttributeValue">&quot;js/prototype.js&quot;</span> type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlScriptTag">&lt;script src=<span class="htmlAttributeValue">&quot;js/scriptaculous.js?load=effects,builder&quot;</span> type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlScriptTag">&lt;script src=<span class="htmlAttributeValue">&quot;js/lightbox.js&quot;</span> type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlStyleTag">&lt;style type=<span class="cssString">&quot;text/css&quot;</span>&gt;</span>
<span class="cssSelector">body{</span> <span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue"> #333</span><span class="cssRest">;</span> <span class="cssProperty">font</span><span class="cssRest">:</span><span class="cssValue"> 13px <span class="cssString">&#039;Lucida Grande&#039;</span>, Verdana, sans-serif</span><span class="cssRest">;</span>    <span class="cssSelector">}</span>
#update
<span class="cssSelector">{</span>
<span class="cssProperty">margin-top</span><span class="cssRest">:</span><span class="cssValue"> 10px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
#update a img
<span class="cssSelector">{</span>
<span class="cssProperty">border</span><span class="cssRest">:</span><span class="cssValue"> #202020 3px solid</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
<span class="htmlStyleTag">&lt;/style&gt;</span>
<span class="htmlOtherTag">&lt;/head&gt;</span>
<span class="htmlOtherTag">&lt;body&gt;</span>
<span class="htmlOtherTag">&lt;h1&gt;</span>Using <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.lokeshdhakar.com/projects/lightbox2/&quot;</span>&gt;</span>Lightbox JS <span class="htmlOtherTag">&lt;em&gt;</span>with ajax<span class="htmlOtherTag">&lt;/em&gt;</span><span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/h1&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.lokeshdhakar.com&quot;</span>&gt;</span>by Harpreet BHatia<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlOtherTag">&lt;h2&gt;</span>Example<span class="htmlOtherTag">&lt;/h2&gt;</span>
<span class="htmlFormTag">&lt;select name=<span class="htmlAttributeValue">&quot;imageOption&quot;</span> id=<span class="htmlAttributeValue">&quot;imgOptn&quot;</span>&gt;</span>
<span class="htmlFormTag">&lt;option value=<span class="htmlAttributeValue">&quot;xxx&quot;</span>&gt;</span>----Select Image Type-----<span class="htmlFormTag">&lt;/option&gt;</span>
<span class="htmlFormTag">&lt;option value=<span class="htmlAttributeValue">&quot;1&quot;</span>&gt;</span>Type 1<span class="htmlFormTag">&lt;/option&gt;</span>
<span class="htmlFormTag">&lt;option value=<span class="htmlAttributeValue">&quot;2&quot;</span>&gt;</span>Type 2<span class="htmlFormTag">&lt;/option&gt;</span>
<span class="htmlFormTag">&lt;/select&gt;</span>
<span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span>&gt;</span>
jQuery(&quot;[name=imageOption]&quot;).change(function()
{
//------loading lightbox script using jquery-----
jQuery.getScript(&quot;js/lightbox.js&quot;, function()
{
cat = jQuery(&#039;[name=imageOption]&#039;).val();
if(cat != &quot;xxx&quot;)
{
var dataString = &#039;cat=<span class="htmlAttributeValue">&#039; + cat;
{
jQuery(&quot;#flash&quot;).show();
jQuery(&quot;#flash&quot;).fadeIn(400).html(&#039;</span><span class="htmlOtherTag">&lt;span&gt;</span>Loading Image, Please wait...<span class="htmlOtherTag">&lt;/span&gt;</span>&#039;);
//----calling the php file to get images ------
jQuery.ajax(
{
type: &quot;POST&quot;,
url: &quot;getImages.php&quot;,
data: dataString,
cache: false,
success: function(html)
{
{
jQuery(&quot;#update&quot;).empty();
jQuery(&quot;#update&quot;). append(html);
jQuery(&quot;#update&quot;).fadeIn(&quot;slow&quot;);
jQuery(&quot;#flash&quot;).hide();
//jQuery(&quot;#update&quot;).fadeOut(7000);
}
}
});
return false;
}
}
else
{
jQuery(&quot;#update&quot;).fadeOut();
}
});
});
<span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;flash&quot;</span>&gt;</span><span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;update&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/body&gt;</span>
<span class="htmlOtherTag">&lt;/html&gt;</span>
</pre>
<p>Code for php file</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$t <span class="phpOperator">=</span> <span class="phpScriptVar">$_POST</span><span class="phpOperator">[</span><span class="phpString">'cat'</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpKeyword">
if<span class="phpOperator">(</span></span>$t <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpNumber">1</span><span class="phpOperator">)</span>
<span class="phpOperator">{</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;images/hat_big.jpg&quot;</span> rel=<span class="htmlAttributeValue">&quot;lightbox[roadtrip]&quot;</span>&gt;</span>
<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/hat.jpg&quot;</span> width=<span class="htmlAttributeValue">&quot;200&quot;</span> height=<span class="htmlAttributeValue">&quot;200&quot;</span> alt=<span class="htmlAttributeValue">&quot;&quot;</span> /&gt;</span>
<span class="htmlAnchorTag">&lt;/a&gt;</span>
<span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;images/glow_big.jpg&quot;</span> rel=<span class="htmlAttributeValue">&quot;lightbox[roadtrip]&quot;</span>&gt;</span>
<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/glow.jpg&quot;</span> width=<span class="htmlAttributeValue">&quot;200&quot;</span> height=<span class="htmlAttributeValue">&quot;200&quot;</span> alt=<span class="htmlAttributeValue">&quot;&quot;</span> /&gt;</span>
<span class="htmlAnchorTag">&lt;/a&gt;</span>
<span class="htmlOtherTag">&lt;?
}
else
{
?&gt;</span>
<span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;images/roof_big.jpg&quot;</span> rel=<span class="htmlAttributeValue">&quot;lightbox&quot;</span>&gt;</span>
<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/roof.jpg&quot;</span> width=<span class="htmlAttributeValue">&quot;200&quot;</span> height=<span class="htmlAttributeValue">&quot;200&quot;</span> alt=<span class="htmlAttributeValue">&quot;&quot;</span> /&gt;</span>
<span class="htmlAnchorTag">&lt;/a&gt;</span>
<span class="htmlOtherTag">&lt;?
}
?&gt;</span>
</pre>
<h2><span style="color: #000000;"><a href="http://demo.bluejavax.com/ajax_lightbox" target="_blank"><strong>View Demo</strong></a></span></h2>
<p><a href="http://up.servut.us/23040">Download source</a></p>
<p>Hope you like it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/336/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery: Tips &#8216;n&#8217; Tricks</title>
		<link>http://www.bluejavax.com/archives/322</link>
		<comments>http://www.bluejavax.com/archives/322#comments</comments>
		<pubDate>Tue, 23 Mar 2010 06:00:12 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=322</guid>
		<description><![CDATA[Jquery and browser support. well both of them nearly  don&#8217;t work all together. I just got stuck somewhere i found a weird solution Just remove an @ symbol did that. While working on a project i was stuck on a jquery code that wasn&#8217;t working on IE8(now free for Xp users). I was working with [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.bluejavax.com/wp-content/uploads/2010/03/komodo.png"><img class="alignleft" title="komodo" src="http://www.bluejavax.com/wp-content/uploads/2010/03/komodo-300x183.png" alt="" width="300" height="183" /></a>Jquery and browser support. well both of them nearly  don&#8217;t work all together. I just got stuck somewhere i found a weird solution Just remove an @ symbol did that.</p>
<p>While working on a project i was stuck on a jquery code that wasn&#8217;t working on <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;familyid=341c2ad5-8c3d-4347-8c03-08cdecd8852b" target="_blank">IE8</a>(now free for Xp users).</p>
<p><span id="more-322"></span></p>
<p>I was working with two set if radio buttons. the problem was with the second radio button set.</p>
<p>The code that did not work was this below.</p>
<pre class="html">
<span class="htmlTableTag">&lt;tr&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>
Have you used any other names in the past eight years?
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>
<span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;radio&quot;</span> name=<span class="htmlAttributeValue">&quot;ot&quot;</span> value=<span class="htmlAttributeValue">&quot;1&quot;</span>&gt;</span>yes  <span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;radio&quot;</span> name=<span class="htmlAttributeValue">&quot;ot&quot;</span> value=<span class="htmlAttributeValue">&quot;2&quot;</span>&gt;</span>No
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span>&gt;</span>
$j(&#039;[name=ot]&#039;).click(function()
{
var ot = $j(&quot;input[@name=<span class="htmlAttributeValue">&#039;ot&#039;</span>]:checked&quot;).val();
if(ot == 1)
{
$j(&quot;#odrnames&quot;).fadeIn(&quot;slow&quot;);
}
else
{
$j(&quot;#odrnames&quot;).fadeOut(&quot;slow&quot;);
}
});
<span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;/tr&gt;</span>
<span class="htmlTableTag">&lt;tr id=<span class="htmlAttributeValue">&quot;odrnames&quot;</span> style=<span class="htmlAttributeValue">&quot;<span class="cssProperty">display</span><span class="cssRest">:</span><span class="cssValue"> none</span><span class="cssRest">;</span>&quot;</span>&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>
Other Names
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>
<span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;text&quot;</span> id=<span class="htmlAttributeValue">&quot;txt&quot;</span> name=<span class="htmlAttributeValue">&quot;otherNam&quot;</span>&gt;</span> *Seperate By commas
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;/tr&gt;</span>
<span class="htmlTableTag">&lt;tr&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>
Filing Status:
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>
<span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;radio&quot;</span> name=<span class="htmlAttributeValue">&quot;fs&quot;</span> value=<span class="htmlAttributeValue">&quot;1&quot;</span>&gt;</span>Single  <span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;radio&quot;</span> name=<span class="htmlAttributeValue">&quot;fs&quot;</span> value=<span class="htmlAttributeValue">&quot;2&quot;</span>&gt;</span>Joint
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span>&gt;</span>
$j(&#039;[name=fs]&#039;).click(function()
{
var person = $j(&quot;input[@name=<span class="htmlAttributeValue">&#039;fs&#039;</span>]:checked&quot;).val();
//alert(person);
if(person == 2)
{
$j(&quot;#joint0&quot;).fadeIn(&quot;slow&quot;);
}
else
{
$j(&quot;#joint0&quot;).fadeOut(&quot;slow&quot;);
}
});
<span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlTableTag">&lt;/tr&gt;</span>
<span class="htmlOtherTag">&lt;div&gt;</span>
<span class="htmlTableTag">&lt;tr id=<span class="htmlAttributeValue">&quot;joint0&quot;</span> style=<span class="htmlAttributeValue">&quot;<span class="cssProperty">display</span><span class="cssRest">:</span><span class="cssValue"> none</span><span class="cssRest">;</span>&quot;</span>&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>
Full Name of Spouse:
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>
<span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;text&quot;</span> id=<span class="htmlAttributeValue">&quot;txt&quot;</span> name=<span class="htmlAttributeValue">&quot;sname&quot;</span>&gt;</span>
<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;/tr&gt;</span>
</pre>
<p>I just changes the jquery codes from</p>
<pre class="javascript">
var person = $j("input[@name='fs']:checked").val();
</pre>
<p>To</p>
<pre class="javascript">
var person =  $j("input[name='fs']:checked").val();
</pre>
<p>A small code for developers the IE8 users to be in compatible mode.</p>
<p>try this
<pre class="html">
<span class="htmlOtherTag">&lt;meta http-equiv=<span class="htmlAttributeValue">&quot;X-UA-Compatible&quot;</span>  content=<span class="htmlAttributeValue">&quot;IE=EmulateIE7&quot;</span>  /&gt;</span>
</pre>
<p>So this was the solution i found. Please do comment if you have better ideas or face any problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/322/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using custom Fonts On Website</title>
		<link>http://www.bluejavax.com/archives/265</link>
		<comments>http://www.bluejavax.com/archives/265#comments</comments>
		<pubDate>Tue, 02 Mar 2010 19:47:23 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=265</guid>
		<description><![CDATA[Hey people here is the solution for using custom fonts on your website. I always wanted to use something different. Using Arial, Calibri is so IE6, so i googled around and found that there are certain solutions available, but i found FONTJASS as one of the solution. Convert your font to javascript here. Then download [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bluejavax.com/wp-content/uploads/2010/03/FireShot-capture-012-AMI-I-Impex-localhost_amiimpex_admin_addPro.png" rel="lightbox"><img class="alignleft size-medium wp-image-266" title="FireShot capture #012 - 'AMI I Impex' - localhost_amiimpex_admin_addPro" src="http://www.bluejavax.com/wp-content/uploads/2010/03/FireShot-capture-012-AMI-I-Impex-localhost_amiimpex_admin_addPro-300x160.png" alt="" width="300" height="160" /></a>Hey people here is the solution  for using custom fonts on your website.<br />
I always wanted to use something different. Using Arial, Calibri is so IE6, so i googled around and found that there are certain solutions available,<span id="more-265"></span> but i found <a href="http://www.fontjass.com">FONTJASS</a> as one of the solution.</p>
<p>Convert your font to javascript <a href="http://fontjazz.com/jazz">here</a>.</p>
<p>Then download the files generated. and BOOm</p>
<p>Use:</p>
<pre class="html">
<span class="htmlOtherTag">&lt;pre&gt;</span><span class="htmlOtherTag">&lt;html&gt;</span>
 <span class="htmlOtherTag">&lt;head&gt;</span>
  <span class="htmlOtherTag">&lt;title&gt;</span>Neato!<span class="htmlOtherTag">&lt;/title&gt;</span>
  <span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span> src=<span class="htmlAttributeValue">&quot;fontjazz.js&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
  <span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span> src=<span class="htmlAttributeValue">&quot;font.js&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
 <span class="htmlOtherTag">&lt;/head&gt;</span>
 <span class="htmlOtherTag">&lt;body&gt;</span>
  <span class="htmlOtherTag">&lt;h1&gt;</span>Wow! Fancy headlines!<span class="htmlOtherTag">&lt;/h1&gt;</span>
  <span class="htmlOtherTag">&lt;p&gt;</span>Gotta love it!<span class="htmlOtherTag">&lt;/p&gt;</span>
  <span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span>&gt;</span>
   FontJazz.apply(&quot;h1&quot;, &quot;font&quot;);
  <span class="htmlScriptTag">&lt;/script&gt;</span>
 <span class="htmlOtherTag">&lt;/body&gt;</span>
<span class="htmlOtherTag">&lt;/html&gt;</span>
<span class="htmlOtherTag">&lt;/pre&gt;</span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/265/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Project For Health Organisation</title>
		<link>http://www.bluejavax.com/archives/247</link>
		<comments>http://www.bluejavax.com/archives/247#comments</comments>
		<pubDate>Sun, 14 Feb 2010 15:28:14 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=247</guid>
		<description><![CDATA[Developed a web application for a International Health Organization.  The web application contains a knowledge base for articles and videos. The knowledge base is maintained by Administrator. The site has two different accounts for Doctors and Patients. CONTAINS: Knowledge Base (with Videos also) SMS facility Chating Instant Messaging Built Using: Php Jquery Ajax Mysql]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.bluejavax.com/wp-content/uploads/2010/02/FireShot-capture-004-Heart-Insure-An-Alliance-for-Health-localhost_heartinsure.png"><img class="alignleft size-medium wp-image-251" title="FireShot capture #004 - 'Heart Insure-An Alliance for Health' - localhost_heartinsure" src="http://www.bluejavax.com/wp-content/uploads/2010/02/FireShot-capture-004-Heart-Insure-An-Alliance-for-Health-localhost_heartinsure-300x174.png" alt="" width="300" height="174" /></a></p>
<p>Developed a web application for a International Health Organization.  The web application contains a knowledge base for articles and videos.<span id="more-247"></span></p>
<p>The knowledge base is maintained by Administrator. The site has two different accounts for Doctors and Patients.</p>
<p><strong>CONTAINS: </strong></p>
<ul>
<li>Knowledge Base (with Videos also)</li>
<li>SMS facility</li>
<li>Chating</li>
<li>Instant Messaging</li>
</ul>
<p><strong>Built Using:</strong></p>
<ul>
<li>Php</li>
<li>Jquery</li>
<li>Ajax</li>
<li>Mysql<strong><br />
</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/247/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magic of Jquery and PHP</title>
		<link>http://www.bluejavax.com/archives/181</link>
		<comments>http://www.bluejavax.com/archives/181#comments</comments>
		<pubDate>Mon, 28 Dec 2009 20:04:52 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Demo]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[experience]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[sliding]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=181</guid>
		<description><![CDATA[Oh, Hello again people. This is another post that shows some magic of Jquery &#38; php. This is a demo i create for a client, well it wasn&#8217;t much liked by him but my friends did. well i loved it too. So, i thought of sharing it with you all. I created this for fun. [...]]]></description>
			<content:encoded><![CDATA[<img alt="magic" src="http://www.bluejavax.com/wp-content/uploads/wp-post-thumbnail/magic_EKftv.jpg" class="wppt_float_left" /><p><a href="http://www.bluejavax.com/wp-content/uploads/2009/12/yap.jpg" rel="lightbox"><img class="alignleft size-medium wp-image-253" title="yap" src="http://www.bluejavax.com/wp-content/uploads/2009/12/yap-300x117.jpg" alt="" width="300" height="117" /></a>Oh, Hello again people. This is another post that shows some magic of Jquery &amp; php.<br />
This is a demo i create for a client, well it wasn&#8217;t much liked by him but my friends did. well i loved it too. So, i thought of sharing it with you all.</p>
<p>I created this for fun. Well I have tested it on firefox, chrome and opera.<span id="more-181"></span></p>
<h2><a href="http://www.demo.bluejavax.com/old_tv/" target="_blank">View Demo </a></h2>
<p>below is the code given.</p>
<p>Code for Index.html</p>
<pre class="html">
<span class="htmlStyleTag">&lt;style&gt;</span>
#sliderWrap
<span class="cssSelector">{</span>
<span class="cssProperty">margin</span><span class="cssRest">:</span><span class="cssValue"> 0 auto</span><span class="cssRest">;</span>
<span class="cssProperty">width</span><span class="cssRest">:</span><span class="cssValue"> 385px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
#slider
<span class="cssSelector">{</span>
<span class="cssProperty">position</span><span class="cssRest">:</span><span class="cssValue"> fixed</span><span class="cssRest">;</span>
<span class="cssProperty">background-image</span><span class="cssRest">:</span><span class="cssValue">url(images/pane.png)</span><span class="cssRest">;</span>
<span class="cssProperty">background-repeat</span><span class="cssRest">:</span><span class="cssValue">no-repeat</span><span class="cssRest">;</span>
<span class="cssProperty">background-position</span><span class="cssRest">:</span><span class="cssValue"> bottom</span><span class="cssRest">;</span>
<span class="cssProperty">width</span><span class="cssRest">:</span><span class="cssValue"> 385px</span><span class="cssRest">;</span>
<span class="cssProperty">height</span><span class="cssRest">:</span><span class="cssValue"> 200px</span><span class="cssRest">;</span>
<span class="cssProperty">margin-top</span><span class="cssRest">:</span><span class="cssValue"> -150px</span><span class="cssRest">;</span>
<span class="cssProperty">margin-left</span><span class="cssRest">:</span><span class="cssValue"> 10px</span><span class="cssRest">;</span>
<span class="cssProperty">padding-right</span><span class="cssRest">:</span><span class="cssValue"> 10px</span><span class="cssRest">;</span>
<span class="cssProperty">z-index</span><span class="cssRest">:</span><span class="cssValue"> 3</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
#slider img
<span class="cssSelector">{</span>
<span class="cssProperty">border</span><span class="cssRest">:</span><span class="cssValue"> 0</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
#sliderContent <span class="cssComment">/*-------------the sliding panel on top left----------------*/</span>
<span class="cssSelector">{</span>
<span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue">#fff</span><span class="cssRest">;</span>
<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue"> 14px</span><span class="cssRest">;</span>
<span class="cssProperty">font-family</span><span class="cssRest">:</span><span class="cssValue"> arial</span><span class="cssRest">;</span>
<span class="cssProperty">text-decoration</span><span class="cssRest">:</span><span class="cssValue"> none</span><span class="cssRest">;</span>
<span class="cssProperty">padding-bottom</span><span class="cssRest">:</span><span class="cssValue"> 10px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
#sliderContent a <span class="cssComment">/*-------------content----------------*/</span>
<span class="cssSelector">{</span>
<span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue">#fff</span><span class="cssRest">;</span>
<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue"> 14px</span><span class="cssRest">;</span>
<span class="cssProperty">font-family</span><span class="cssRest">:</span><span class="cssValue"> arial</span><span class="cssRest">;</span>
<span class="cssProperty">text-decoration</span><span class="cssRest">:</span><span class="cssValue"> none</span><span class="cssRest">;</span>
<span class="cssComment">/*<span class="cssProperty">background-image</span><span class="cssRest">:</span><span class="cssValue"> url(images/semi.png)</span><span class="cssRest">;</span>*/</span>
<span class="cssProperty">padding</span><span class="cssRest">:</span><span class="cssValue"> 4px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
#sliderContent a:hover <span class="cssComment">/*-------------content----------------*/</span>
<span class="cssSelector">{</span>
<span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue">#fff</span><span class="cssRest">;</span>
<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue"> 14px</span><span class="cssRest">;</span>
<span class="cssProperty">font-family</span><span class="cssRest">:</span><span class="cssValue"> arial</span><span class="cssRest">;</span>
<span class="cssProperty">background-image</span><span class="cssRest">:</span><span class="cssValue"> url(images/semi.png)</span><span class="cssRest">;</span>
<span class="cssProperty">padding</span><span class="cssRest">:</span><span class="cssValue"> 4px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
#header
<span class="cssSelector">{</span>
<span class="cssProperty">margin</span><span class="cssRest">:</span><span class="cssValue"> 0 auto</span><span class="cssRest">;</span>
<span class="cssProperty">width</span><span class="cssRest">:</span><span class="cssValue"> 600px</span><span class="cssRest">;</span>
<span class="cssProperty">background-color</span><span class="cssRest">:</span><span class="cssValue"> #F0F0F0</span><span class="cssRest">;</span>
<span class="cssProperty">height</span><span class="cssRest">:</span><span class="cssValue"> 200px</span><span class="cssRest">;</span>
<span class="cssProperty">padding</span><span class="cssRest">:</span><span class="cssValue"> 10px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
#openCloseWrap
<span class="cssSelector">{</span>
<span class="cssProperty">position</span><span class="cssRest">:</span><span class="cssValue"> relative</span><span class="cssRest">;</span>
<span class="cssProperty">padding-top</span><span class="cssRest">:</span><span class="cssValue"> 20px</span><span class="cssRest">;</span>
<span class="cssProperty">padding-right</span><span class="cssRest">:</span><span class="cssValue"> 20px</span><span class="cssRest">;</span>
<span class="cssProperty">text-align</span><span class="cssRest">:</span><span class="cssValue"> right</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
<span class="htmlStyleTag">&lt;/style&gt;</span>
</pre>
<p>The jquery Goes like this</p>
<pre class="html">
<span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span>&gt;</span>
$(document).ready(function()
{
$(&quot;.ser&quot;).click( function()//---called when you click on CLICK ME-----
{
document.getElementById(&#039;slider&#039;).style.visibility = &quot;visible&quot;;
req = &#039;ser&#039;;
var dataString = &#039;req=<span class="htmlAttributeValue">&#039;+req;
{
$j(&quot;.flickr&quot;).show();
$j(&quot;.flickr&quot;).fadeIn(400).html(&#039;</span><span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/noise.gif&quot;</span> align=<span class="htmlAttributeValue">&quot;absmiddle&quot;</span> width=<span class="htmlAttributeValue">&quot;445&quot;</span> height=333&quot;&gt;</span>&#039;);
$j.ajax(
{
type: &quot;POST&quot;,
url: &quot;services.php&quot;,
data: dataString,
cache: false,
success: function(html)
{
html1 = &#039;&#039;;
//$(&quot;#sliderContent&quot;).empty();
//$(&quot;#sliderContent&quot;). append(html1);
//$j(&quot;.flickr&quot;).fadeOut(400);
$(&quot;.flickr&quot;).empty();
$(&quot;.flickr&quot;).hide();
$(&quot;.flickr&quot;). append(html);
$(&quot;.flickr&quot;). fadeIn(2000);
//alert(&#039;ser2&#039;);
if ($(&quot;#openCloseIdentifier&quot;).is(&quot;:hidden&quot;))
{
$(&quot;#slider&quot;).animate(
{
marginTop: &quot;-150px&quot;,//-------slides up the top-left menu-----
//marginLeft: &quot;800px&quot;
}, 500 );
//$(&quot;#topMenuImage&quot;).html(&#039;<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/open.png&quot;</span> alt=<span class="htmlAttributeValue">&quot;open&quot;</span> /&gt;</span>&#039;);
$(&quot;#openCloseIdentifier&quot;).show();
}
else
{
$(&quot;#slider&quot;).animate(
{
marginTop: &quot;0px&quot;,//-------slides the top-left menu to the bottom-----
//marginLeft: &quot;0px&quot;
}, 500 );
//$(&quot;#topMenuImage&quot;).html(&#039;<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/close.png&quot;</span> alt=<span class="htmlAttributeValue">&quot;close&quot;</span> /&gt;</span>&#039;);
$(&quot;#openCloseIdentifier&quot;).hide();
}
}
});
}
return false;
});
$(&quot;.pro&quot;).click( function()//---runs when Production link is clicked on the sliding menu-----
{
req = &#039;pro&#039;;
var dataString = &#039;req=<span class="htmlAttributeValue">&#039;+req;//-----request string-----
{
$j(&quot;.flickr&quot;).show();
$j(&quot;.flickr&quot;).fadeIn(400).html(&#039;</span><span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/noise.gif&quot;</span> align=<span class="htmlAttributeValue">&quot;absmiddle&quot;</span> width=<span class="htmlAttributeValue">&quot;445&quot;</span> height=333&quot;&gt;</span>&#039;);
$j.ajax(
{
type: &quot;POST&quot;,//----using the post method-----
url: &quot;services.php&quot;,//----php page to handle request----
data: dataString,
cache: false,
success: function(html)
{
html1 = &#039;&#039;;
$(&quot;.flickr&quot;).empty();
$(&quot;.flickr&quot;).hide();
$(&quot;.flickr&quot;). append(html);
$(&quot;.flickr&quot;). fadeIn(2000);
}
});
}
return false;
});
$(&quot;.rf&quot;).click( function()
{
req = &#039;rf&#039;;
var dataString = &#039;req=<span class="htmlAttributeValue">&#039;+req;
{
$j(&quot;.flickr&quot;).show();
$j(&quot;.flickr&quot;).fadeIn(400).html(&#039;</span><span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/noise.gif&quot;</span> align=<span class="htmlAttributeValue">&quot;absmiddle&quot;</span> width=<span class="htmlAttributeValue">&quot;445&quot;</span> height=333&quot;&gt;</span>&#039;);
$j.ajax(
{
type: &quot;POST&quot;,
url: &quot;services.php&quot;,
data: dataString,
cache: false,
success: function(html)
{
html1 = &#039;&#039;;
//$(&quot;#sliderContent&quot;).empty();
//$(&quot;#sliderContent&quot;). append(html1);
$(&quot;.flickr&quot;).empty();
$(&quot;.flickr&quot;).hide();
$(&quot;.flickr&quot;). append(html);
$(&quot;.flickr&quot;). fadeIn(2000);
}
});
}
return false;
});
$(&quot;.lsc&quot;).click( function()
{
req = &#039;lsc&#039;;
var dataString = &#039;req=<span class="htmlAttributeValue">&#039;+req;
{
$j(&quot;.flickr&quot;).show();
$j(&quot;.flickr&quot;).fadeIn(400).html(&#039;</span><span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/noise.gif&quot;</span> align=<span class="htmlAttributeValue">&quot;absmiddle&quot;</span> width=<span class="htmlAttributeValue">&quot;445&quot;</span> height=333&quot;&gt;</span>&#039;);
$j.ajax(
{
type: &quot;POST&quot;,
url: &quot;services.php&quot;,
data: dataString,
cache: false,
success: function(html)
{
html1 = &#039;&#039;;
//$(&quot;#sliderContent&quot;).empty();
//$(&quot;#sliderContent&quot;). append(html1);
$(&quot;.flickr&quot;).empty();
$(&quot;.flickr&quot;).hide();
$(&quot;.flickr&quot;). append(html);
$(&quot;.flickr&quot;). fadeIn(2000);
}
});
}
return false;
});
$(&quot;.per&quot;).click( function()
{
req = &#039;per&#039;;
var dataString = &#039;req=<span class="htmlAttributeValue">&#039;+req;
{
$j(&quot;.flickr&quot;).show();
$j(&quot;.flickr&quot;).fadeIn(400).html(&#039;</span><span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/noise.gif&quot;</span> align=<span class="htmlAttributeValue">&quot;absmiddle&quot;</span> width=<span class="htmlAttributeValue">&quot;445&quot;</span> height=333&quot;&gt;</span>&#039;);
$j.ajax(
{
type: &quot;POST&quot;,
url: &quot;services.php&quot;,
data: dataString,
cache: false,
success: function(html)
{
html1 = &#039;&#039;;
//$(&quot;#sliderContent&quot;).empty();
//$(&quot;#sliderContent&quot;). append(html1);
$(&quot;.flickr&quot;).empty();
$(&quot;.flickr&quot;).hide();
$(&quot;.flickr&quot;). append(html);
$(&quot;.flickr&quot;). fadeIn(2000);
}
});
}
return false;
});
$(&quot;.ppf&quot;).click( function()
{
req = &#039;ppf&#039;;
var dataString = &#039;req=<span class="htmlAttributeValue">&#039;+req;
{
$j(&quot;.flickr&quot;).show();
$j(&quot;.flickr&quot;).fadeIn(400).html(&#039;</span><span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/noise.gif&quot;</span> align=<span class="htmlAttributeValue">&quot;absmiddle&quot;</span> width=<span class="htmlAttributeValue">&quot;445&quot;</span> height=333&quot;&gt;</span>&#039;);
$j.ajax(
{
type: &quot;POST&quot;,
url: &quot;services.php&quot;,
data: dataString,
cache: false,
success: function(html)
{
html1 = &#039;&#039;;
//$(&quot;#sliderContent&quot;).empty();
//$(&quot;#sliderContent&quot;). append(html1);
$(&quot;.flickr&quot;).empty();
$(&quot;.flickr&quot;).hide();
$(&quot;.flickr&quot;). append(html);
$(&quot;.flickr&quot;). fadeIn(2000);
}
});
}
return false;
});
});
$(document).ready(function()
{
$(&quot;.topMenuAction&quot;).click( function()
{
//html = &quot;<span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&#039;#&#039;</span>&gt;</span>&bull; Production <span class="htmlAnchorTag">&lt;/a&gt;</span>  <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&#039;#&#039;</span>&gt;</span>&bull; Research <span class="htmlSpecialChar">&amp;amp;</span> Feasibility <span class="htmlAnchorTag">&lt;/a&gt;</span>  <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&#039;#&#039;</span>&gt;</span>&bull; Location Scouting <span class="htmlSpecialChar">&amp;amp;</span> Casting <span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;br&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&#039;#&#039;</span>&gt;</span>&bull; Premits <span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&#039;#&#039;</span>&gt;</span>&bull; Post-Production Facilitation <span class="htmlAnchorTag">&lt;/a&gt;</span>&quot;;
//$(&quot;#sliderContent&quot;).empty();
$(&quot;.flickr&quot;).fadeOut();
//$(&quot;#sliderContent&quot;). append(html);
if ($(&quot;#openCloseIdentifier&quot;).is(&quot;:hidden&quot;))
{
$(&quot;#slider&quot;).animate(
{
marginLeft: &quot;800px&quot;
}, 500 );
//$(&quot;#topMenuImage&quot;).html(&#039;<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/open.png&quot;</span> alt=<span class="htmlAttributeValue">&quot;open&quot;</span> /&gt;</span>&#039;);
$(&quot;#openCloseIdentifier&quot;).show();
}
else
{
$(&quot;#slider&quot;).animate(
{
marginLeft: &quot;0px&quot;
}, 500 );
//$(&quot;#topMenuImage&quot;).html(&#039;<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/close.png&quot;</span> alt=<span class="htmlAttributeValue">&quot;close&quot;</span> /&gt;</span>&#039;);
$(&quot;#openCloseIdentifier&quot;).hide();
}
});
});
<span class="htmlScriptTag">&lt;/script&gt;</span>
</pre>
<p>The php code for SERVICES.PHP goes like this</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$req <span class="phpOperator">=</span> <span class="phpScriptVar">$_POST</span><span class="phpOperator">[</span><span class="phpString">'req'</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpComment">//-------The code handles request on the basis of request made to the server.------------
</span>>if<span class="phpOperator">(</span><span class="phpOperator">(</span>$req <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpString">'ser'</span><span class="phpOperator">)</span> <span class="phpOperator">|</span><span class="phpOperator">|</span> <span class="phpOperator">(</span>$req <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpString">'pro'</span><span class="phpOperator">)</span><span class="phpOperator">)</span>
<span class="phpOperator">{</span>
$resp <span class="phpOperator">=</span> <span class="phpString">"<span class="phpOperator">&lt;</span><span class="htmlText">p</span><span class="phpOperator">&gt;</span><span class="htmlText">Production</span><span class="phpOperator">:</span> <span class="phpOperator">&lt;</span><span class="htmlText">br</span><span class="phpOperator">&gt;</span>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem<span class="phpOperator">.</span> Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur<span class="phpOperator">?</span><span class="phpOperator">&lt;</span>/p<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
elseif<span class="phpOperator">(</span></span>$req <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpString">'rf'</span><span class="phpOperator">)</span>
<span class="phpOperator">{</span>
$resp <span class="phpOperator">=</span> <span class="phpString">"<span class="phpOperator">&lt;</span><span class="htmlText">p</span><span class="phpOperator">&gt;</span>Research &#038;amp<span class="phpText">;</span><span class="htmlText"> Feasibility</span><span class="phpOperator">:</span> <span class="phpOperator">&lt;</span><span class="htmlText">br</span><span class="phpOperator">&gt;</span>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem<span class="phpOperator">.</span> Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur<span class="phpOperator">?</span><span class="phpOperator">&lt;</span>/p<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
elseif<span class="phpOperator">(</span></span>$req <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpString">'lsc'</span><span class="phpOperator">)</span>
<span class="phpOperator">{</span>
$resp <span class="phpOperator">=</span> <span class="phpString">"<span class="phpOperator">&lt;</span><span class="htmlText">p</span><span class="phpOperator">&gt;</span>Location Scouting &#038;amp<span class="phpText">;</span><span class="htmlText"> Casting</span><span class="phpOperator">:</span> <span class="phpOperator">&lt;</span><span class="htmlText">br</span><span class="phpOperator">&gt;</span>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem<span class="phpOperator">.</span> Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur<span class="phpOperator">?</span><span class="phpOperator">&lt;</span>/p<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
elseif<span class="phpOperator">(</span></span>$req <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpString">'per'</span><span class="phpOperator">)</span>
<span class="phpOperator">{</span>
$resp <span class="phpOperator">=</span> <span class="phpString">"<span class="phpOperator">&lt;</span><span class="htmlText">p</span><span class="phpOperator">&gt;</span><span class="htmlText">Permits</span><span class="phpOperator">:</span> <span class="phpOperator">&lt;</span><span class="htmlText">br</span><span class="phpOperator">&gt;</span>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem<span class="phpOperator">.</span> Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur<span class="phpOperator">?</span><span class="phpOperator">&lt;</span>/p<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
elseif<span class="phpOperator">(</span></span>$req <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpString">'ppf'</span><span class="phpOperator">)</span>
<span class="phpOperator">{</span>
$resp <span class="phpOperator">=</span> <span class="phpString">"<span class="phpOperator">&lt;</span><span class="htmlText">p</span><span class="phpOperator">&gt;</span>Post-Production Facilitation<span class="phpOperator">:</span> <span class="phpOperator">&lt;</span><span class="htmlText">br</span><span class="phpOperator">&gt;</span>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem<span class="phpOperator">.</span> Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur<span class="phpOperator">?</span><span class="phpOperator">&lt;</span>/p<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpFunction">echo</span> $resp<span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p><a href="http://www.demo.bluejavax.com/old_tv/" target="_blank">View Demo </a></p>
<p><a href="http://up.servut.us/20393" target="_blank">Download the Script</a></p>
<p>I&#8217;m aware that the script is not fully good enough  but still comments will be appreciated.</p>
<p>Thank you</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/in/"><img style="border-width: 0pt;" src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" /></a><br />
<span> </span>Bby <a rel="cc:attributionURL" href="http://www.demo.bluejavax.com/motion/">bluejavax</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/in/">Creative Commons Attribution-Share Alike 2.5 India License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/181/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Sliding Content</title>
		<link>http://www.bluejavax.com/archives/172</link>
		<comments>http://www.bluejavax.com/archives/172#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:04:48 +0000</pubDate>
		<dc:creator>bluepicaso</dc:creator>
				<category><![CDATA[Demo]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[action]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[slide]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[sliding]]></category>

		<guid isPermaLink="false">http://www.bluejavax.com/?p=172</guid>
		<description><![CDATA[Well i don&#8217;t know about you but i like Sliding menus. Well here is a code for similar sliding menus. The menus are smooth and easy to navigate. Though sometimes you might need to scroll page. They are good where the content to show in each tab is little. The tabs are easy to customize. [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.bluejavax.com/wp-content/uploads/2009/12/FireShot-capture-002-Motion-www_demo_bluejavax_com_motion.png"><img class="size-medium wp-image-173 alignleft" title="FireShot capture #002  - 'Motion' - www_demo_bluejavax_com_motion" src="http://www.bluejavax.com/wp-content/uploads/2009/12/FireShot-capture-002-Motion-www_demo_bluejavax_com_motion-300x199.png" alt="" width="300" height="199" /></a>Well i don&#8217;t know about you but i like Sliding menus. Well here is a code for similar sliding menus.</p>
<p>The menus are smooth and easy to navigate. Though sometimes you might need to scroll page.</p>
<p>They are good where the content to show in each tab is little.</p>
<p>The tabs are easy to customize.</p>
<p> <img src='http://www.bluejavax.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p><span id="more-172"></span></p>
<p>code for index.html</p>
<pre class="html">
<span class="htmlOtherTag">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span>
<span class="htmlOtherTag">&lt;html xmlns=<span class="htmlAttributeValue">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;head&gt;</span>
<span class="htmlOtherTag">&lt;meta http-equiv=<span class="htmlAttributeValue">&quot;Content-Type&quot;</span> content=<span class="htmlAttributeValue">&quot;text/html; charset=utf-8&quot;</span> /&gt;</span>
<span class="htmlOtherTag">&lt;title&gt;</span>Motion<span class="htmlOtherTag">&lt;/title&gt;</span>
<span class="htmlOtherTag">&lt;link rel=<span class="htmlAttributeValue">&quot;stylesheet&quot;</span> href=<span class="htmlAttributeValue">&quot;css/style.css&quot;</span> type=<span class="htmlAttributeValue">&quot;text/css&quot;</span> media=<span class="htmlAttributeValue">&quot;screen&quot;</span> /&gt;</span>
<span class="htmlScriptTag">&lt;script type=<span class="htmlAttributeValue">&quot;text/javascript&quot;</span> src=<span class="htmlAttributeValue">&quot;js/accordian.pack.js&quot;</span>&gt;</span><span class="htmlScriptTag">&lt;/script&gt;</span>
<span class="htmlOtherTag">&lt;/head&gt;</span>
<span class="htmlOtherTag">&lt;body onload=<span class="htmlAttributeValue">&quot;new Accordian(&#039;accordian&#039;,3,&#039;header_highlight&#039;);&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;header&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;h1&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;#&quot;</span>&gt;</span>motion<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/h1&gt;</span>
<span class="htmlOtherTag">&lt;h2&gt;</span>A free CSS Template by Six Shooter Media<span class="htmlOtherTag">&lt;/h2&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;accordian&quot;</span> &gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--Parent of the Accordion--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--Start of each accordion item--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;test-header&quot;</span> &gt;</span>Welcome<span class="htmlOtherTag">&lt;/div&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--Heading of the accordion ( clicked to show n hide ) --&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header <span class="htmlSpecialChar">&amp;amp;</span> foo-content--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;test-content&quot;</span>&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--DIV which show/hide on click of header--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--This DIV is for inline styling like padding...--&gt;</span></span>
<span class="htmlOtherTag">&lt;div&gt;</span>
<span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;images/img_example.jpg&quot;</span> alt=<span class="htmlAttributeValue">&quot;image example&quot;</span> /&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span>Hello and welcome to Motion, a free template by <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.sixshootermedia.com/free-templates&quot;</span>&gt;</span>Six Shooter Media<span class="htmlAnchorTag">&lt;/a&gt;</span>. For this template I have gone in a completely different direction and created something quite specific in its design ideals. Motion is designed for someone wishing to display a fairly small amount of information, elegantly in a single page whilst still be able to wow the user. The accordion effect used in this template is based on <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.dezinerfolio.com/2007/07/19/simple-javascript-accordions/&quot;</span>&gt;</span>this<span class="htmlAnchorTag">&lt;/a&gt;</span> fabulous piece of work which you should refer to for any help/discussion regarding the Javascript used within this template.<span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span>The design is simple, but should be elegant and innovative enough to engage the user and make them want to read more about your company/product. Orange was the colour chosen for the basis of the colour scheme but you could of course easily change that.<span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--End of each accordion item--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--Start of each accordion item--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;test1-header&quot;</span> &gt;</span>Examples<span class="htmlOtherTag">&lt;/div&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--Heading of the accordion ( clicked to show n hide ) --&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header <span class="htmlSpecialChar">&amp;amp;</span> foo-content--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;test1-content&quot;</span>&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--DIV which show/hide on click of header--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--This DIV is for inline styling like padding...--&gt;</span></span>
<span class="htmlOtherTag">&lt;div&gt;</span>
<span class="htmlOtherTag">&lt;h2&gt;</span>List Example<span class="htmlOtherTag">&lt;/h2&gt;</span>
<span class="htmlOtherTag">&lt;ul&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla lacus ipsum, semper eget, faucibus a, porttitor non, ante. Etiam quam. Quisque condimentum enim eget mauris.<span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla lacus ipsum, semper eget, faucibus a, porttitor non, ante. Etiam quam. Quisque condimentum enim eget mauris.<span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla lacus ipsum, semper eget, faucibus a, porttitor non, ante. Etiam quam. Quisque condimentum enim eget mauris.<span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;/ul&gt;</span>
<span class="htmlOtherTag">&lt;h2&gt;</span>Blockquote Example<span class="htmlOtherTag">&lt;/h2&gt;</span>
<span class="htmlOtherTag">&lt;blockquote&gt;</span>
<span class="htmlOtherTag">&lt;em&gt;</span>
But the Forest <span class="htmlOtherTag">&lt;em&gt;</span>is<span class="htmlOtherTag">&lt;/em&gt;</span> queer. Everything in it is very much more alive, more aware of what is going on, so to speak, than things are in the Shire. And the trees do not like strangers. They watch you. They are usually content merely to watch you, as long as daylight lasts, and don&#039;t do much. Occasionally the most unfriendly ones may drop a branch, or stick a root out, or grasp at you with a long trailer. But at night things can be most alarming, or so I am told.
<span class="htmlOtherTag">&lt;/em&gt;</span>
<span class="htmlOtherTag">&lt;/blockquote&gt;</span>
<span class="htmlOtherTag">&lt;h2&gt;</span>Image Example<span class="htmlOtherTag">&lt;/h2&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span><span class="htmlImageTag">&lt;img src=<span class="htmlAttributeValue">&quot;http://www.sixshootermedia.com/ssm2/wp-content/themes/Six%20Shooter%20Media/images/logo.jpg&quot;</span> alt=<span class="htmlAttributeValue">&quot;&quot;</span> /&gt;</span> <span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlOtherTag">&lt;h2&gt;</span>Table Example<span class="htmlOtherTag">&lt;/h2&gt;</span>
<span class="htmlTableTag">&lt;table&gt;</span>
<span class="htmlTableTag">&lt;tbody&gt;</span><span class="htmlTableTag">&lt;tr&gt;</span>
<span class="htmlTableTag">&lt;th&gt;</span>Col 1<span class="htmlTableTag">&lt;/th&gt;</span>
<span class="htmlTableTag">&lt;th&gt;</span>Col 2<span class="htmlTableTag">&lt;/th&gt;</span>
<span class="htmlTableTag">&lt;th&gt;</span>Col 3<span class="htmlTableTag">&lt;/th&gt;</span>
<span class="htmlTableTag">&lt;/tr&gt;</span>
<span class="htmlTableTag">&lt;tr&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>2<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>23<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>76<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;/tr&gt;</span>
<span class="htmlTableTag">&lt;tr&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>54<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>233<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td&gt;</span>1233<span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;/tr&gt;</span>
<span class="htmlTableTag">&lt;/tbody&gt;</span><span class="htmlTableTag">&lt;/table&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--End of each accordion item--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--Start of each accordion item--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;test2-header&quot;</span> &gt;</span>Contact<span class="htmlOtherTag">&lt;/div&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--Heading of the accordion ( clicked to show n hide ) --&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header <span class="htmlSpecialChar">&amp;amp;</span> foo-content--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;test2-content&quot;</span>&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--DIV which show/hide on click of header--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--This DIV is for inline styling like padding...--&gt;</span></span>
<span class="htmlOtherTag">&lt;div&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span>Here&#039;s an example contact form. This is not an operation form, just an example!<span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlFormTag">&lt;form action=<span class="htmlAttributeValue">&quot;&quot;</span>&gt;</span>
<span class="htmlFormTag">&lt;input value=<span class="htmlAttributeValue">&quot;Name&quot;</span> /&gt;</span><span class="htmlOtherTag">&lt;br /&gt;</span>
<span class="htmlFormTag">&lt;input value=<span class="htmlAttributeValue">&quot;Email Address&quot;</span> /&gt;</span><span class="htmlOtherTag">&lt;br /&gt;</span>
<span class="htmlFormTag">&lt;textarea cols=<span class="htmlAttributeValue">&quot;5&quot;</span> rows=<span class="htmlAttributeValue">&quot;5&quot;</span>&gt;</span>
<span class="htmlFormTag">&lt;/textarea&gt;</span><span class="htmlOtherTag">&lt;br /&gt;</span>
<span class="htmlFormTag">&lt;input type=<span class="htmlAttributeValue">&quot;submit&quot;</span> /&gt;</span>
<span class="htmlFormTag">&lt;/form&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span>Some additional text regarding contact information.<span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--End of each accordion item--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--Start of each accordion item--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;test3-header&quot;</span> &gt;</span>Links<span class="htmlOtherTag">&lt;/div&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--Heading of the accordion ( clicked to show n hide ) --&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header <span class="htmlSpecialChar">&amp;amp;</span> foo-content--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;test3-content&quot;</span>&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--DIV which show/hide on click of header--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--This DIV is for inline styling like padding...--&gt;</span></span>
<span class="htmlOtherTag">&lt;div&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span>Some links for your viewing pleasure:<span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlOtherTag">&lt;ul&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.sixshootermedia.com&quot;</span>&gt;</span>Six Shooter Media<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.sixshootermedia.com/free-templates/&quot;</span>&gt;</span>Free Templates<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.opendesigns.org&quot;</span>&gt;</span>More Free Templates<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.google.com&quot;</span>&gt;</span>Google<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.dezinerfolio.com/2007/07/19/simple-javascript-accordions/&quot;</span>&gt;</span>Simple Accordions<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;li&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.famfamfam.com/lab/icons/silk/&quot;</span>&gt;</span>FamFamFam Silk Icons<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/li&gt;</span>
<span class="htmlOtherTag">&lt;/ul&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--End of each accordion item--&gt;</span></span>
<span class="htmlOtherTag">&lt;/div&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!--End of accordion parent--&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;footer&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://validator.w3.org/check?uri=referer&quot;</span>&gt;</span>XHTML<span class="htmlAnchorTag">&lt;/a&gt;</span> | <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://jigsaw.w3.org/css-validator/&quot;</span>&gt;</span>CSS<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;br /&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;#content&quot;</span>&gt;</span>Top<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!-- Please leave this line intact --&gt;</span></span>
<span class="htmlOtherTag">&lt;p&gt;</span>Design: <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.sixshootermedia.com&quot;</span>&gt;</span>Six Shooter Media<span class="htmlAnchorTag">&lt;/a&gt;</span>. <span class="htmlOtherTag">&lt;br /&gt;</span>
AJAX: <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.dezinerfolio.com/2007/07/19/simple-javascript-accordions/&quot;</span>&gt;</span>Simple Accordions<span class="htmlAnchorTag">&lt;/a&gt;</span>. Iconography: <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.famfamfam.com/lab/icons/silk/&quot;</span>&gt;</span>FamFamFam<span class="htmlAnchorTag">&lt;/a&gt;</span>. Sponsor: <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://www.yours4money.com&quot;</span> rel=<span class="htmlAttributeValue">&quot;nofollow&quot;</span>&gt;</span>Casino<span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;br /&gt;</span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!-- you can delete below here --&gt;</span></span>
© All your copyright information here.<span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/body&gt;</span>
<span class="htmlOtherTag">&lt;/html&gt;</span>
</pre>
<p>The code uses Java scripts and css.</p>
<p>You can <a href="http://www.demo.bluejavax.com/motion/" target="_blank">VIEW DEMO</a></p>
<p><a href="http://up.servut.us/20170" target="_blank">Download Files</a> [Expires in <strong>4 weeks 2 days</strong> (05:37, 17 Jan 2010)]</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/in/"><img style="border-width: 0pt;" src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" /></a><br />
<span>BlueJavax</span> by <a rel="cc:attributionURL" href="http://www.demo.bluejavax.com/motion/">bluejavax</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/in/">Creative Commons Attribution-Share Alike 2.5 India License</a>.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=dd6a0fd8-f4c8-4e08-af0d-494b80bef85b" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><img id="smallDivTip" style="z-index: 90; border: 0px solid blue; position: absolute; left: 263px; top: 68px;" src="chrome://dictionarytip/skin/dtipIconHover.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluejavax.com/archives/172/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
