<?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>TutorBoy &#187; Sreejith Sreedharan</title>
	<atom:link href="http://articles.tutorboy.com/author/sreejithcools/feed/" rel="self" type="application/rss+xml" />
	<link>http://articles.tutorboy.com</link>
	<description>Log on to Techknowledgey</description>
	<lastBuildDate>Wed, 18 Jan 2012 09:06:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Creating a simple fade over effect &#8211; JQuery</title>
		<link>http://articles.tutorboy.com/2010/03/09/creating-a-simple-fade-over-effect-jquery/</link>
		<comments>http://articles.tutorboy.com/2010/03/09/creating-a-simple-fade-over-effect-jquery/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 12:48:20 +0000</pubDate>
		<dc:creator>Sreejith Sreedharan</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Js]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=1428</guid>
		<description><![CDATA[Here , i will tell you how to add a fade over /fade in effect to image button in jquery. ...]]></description>
			<content:encoded><![CDATA[<p>Here , i will tell you how to add a fade over /fade in effect to image button in jquery. its very simple&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<h2>1. Import jquery</h2>
<pre class="brush:js">&lt;script type='text/javascript' src='http://yoursite.com/jquery.js'&gt;&lt;/script&gt;</pre>
<h2>2. Add a div tag with image in it</h2>
<pre class="brush:html">&lt;div class="fadeDiv"&gt;
    &lt;img src="1jpg" alt="" /&gt;
    &lt;img src="2.jpg" alt="" /&gt;
&lt;/div&gt;<span id="more-1428"></span></pre>
<h2>3 .  Add script Jquery on load</h2>
<pre class="brush:js">$(document).ready(function(){
 $("img").hover(
 function() {
 $(this).animate({"opacity": "0"}, "slow");
 },
 function() {
 $(this).animate({"opacity": "1"}, "slow");
 }
 );
});</pre>
<p>That&#8217;s it . you can now see the fade in and fade out effect on mouse over the button<br />
you can change the js to add more functionalites.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2010/03/09/creating-a-simple-fade-over-effect-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Type Casting in Java</title>
		<link>http://articles.tutorboy.com/2010/03/05/type-casting/</link>
		<comments>http://articles.tutorboy.com/2010/03/05/type-casting/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 09:51:16 +0000</pubDate>
		<dc:creator>Sreejith Sreedharan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Opps]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=1160</guid>
		<description><![CDATA[In any Object oriented programming language , one 					object reference can be type cast into another object reference.
There are compile-time ...]]></description>
			<content:encoded><![CDATA[<p>In any Object oriented programming language , one 					<strong>object</strong> <strong>reference</strong> can be <strong>type cast</strong> into another object reference.</p>
<p>There are compile-time rules and  					runtime rules for <strong>casting in java</strong></p>
<p>There can be 2 casting java scenarios ·</p>
<p>Upcasting<br />
Downcasting</p>
<p>When we cast a reference along the class hierarchy in a direction from the root class towards the children or subclasses, it is a downcast. When we cast a reference along the class hierarchy in a direction from the sub classes towards the root, it is an upcast. <span id="more-1160"></span>We need not use a cast operator in this case. The compile-time rules are there to catch attempted casts in cases that are simply not possible. This happens when we try to attempt casts on objects that are totally unrelated (that is not subclass super class relationship or a class-interface relationship) At runtime a ClassCastException is thrown if the object being cast is not compatible with the new type it is being cast to.</p>
<p>Below is an example showing when a   ClassCastException can occur during object casting</p>
<h2>Java Code</h2>
<pre class="brush:java">//X is a supper class of Y and Z which are sibblings.
public class RunTimeCastDemo {

	public static void main(String args[]) {
		X x = new X();
		Y y = new Y();
		Z z = new Z();
		X xy = new Y(); // compiles ok (up the hierarchy)
		X xz = new Z(); // compiles ok (up the hierarchy)
		//		Y yz = new Z();   incompatible type (siblings)
		//		Y y1 = new X();   X is not a Y
		//		Z z1 = new X();   X is not a Z
		X x1 = y; // compiles ok (y is subclass of X)
		X x2 = z; // compiles ok (z is subclass of X)
		Y y1 = (Y) x; // compiles ok but produces runtime error
		Z z1 = (Z) x; // compiles ok but produces runtime error
		Y y2 = (Y) x1; // compiles and runs ok (x1 is type Y)
		Z z2 = (Z) x2; // compiles and runs ok (x2 is type Z)
		//		Y y3 = (Y) z;     inconvertible types (siblings)
		//		Z z3 = (Z) y;     inconvertible types (siblings)
		Object o = z;
		Object o1 = (Y) o; // compiles ok but produces runtime error
	}
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2010/03/05/type-casting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a simple popup</title>
		<link>http://articles.tutorboy.com/2010/03/02/creating-a-simple-popup/</link>
		<comments>http://articles.tutorboy.com/2010/03/02/creating-a-simple-popup/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 06:11:13 +0000</pubDate>
		<dc:creator>Sreejith Sreedharan</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=1132</guid>
		<description><![CDATA[This tutorial will guide you create a simple popup based on CSS and Javascript
1.  Create a simple div
HTML
&#60;div id="overlayContent" style="display:none;z-index:110;width:100%;position:absolute;left:0;top:25;height:200px;"&#62; ...]]></description>
			<content:encoded><![CDATA[<p>This tutorial will guide you create a simple popup based on CSS and Javascript</p>
<h2>1.  Create a simple div</h2>
<h2>HTML</h2>
<pre class="brush:html">&lt;div id="overlayContent" style="display:none;z-index:110;width:100%;position:absolute;left:0;top:25;height:200px;"&gt; &lt;/div&gt;</pre>
<p>here , make sure you put <strong>z-index</strong> to a value , display to none and position as absoulte.<span id="more-1132"></span></p>
<h2>2.  Write Open PopUP and Close PopUp in javascript</h2>
<h2>Javascript</h2>
<pre class="brush:js">// for popup Open
function popupwindowOpen()
{
document.getElementById('overlayContent').style.display = "block";

}
// for popup close
function popupwindowClose()
{
document.getElementById('overlayContent').style.display = "none";
}</pre>
<p>That&#8217;s all&#8230;&#8230;&#8230;. this is a simple popup . you can add extra features to it..ex:apply CSS<br />
and it will look good.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2010/03/02/creating-a-simple-popup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

