<?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>Ask me Questions and get Answers ! &#187; JavaScript</title>
	<atom:link href="http://askmetoo.com/category/internet/web-development/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://askmetoo.com</link>
	<description>Ask Questions and get Answers About everything for free!</description>
	<lastBuildDate>Wed, 07 Jul 2010 15:41:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to make onclick for show or hide div?</title>
		<link>http://askmetoo.com/how-to-make-onclick-for-show-or-hide-div.htm</link>
		<comments>http://askmetoo.com/how-to-make-onclick-for-show-or-hide-div.htm#comments</comments>
		<pubDate>Mon, 01 Dec 2008 16:51:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Div]]></category>
		<category><![CDATA[make]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=28</guid>
		<description><![CDATA[it is easy! to show div in javascript

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
&#60;style&#62;
#hide_show{
display:none
}
&#60;/style&#62;
&#60;script language=&#34;javascript&#34;&#62;
function hidediv&#40;div&#41; &#123;
&#160;
  if &#40;document.getElementById&#41;
     document.poppedLayer = eval&#40;'document.getElementById(div)'&#41;;
  else if &#40;document.all&#41;
     document.poppedLayer = eval&#40;'document.all[div]'&#41;;
  else
     document.poppedLayer = eval&#40;'document.layers[div]'&#41;;
  document.poppedLayer.style.display = &#34;none&#34;;
&#125;
&#160;
function showdiv&#40;div&#41; &#123;
  if &#40;document.getElementById&#41;
     document.poppedLayer [...]]]></description>
			<content:encoded><![CDATA[<p>it is easy! to show div in javascript</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">&lt;style&gt;
#hide_show{
display:none
}
&lt;/style&gt;
<span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> hidediv<span style="color: #009900;">&#40;</span>div<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#41;</span>
     document.<span style="color: #660066;">poppedLayer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'document.getElementById(div)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">all</span><span style="color: #009900;">&#41;</span>
     document.<span style="color: #660066;">poppedLayer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'document.all[div]'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">else</span>
     document.<span style="color: #660066;">poppedLayer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'document.layers[div]'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  document.<span style="color: #660066;">poppedLayer</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;none&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> showdiv<span style="color: #009900;">&#40;</span>div<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#41;</span>
     document.<span style="color: #660066;">poppedLayer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'document.getElementById(div)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">all</span><span style="color: #009900;">&#41;</span>
     document.<span style="color: #660066;">poppedLayer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'document.all[div]'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">else</span>
     document.<span style="color: #660066;">poppedLayer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'document.layers[div]'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  document.<span style="color: #660066;">poppedLayer</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;block&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
&lt;a href=&quot;#&quot; onclick=&quot;showdiv('hide_show')&quot;&gt;show&lt;/a&gt; 
&lt;a href=&quot;#&quot; onclick=&quot;hidediv('hide_show')&quot;&gt;show&lt;/a&gt;
&lt;div id=&quot;hide_show&quot;&gt;
&lt;h1&gt;Here I am!&lt;/h1&gt;
&lt;/div&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/how-to-make-onclick-for-show-or-hide-div.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Can I change table cellPadding  from JavaScript?</title>
		<link>http://askmetoo.com/how-can-i-change-table-cellpadding-from-javascript.htm</link>
		<comments>http://askmetoo.com/how-can-i-change-table-cellpadding-from-javascript.htm#comments</comments>
		<pubDate>Tue, 22 Jan 2008 10:10:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Text]]></category>

		<guid isPermaLink="false">http://askmetoo.com/2008/01/22/how-can-i-change-table-cellpadding-from-javascript/</guid>
		<description><![CDATA[
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
&#60;script type=”text/javascript”&#62;
function padding(){
document.getElementById(’myTable’).cellPadding=”20″
}
&#60;/script&#62;
&#160;
&#60;table id=”myTable” border=”1″&#62;
&#60;tr&#62;
&#60;td&#62;first&#60;/td&#62;
&#60;td&#62;second&#60;/td&#62;
&#60;/tr&#62;
&#60;tr&#62;
&#60;td&#62;3&#60;/td&#62;
&#60;td&#62;4&#60;/td&#62;
&#60;/tr&#62;
&#60;/table&#62;
&#60;form&#62;
&#60;input type=”button” onclick=”padding()” value=”Change Cellpadding to 20″&#62;

]]></description>
			<content:encoded><![CDATA[
<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
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;script type=”text/javascript”&gt;
function padding(){
document.getElementById(’myTable’).cellPadding=”20″
}
&lt;/script&gt;
&nbsp;
&lt;table id=”myTable” border=”1″&gt;
&lt;tr&gt;
&lt;td&gt;first&lt;/td&gt;
&lt;td&gt;second&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;form&gt;
&lt;input type=”button” onclick=”padding()” value=”Change Cellpadding to 20″&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/how-can-i-change-table-cellpadding-from-javascript.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How do I place text to div?</title>
		<link>http://askmetoo.com/how-do-i-place-text-to-div.htm</link>
		<comments>http://askmetoo.com/how-do-i-place-text-to-div.htm#comments</comments>
		<pubDate>Wed, 16 Jan 2008 21:16:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Div]]></category>
		<category><![CDATA[Place]]></category>
		<category><![CDATA[Text]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=3</guid>
		<description><![CDATA[JavaScript allowing to do this by this easy steps:

1
2
3
4
5
&#60;script type=”text/javascript”&#62;
document.getElementById(&#34;z&#34;).innerHTML = &#34;bla bnla&#34;;
&#60;/script&#62; 
&#160;
&#60;diz id=”z”&#62; Text goes here&#60;/div&#62;

]]></description>
			<content:encoded><![CDATA[<p>JavaScript allowing to do this by this easy steps:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;script type=”text/javascript”&gt;
document.getElementById(&quot;z&quot;).innerHTML = &quot;bla bnla&quot;;
&lt;/script&gt; 
&nbsp;
&lt;diz id=”z”&gt; Text goes here&lt;/div&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/how-do-i-place-text-to-div.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
