<?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>Php Development &#187; image</title>
	<atom:link href="http://www.maheshchari.com/tag/image/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maheshchari.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 17 Jan 2012 02:42:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>css image rollover</title>
		<link>http://www.maheshchari.com/css-image-rollover/</link>
		<comments>http://www.maheshchari.com/css-image-rollover/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 17:25:05 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[PHP/mysql]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=210</guid>
		<description><![CDATA[image rollover effect with css background image Here we use basic css back ground image to get rollover effect.the logic is simple and we can find it in comments in script itself. we create a empty link set back ground as test1.jpg and display to block and height and width to 150px. build a suido [...]]]></description>
			<content:encoded><![CDATA[<h1>image rollover effect with css background image </h1>
<p>Here we use basic css back ground image  to get rollover effect.the logic is simple and we can find it in comments in script itself.</p>
<ul>
<li>we create a empty link </li>
<li> set back ground as test1.jpg and display to block and height and width to 150px. </li>
<li>build a suido selctor hover to link and set back ground image to test2.jpg </li>
<li>this works even javascript disabled browsers also </li>
</ul>
<h3>Download Script</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/image-rollover-css.zip'>image-rollover-css</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;image rollover with css&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
#imagerollover a {
	background-image: url(test2.JPG);
	display: block;
	background-repeat: no-repeat;
	height: 150px;
	width: 150px;
}
#imagerollover a:hover{
	background-image: url(test1.JPG);
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;imagerollover&quot;&gt;&lt;a href=&quot;#test&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<h3>Download Script</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/image-rollover-css.zip'>image-rollover-css</a></p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=210&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/css-image-rollover/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>javascript image rollover</title>
		<link>http://www.maheshchari.com/javascript-image-rollover/</link>
		<comments>http://www.maheshchari.com/javascript-image-rollover/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 17:00:25 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=206</guid>
		<description><![CDATA[image rollover effect with javascript image object we create a image object with new Image(); set a source attribute to test1.jpg. create onmouseover even function ,then set image object src to test2.jpg create onmouseout event function,then set image object src to test1.jpg to test click even we can see a small alert box. Download Sorce [...]]]></description>
			<content:encoded><![CDATA[<h1>image rollover effect with javascript image object</h1>
<ul>
<li>we create a image object with new Image();</li>
<li> set a source attribute to test1.jpg.</li>
<li>create onmouseover even function ,then set image object src to test2.jpg</li>
<li>create onmouseout event function,then set image object src to test1.jpg</li>
<li>to test click even we can see a small alert box.   </li>
</ul>
<h3>Download Sorce Code</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/image-rollover-javascript.zip'>image-rollover-javascript</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Image Roll over&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;imagerolover&quot;&gt;&lt;/div&gt;
&lt;script&gt;
var myimage=new Image(); //create a image object
myimage.src=&quot;test1.jpg&quot;;//initially set test1.jpg as src attribute
//onmouseover set test2.jpg as src
myimage.onmouseover=function(){
this.src=&quot;test2.jpg&quot;;
}
//on mouseout set test1.jpg src again
myimage.onmouseout=function(){
this.src=&quot;test1.jpg&quot;;
}
//create click event 
myimage.onclick=function(){
alert('U clicked me');
}
//get imagerolover div element by id and append the image
document.getElementById('imagerolover').appendChild(myimage);
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<h3>Download Sorce Code</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/image-rollover-javascript.zip'>image-rollover-javascript</a></p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=206&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/javascript-image-rollover/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

