<?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>Altmint Blog &#187; JavaScript</title>
	<atom:link href="http://blog.altmint.com/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.altmint.com</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 12:28:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript Explode</title>
		<link>http://blog.altmint.com/javascript-explode</link>
		<comments>http://blog.altmint.com/javascript-explode#comments</comments>
		<pubDate>Fri, 02 Apr 2010 05:32:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[explode functionality in javascript]]></category>
		<category><![CDATA[Javascript explode]]></category>

		<guid isPermaLink="false">http://blog.altmint.com/?p=59</guid>
		<description><![CDATA[What is the equivalent function for php explode in Javascript?
There is no explode function in java script.but we can handle the explode functionality by writing some custom functions. here is a simple java script  code for you.
If you Run the following code
explode(&#8217;. &#8216;, &#8216;blog.altmint.com);
It Could return
1.{0: &#8216;blog&#8217;, 1: &#8216;altmint&#8217;, 2: &#8216;com&#8217;}

function explode( delimiter, string, limit [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is the equivalent function for php explode in Javascript?</strong></p>
<p>There is no explode function in java script.but we can handle the explode functionality by writing some custom functions. here is a simple java script  code for you.</p>
<p>If you Run the following code<br />
explode(&#8217;. &#8216;, &#8216;blog.altmint.com);</p>
<p>It Could return<br />
1.{0: &#8216;blog&#8217;, 1: &#8216;altmint&#8217;, 2: &#8216;com&#8217;}</p>
<pre class="brush: javascript">
function explode( delimiter, string, limit ) {
// Splits a string on string separator and return array of components. If limit is positive only limit number of components is returned. If limit is negative all components except the last abs(limit) are returned.
//
// version: 810.114
// discuss at: http://phpjs.org/functions/explode
// +     original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// +     improved by: kenneth
// +     improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// +     improved by: d3x
// +     bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// *     example 1: explode(&#039; &#039;, &#039;Kevin van Zonneveld&#039;);
// *     returns 1: {0: &#039;Kevin&#039;, 1: &#039;van&#039;, 2: &#039;Zonneveld&#039;}
// *     example 2: explode(&#039;=&#039;, &#039;a=bc=d&#039;, 2);
// *     returns 2: [&#039;a&#039;, &#039;bc=d&#039;]

var emptyArray = { 0: &#039;&#039; };

// third argument is not required
if ( arguments.length &lt; 2
|| typeof arguments[0] == &#039;undefined&#039;
|| typeof arguments[1] == &#039;undefined&#039; )
{
return null;
}

if ( delimiter === &#039;&#039;
|| delimiter === false
|| delimiter === null )
{
return false;
}

if ( typeof delimiter == &#039;function&#039;
|| typeof delimiter == &#039;object&#039;
|| typeof string == &#039;function&#039;
|| typeof string == &#039;object&#039; )
{
return emptyArray;
}

if ( delimiter === true ) {
delimiter = &#039;1&#039;;
}

if (!limit) {
return string.toString().split(delimiter.toString());
} else {
// support for limit argument
var splitted = string.toString().split(delimiter.toString());
var partA = splitted.splice(0, limit - 1);
var partB = splitted.join(delimiter.toString());
partA.push(partB);
return partA;
}
}
</pre>
<p>Click <a href="http://www.navioo.com/javascript/tutorials/Javascript_explode_1622.html" target="_blank">here to Read  more. </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.altmint.com/javascript-explode/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Alter Css Properties with Jquery</title>
		<link>http://blog.altmint.com/alter-css-properties-with-jquery</link>
		<comments>http://blog.altmint.com/alter-css-properties-with-jquery#comments</comments>
		<pubDate>Thu, 25 Mar 2010 14:40:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Alter Css Properties]]></category>
		<category><![CDATA[Javascript Css]]></category>

		<guid isPermaLink="false">http://blog.altmint.com/?p=41</guid>
		<description><![CDATA[how to change the Properties of class or id with javascript?
It is very simple with jquery. we can alter or add any css property to the class or id. here is a sample example for it.
Assuming Jquery is Included
$(&#8221;#IdName&#8221;).css(&#8221;color&#8221;,&#8221;red&#8221;);
(or)
$(&#8221;.Classname&#8221;).css(&#8221;color&#8221;,&#8221;red&#8221;);
]]></description>
			<content:encoded><![CDATA[<p><strong>how to change the Properties of class or id with javascript?</strong></p>
<p>It is very simple with jquery. we can alter or add any css property to the class or id. here is a sample example for it.</p>
<p>Assuming Jquery is Included</p>
<blockquote><p>$(&#8221;#IdName&#8221;).css(&#8221;color&#8221;,&#8221;red&#8221;);<br />
(or)<br />
$(&#8221;.Classname&#8221;).css(&#8221;color&#8221;,&#8221;red&#8221;);</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.altmint.com/alter-css-properties-with-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Properties To JavaScript Reference Conversion</title>
		<link>http://blog.altmint.com/change-style-properties-with-javascript</link>
		<comments>http://blog.altmint.com/change-style-properties-with-javascript#comments</comments>
		<pubDate>Thu, 25 Mar 2010 13:29:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Css prpoperties]]></category>
		<category><![CDATA[Javascript conversion]]></category>

		<guid isPermaLink="false">http://blog.altmint.com/?p=32</guid>
		<description><![CDATA[CSS Properties To JavaScript Reference Conversion



CSS Property
JavaScript Reference


background
background


background-attachment
backgroundAttachment


background-color
backgroundColor


background-image
backgroundImage


background-position
backgroundPosition


background-repeat
backgroundRepeat


border
border


border-bottom
borderBottom


border-bottom-color
borderBottomColor


border-bottom-style
borderBottomStyle


border-bottom-width
borderBottomWidth


border-color
borderColor


border-left
borderLeft


border-left-color
borderLeftColor


border-left-style
borderLeftStyle


border-left-width
borderLeftWidth


border-right
borderRight


border-right-color
borderRightColor


border-right-style
borderRightStyle


border-right-width
borderRightWidth


border-style
borderStyle


border-top
borderTop


border-top-color
borderTopColor


border-top-style
borderTopStyle


border-top-width
borderTopWidth


border-width
borderWidth


clear
clear


clip
clip


color
color


cursor
cursor


display
display


filter
filter


font
font


font-family
fontFamily


font-size
fontSize


font-variant
fontVariant


font-weight
fontWeight


height
height


left
left


letter-spacing
letterSpacing


line-height
lineHeight


list-style
listStyle


list-style-image
listStyleImage


list-style-position
listStylePosition


list-style-type
listStyleType


margin
margin


margin-bottom
marginBottom


margin-left
marginLeft


margin-right
marginRight


margin-top
marginTop


overflow
overflow


padding
padding


padding-bottom
paddingBottom


padding-left
paddingLeft


padding-right
paddingRight


padding-top
paddingTop


page-break-after
pageBreakAfter


page-break-before
pageBreakBefore


position
position


float
styleFloat


text-align
textAlign


text-decoration
textDecoration


text-decoration: blink
textDecorationBlink


text-decoration: line-through
textDecorationLineThrough


text-decoration: none
textDecorationNone


text-decoration: overline
textDecorationOverline


text-decoration: underline
textDecorationUnderline


text-indent
textIndent


text-transform
textTransform


top
top


vertical-align
verticalAlign


visibility
visibility


width
width


z-index
zIndex



Usage
Internet Explorer
document.all.div_id.style.JS_property_reference = &#8220;new_CSS_property_value&#8221;;
Older Netscape&#8217;s (4.7 and earlier)
document.div_id.JS_property_reference = &#8220;new_CSS_property_value&#8221;;
Netscape 6.0+ and Opera (and other Mozilla)
document.getElementById(div_id).style.JS_property_reference = &#8220;new_CSS_property_value&#8221;;
Note the use of parentheses instead of square brackets in newer Mozilla&#8217;s &#8220;getElementById()&#8221; reference.
]]></description>
			<content:encoded><![CDATA[<h2>CSS Properties To JavaScript Reference Conversion</h2>
<table border="2" cellspacing="0" cellpadding="5" width="100%" align="center" >
<tbody>
<tr>
<th width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">CSS Property</th>
<th width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">JavaScript Reference</th>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">background</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">background</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">background-attachment</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">backgroundAttachment</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">background-color</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">backgroundColor</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">background-image</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">backgroundImage</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">background-position</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">backgroundPosition</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">background-repeat</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">backgroundRepeat</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-bottom</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderBottom</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-bottom-color</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderBottomColor</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-bottom-style</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderBottomStyle</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-bottom-width</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderBottomWidth</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-color</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderColor</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-left</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderLeft</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-left-color</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderLeftColor</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-left-style</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderLeftStyle</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-left-width</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderLeftWidth</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-right</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderRight</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-right-color</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderRightColor</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-right-style</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderRightStyle</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-right-width</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderRightWidth</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-style</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderStyle</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-top</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderTop</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-top-color</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderTopColor</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-top-style</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderTopStyle</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-top-width</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderTopWidth</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">border-width</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">borderWidth</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">clear</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">clear</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">clip</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">clip</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">color</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">color</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">cursor</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">cursor</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">display</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">display</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">filter</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">filter</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">font</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">font</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">font-family</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">fontFamily</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">font-size</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">fontSize</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">font-variant</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">fontVariant</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">font-weight</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">fontWeight</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">height</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">height</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">left</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">left</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">letter-spacing</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">letterSpacing</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">line-height</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">lineHeight</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">list-style</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">listStyle</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">list-style-image</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">listStyleImage</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">list-style-position</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">listStylePosition</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">list-style-type</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">listStyleType</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">margin</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">margin</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">margin-bottom</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">marginBottom</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">margin-left</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">marginLeft</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">margin-right</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">marginRight</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">margin-top</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">marginTop</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">overflow</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">overflow</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">padding</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">padding</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">padding-bottom</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">paddingBottom</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">padding-left</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">paddingLeft</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">padding-right</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">paddingRight</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">padding-top</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">paddingTop</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">page-break-after</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">pageBreakAfter</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">page-break-before</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">pageBreakBefore</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">position</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">position</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">float</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">styleFloat</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-align</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textAlign</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-decoration</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textDecoration</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-decoration: blink</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textDecorationBlink</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-decoration: line-through</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textDecorationLineThrough</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-decoration: none</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textDecorationNone</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-decoration: overline</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textDecorationOverline</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-decoration: underline</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textDecorationUnderline</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-indent</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textIndent</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">text-transform</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">textTransform</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">top</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">top</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">vertical-align</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">verticalAlign</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">visibility</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">visibility</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">width</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">width</td>
</tr>
<tr>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">z-index</td>
<td width="50%" align="left" style="border:1px solid;padding:5px 0px 5px 20px; ">zIndex</td>
</tr>
</tbody>
</table>
<h2>Usage</h2>
<h3>Internet Explorer</h3>
<p>document.all.<em>div_id</em>.style.<em>JS_property_reference</em> = <em>&#8220;new_CSS_property_value&#8221;</em>;</p>
<h3>Older Netscape&#8217;s (4.7 and earlier)</h3>
<p>document.<em>div_id</em>.<em>JS_property_reference</em> = <em>&#8220;new_CSS_property_value&#8221;</em>;</p>
<h3>Netscape 6.0+ and Opera (and other Mozilla)</h3>
<p>document.getElementById(<em>div_id</em>).style.<em>JS_property_reference</em> = <em>&#8220;new_CSS_property_value&#8221;</em>;</p>
<p>Note the use of parentheses instead of square brackets in newer Mozilla&#8217;s &#8220;getElementById()&#8221; reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.altmint.com/change-style-properties-with-javascript/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JavaScript Image Rotator</title>
		<link>http://blog.altmint.com/javascript-image-rotator</link>
		<comments>http://blog.altmint.com/javascript-image-rotator#comments</comments>
		<pubDate>Tue, 09 Mar 2010 07:40:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[abitary angle]]></category>
		<category><![CDATA[angle]]></category>
		<category><![CDATA[image rotator]]></category>
		<category><![CDATA[javascript image rotator]]></category>
		<category><![CDATA[rotator]]></category>

		<guid isPermaLink="false">http://blog.altmint.com/?p=16</guid>
		<description><![CDATA[We can rotate the image by angle.here is a source code for it ..( rotate an image by an arbitrary angle, it works in IE7 &#38; FF3

&#60;html&#62;
&#60;head&#62;
&#60;!--
**** Universal JavaScript Image Rotator v1.1 (16-03-2009)
//--&#62;
&#60;script type=&#34;text/javascript&#34;&#62;
&#60;!--
//******************** Image parameters *******************
imagename=&#039;kk.jpg&#039;
xsize=180
ysize=240
//*********** nothing to configure below this line ********
//--&#62;
&#60;/script&#62;
&#60;/head&#62;
&#60;body style=&#34;margin:20px&#34;&#62;
&#60;H1&#62;Universal JavaScript Image Rotator v1.0 (14-03-2009)&#60;/H1&#62;
&#60;div id=&#34;container&#34; style=&#34;overflow:hidden&#34;&#62;
&#60;script type=&#34;text/javascript&#34;&#62;
&#60;!--
   [...]]]></description>
			<content:encoded><![CDATA[<p>We can rotate the image by angle.here is a source code for it ..( rotate an image by an arbitrary angle, it works in IE7 &amp; FF3</p>
<pre class="brush: html">
&lt;html&gt;
&lt;head&gt;
&lt;!--
**** Universal JavaScript Image Rotator v1.1 (16-03-2009)
//--&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
//******************** Image parameters *******************
imagename=&#039;kk.jpg&#039;
xsize=180
ysize=240
//*********** nothing to configure below this line ********
//--&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body style=&quot;margin:20px&quot;&gt;
&lt;H1&gt;Universal JavaScript Image Rotator v1.0 (14-03-2009)&lt;/H1&gt;
&lt;div id=&quot;container&quot; style=&quot;overflow:hidden&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
    canvsize=Math.round(Math.sqrt(xsize*xsize+ysize*ysize)); //I need a square canvas for complete rotation
    document.write(&#039;&lt;canvas id=canvas width=&#039;+canvsize+&#039; height=&#039;+canvsize+&#039;&gt;&lt;/canvas&gt;&#039;)
    document.write(&#039;&lt;div id=&quot;canvas2&quot;&gt;&lt;img id=im width=&#039;+xsize+&#039; height=&#039;+ysize+&#039;&gt;&lt;/div&gt;&#039;)
//--&gt;
&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
ie=0
var browser=navigator.appName;
if (browser==&#039;Microsoft Internet Explorer&#039;) ie=1;

document.getElementById(&quot;container&quot;).style.width=canvsize+&#039;px&#039;
document.getElementById(&quot;container&quot;).style.height=canvsize+&#039;px&#039;
//document.getElementById(&quot;canvas&quot;).style.width=canvsize+&#039;px&#039;
//document.getElementById(&quot;canvas&quot;).style.height=canvsize+&#039;px&#039;
document.getElementById(&quot;canvas2&quot;).style.width=xsize+&#039;px&#039;
document.getElementById(&quot;canvas2&quot;).style.height=ysize+&#039;px&#039;
document.getElementById(&quot;canvas2&quot;).style.marginLeft=(canvsize-xsize)/2+&#039;px&#039;
document.getElementById(&quot;canvas2&quot;).style.marginTop=(canvsize-ysize)/2+&#039;px&#039;

var browser=navigator.appName;
if (ie==1) {
    document.getElementById(&#039;im&#039;).src=imagename;
    var canvas2=document.getElementById(&#039;canvas2&#039;);
    canvas2.style.filter=&quot;progid:DXImageTransform.Microsoft.Matrix(M11=&#039;1.0&#039;, sizingmethod=&#039;auto expand&#039;)&quot;;
    }
else {
    var canvas = document.getElementById(&#039;canvas&#039;);
    var ctx = canvas.getContext(&#039;2d&#039;);
    var img1 = new Image();
    img1.src = imagename;
    img1.onload=function() { ctx.drawImage(img1, (canvsize-xsize)/2, (canvsize-ysize)/2, xsize, ysize);}
}

function rotate(deg){
    rad = deg*Math.PI/180
    if (ie==1) rotate_ie(rad,deg)
    else rotate_ff(rad)
}

function rotate_ff(rad) {
    ctx.clearRect(0,0,canvsize,canvsize);
    ctx.save();
    ctx.translate(canvsize/2,canvsize/2);
    ctx.rotate(rad);
    ctx.drawImage(img1, -xsize/2, -ysize/2, xsize, ysize);
    ctx.restore();
}

function rotate_ie(rad)
{
    canvas2.filters.item(0).M11 = Math.cos(rad);
    canvas2.filters.item(0).M12 = -Math.sin(rad);
    canvas2.filters.item(0).M21 = Math.sin(rad);
    canvas2.filters.item(0).M22 = Math.cos(rad);
    canvas2.style.marginLeft=((canvsize-canvas2.offsetWidth)/2)+&#039;px&#039;
    canvas2.style.marginTop=((canvsize-canvas2.offsetHeight)/2)+&#039;px&#039;
}
//--&gt;
&lt;/script&gt;
&lt;/div&gt;

&lt;p&gt;
Enter the number of degrees (positive or negative) you want to rotate the image:&lt;BR&gt;
&lt;input type=&quot;text&quot; id=&quot;rotation&quot;&gt;
&lt;input type=&quot;button&quot; value=&quot;Rotate&quot; onclick=&quot;rotate(document.getElementById(&#039;rotation&#039;).value);&quot;&gt;
&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.altmint.com/javascript-image-rotator/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
