<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Dynamic Drive Forums - JavaScript</title>
		<link>http://www.dynamicdrive.com/forums/</link>
		<description>Discuss JavaScript and DHTML coding.</description>
		<language>en</language>
		<lastBuildDate>Mon, 20 May 2013 02:51:19 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>10</ttl>
		<image>
			<url>http://www.dynamicdrive.com/forums/images/misc/rss.png</url>
			<title>Dynamic Drive Forums - JavaScript</title>
			<link>http://www.dynamicdrive.com/forums/</link>
		</image>
		<item>
			<title><![CDATA[Questions to "Bullet List Accordion Menu with nested levels"]]></title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73931-Questions-to-quot-Bullet-List-Accordion-Menu-with-nested-levels-quot&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 23:22:45 GMT</pubDate>
			<description><![CDATA[Greetings everyone, 
 
Since I'm new here I'd like to say a few words of thanks for this site. As you can see I'm new here, and I'm very glad I found this place. But, as you might have guessed I have a problem and would be glad for any help you can offer ... 
 
Very recently (well yesterday in...]]></description>
			<content:encoded><![CDATA[<div>Greetings everyone,<br />
<br />
Since I'm new here I'd like to say a few words of thanks for this site. As you can see I'm new here, and I'm very glad I found this place. But, as you might have guessed I have a problem and would be glad for any help you can offer ...<br />
<br />
Very recently (well yesterday in fact) I more or less stumbled onto the Dynamic Drive while searching for a new collapsible menu script for my own homepage. A while ago with an update of Firefox I noticed that the DHTML script I had been using for the past 12 years didn't seem to work anymore with current browsers. Only Google Chrome seems to still be compatible (or my homepage seems only to be compatible with Chrome). This presented several problems:<br />
<br />
First I know next to nothing about DHTML nor JavaScript, and couldn't find what's wrong. Since I hadn't changed anything to the script it seems the problem might be with the age of the script itself, which as you can see is pretty ancient.<br />
<br />
Secondly the guy who wrote the script seems to have fallen of the earth. Well at least I couldn't find him anymore. His homepage was gone, and google was of no real help either since all references I found to the guy returned me to his now nonexistant homepage or an email address which also doesn't exist anymore.<br />
<br />
Thirdly I had no luck for weeks in finding any kind of replacement - most likely because I didn't know exactly what to search for. I found many DHTML and JavaScript menus but most of them were of the kind that fold outward or down, but that's not easy to implent into my three frame homepage without completely changing everything. <br />
<br />
So to cut a long story short I finally found what I was looking for here: it was the &quot;Bullet List Accordion Menu with nested levels&quot;. Basically it does exactly what mine does, it works with frames and it even looks quite a little neater: <a href="http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm" target="_blank">http://www.dynamicdrive.com/dynamici...enu-bullet.htm</a><br />
<br />
Nevertheless two problems remain:<br />
- I cannot find the style parameter that lets me put the headers a little closer together. At the moment there's a quite big gap between them (a minor cosmetic problem)<br />
- In my old menu I could assign a link to every header. In the new menu as I find it now I can only assign links to submenus and menu items. I tried to implement a link to a header, but it wouldn't work. This poses a larger problem, because in my homepage every menu header as well as every submenu and item opens a separate link. <br />
<br />
That's the modification I tried so far:<br />
<br />
&lt;div class=&quot;arrowlistmenu&quot;&gt;<br />
<br />
&lt;h3&gt;<br />
&lt;li&gt;&lt;a href=&quot;http://www.mx-5.net&quot; target=&quot;frmMain&quot; class=&quot;menuheader expandable&quot;&gt;CSS Library&lt;/a&gt;&lt;/li&gt;   /*shows the link on the bottom of the browser window on mouseover but does not open any link*/<br />
&lt;/h3&gt;<br />
<br />
&lt;ul class=&quot;categoryitems&quot;&gt;<br />
&lt;li&gt;&lt;a href=&quot;http://www.dynamicdrive.com/style/csslibrary/category/C1/&quot; target=&quot;frmMain&quot;&gt;Horizontal CSS Menus&lt;/a&gt;&lt;/li&gt;   /*Works perfectly*/<br />
&lt;li&gt;&lt;a href=&quot;http://www.dynamicdrive.com/style/csslibrary/category/C2/&quot; target=&quot;frmMain&quot;&gt;Vertical CSS Menus&lt;/a&gt;&lt;/li&gt;  /*Works perfectly*/<br />
&lt;/ul&gt;<br />
<br />
&lt;h3 class=&quot;menuheader expandable&quot;&gt;CSS Drive&lt;/h3&gt;<br />
&lt;ul class=&quot;categoryitems&quot;&gt;<br />
&lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com&quot; target=&quot;frmMain&quot;&gt;CSS Gallery&lt;/a&gt;&lt;/li&gt;   /*Works perfectly*/<br />
&lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com&quot; target=&quot;frmMain&quot; class=&quot;subexpandable&quot;&gt;Menu Gallery&lt;/a&gt;&lt;/li&gt;   /*shows the link on the bottom of the browser window on mouseover but does not open any link*/<br />
	&lt;ul class=&quot;subcategoryitems&quot; style=&quot;margin-left: 15px&quot;&gt;<br />
	&lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com/index.php/main/category/C34/&quot; target=&quot;frmMain&quot;&gt;Blue Color&lt;/a&gt;&lt;/li&gt;  /*Works perfectly*/<br />
	&lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com/index.php/main/category/C36/&quot; target=&quot;frmMain&quot;&gt;Green Color&lt;/a&gt;&lt;/li&gt;  /*Works perfectly*/<br />
	&lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com/index.php/main/category/C37/&quot; target=&quot;frmMain&quot;&gt;Orange Color&lt;/a&gt;&lt;/li&gt;  /*Works perfectly*/<br />
	&lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com/index.php/main/category/C33/&quot; target=&quot;frmMain&quot;&gt;Red Color&lt;/a&gt;&lt;/li&gt;  /*Works perfectly*/<br />
	&lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com/index.php/main/category/C38/&quot; target=&quot;frmMain&quot;&gt;Brown Color&lt;/a&gt;&lt;/li&gt;  /*Works perfectly*/<br />
	&lt;/ul&gt;<br />
<br />
<br />
If you could help me with this in some way you'd really end an odyssey lasting months for me. Thank you in advance.<br />
<br />
<br />
P.S.<br />
In case I didn't explain myself very well and you'd like to check what the old menu looks like go to <a href="http://www.archertours.de" target="_blank">www.archertours.de</a>. It should still work with Chrome. On other browsers the left frame remains blank.<br />
<br />
P.P.S.<br />
If you'd like me to post or upload anything I have done so far please tell me what you need. Thank you.</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>Archer</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73931-Questions-to-quot-Bullet-List-Accordion-Menu-with-nested-levels-quot</guid>
		</item>
		<item>
			<title><![CDATA[drop down menu 'on state..']]></title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73929-drop-down-menu-on-state&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 20:27:48 GMT</pubDate>
			<description>alright, so first of I am not extremely knowledgeable in CSS or JavaScript for that matter and apologize in advance if this question pertains more to JS then CSS.  I also am sure I am about to slaughter some terminology, but here goes:  
 
The site in question is ShawnTrautman.com.   
 
We recently...</description>
			<content:encoded><![CDATA[<div>alright, so first of I am not extremely knowledgeable in CSS or JavaScript for that matter and apologize in advance if this question pertains more to JS then CSS.  I also am sure I am about to slaughter some terminology, but here goes: <br />
<br />
The site in question is ShawnTrautman.com.  <br />
<br />
We recently implemented the uber menu script and love it.  There is just one issue:  When you hover the main button that then releases the drop down the button shows its hover state, which for now is underlined text and a slightly darker BG, however, once you move your mouse down to the drop down options the hover state falls off... we want to go with a much more contrasting hover state, but it looks bad when it turns off upon mouse off... <br />
<br />
Ultimately we want the hover state of the main button to remain active while the mouse is over any of the options in the drop down.  <br />
<br />
Any ideas on how to fix/create the intended effect would be greatly appreciated.<br />
<br />
Thanks in advance</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>claytonbrown</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73929-drop-down-menu-on-state</guid>
		</item>
		<item>
			<title>Help with jQuery form validation</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73925-Help-with-jQuery-form-validation&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 09:09:20 GMT</pubDate>
			<description><![CDATA[Hi. 
Can someone help me finding why the jQuery is not validating the form on the following page? I'm new to jQuery... 
 
 
Code: 
--------- 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
  <head> 
  <title>Negócios Angola</title>]]></description>
			<content:encoded><![CDATA[<div>Hi.<br />
Can someone help me finding why the jQuery is not validating the form on the following page? I'm new to jQuery...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;<br />
&lt;html&gt;<br />
&nbsp; &lt;head&gt;<br />
&nbsp; &lt;title&gt;Negócios Angola&lt;/title&gt;<br />
&nbsp; &lt;base href=&quot;http://root.com/divdev/&quot;&gt;<br />
&nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=Western (ISO-8895-1)&quot; /&gt;<br />
&nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/backend.css&quot;&gt;<br />
<br />
&nbsp; &lt;script src=&quot;//code.jquery.com/jquery-1.9.1.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &lt;script src=&quot;//ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js&quot;&gt;&lt;/script&gt;<br />
<br />
&nbsp; &lt;script&gt;<br />
&nbsp; // When the browser is ready...<br />
&nbsp; $(function() {<br />
&nbsp; <br />
&nbsp; &nbsp; // Setup form validation on the #addcat element<br />
&nbsp; &nbsp; $(&quot;#addcat&quot;).validate({<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // Specify the validation rules<br />
&nbsp; &nbsp; &nbsp; &nbsp; rules: {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; categories: &quot;required&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newcat: &quot;required&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catdesc: &quot;required&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Specify the validation error messages<br />
&nbsp; &nbsp; &nbsp; &nbsp; messages: {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; categories: &quot;Tem que seleccionar a categoria parente&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newcat: &quot;Introduza nova categoria&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catdesc: &quot;Descreva a categoria&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; submitHandler: function(form) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; form.submit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; });<br />
<br />
&nbsp; &lt;/script&gt;<br />
&nbsp; &lt;/head&gt;<br />
&nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div class=&quot;searchspace&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div class = &quot;search&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form class = &quot;searchform&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class = &quot;searchfield&quot; type = &quot;text&quot; value = &quot;Procurar...&quot; onfocus = &quot;if (this.value == 'Procurar...') {this.value = '';}&quot; onblur=&quot;if (this.value == '') {this.value = 'Procurar...';}&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class = &quot;searchbutton&quot; type = &quot;button&quot; value = &quot;GO&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div class=&quot;infospace&quot;&gt;<br />
INFO LINE&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div class=&quot;leftspace&quot;&gt;<br />
&lt;div class = &quot;menu&quot;&gt;<br />
&nbsp; &lt;ul class=&quot;sexypanels&quot;&gt;<br />
&nbsp; &lt;li&gt;&lt;a href=&quot;admin/addcat.php&quot;&gt;» Adicionar Categorias&lt;/a&gt;&lt;/li&gt;<br />
&lt;!--<br />
&nbsp; &lt;li&gt;&lt;a href=&quot;http://www.dynamicdrive.com/style/&quot; &gt;» CSS Examples&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li&gt;&lt;a href=&quot;http://www.javascriptkit.com/jsref/&quot;&gt;» JavaScript Reference&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li&gt;&lt;a href=&quot;http://www.javascriptkit.com/domref/&quot;&gt;» DOM Reference&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li&gt;&lt;a href=&quot;http://www.cssdrive.com&quot;&gt;» CSS Drive&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li class=&quot;lastitem&quot;&gt;&lt;a href=&quot;http://www.codingforums.com/&quot;&gt;» Coding Forums&lt;/a&gt;&lt;/li&gt;<br />
--&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &lt;/ul&gt;<br />
&lt;/div&gt;&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div class=&quot;middlespace&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;div class = &quot;addcatheader&quot;&gt;<br />
&nbsp; &nbsp; Adicionar novas Categorias&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;div class = &quot;addcat&quot;&gt;<br />
&nbsp; &nbsp; &lt;form id = &quot;addcat&quot; method=&quot;post&quot; action = &quot;admin/addcat.php&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;table width = &quot;100%&quot; border = &quot;0&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width = &quot;40%&quot; align = &quot;right&quot; valign = &quot;top&quot;&gt;&lt;label for=&quot;categories&quot;&gt;Categoria Parente:&lt;/label&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width = &quot;60%&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select id = &quot;categories&quot; name = &quot;cat_parent&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value = 0&gt;Topo&lt;/option&gt;&lt;option value = 2&gt;&amp;nbsp;&amp;nbsp;|___Tecnologias da Informação&lt;/option&gt;&lt;option value = 3&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;|___Informática&lt;/option&gt;&lt;option value = 5&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;|___Venda de Computadores &lt;/option&gt;&lt;option value = 6&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;|___Consumiveis&lt;/option&gt;&lt;option value = 4&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;|___Infrastructuras&lt;/option&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan = &quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align = &quot;right&quot; valign = &quot;top&quot;&gt;&lt;label for=&quot;newcat&quot;&gt;Nome da Categoria:&lt;/label&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input id = &quot;newcat&quot; type =&quot;text&quot; name = &quot;cat_name&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan = &quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align = &quot;right&quot; valign = &quot;top&quot;&gt;&lt;label for=&quot;catdesc&quot;&gt;Descrição da Categoria:&lt;/label&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;textarea id = &quot;catdesc&quot; name = &quot;cat_desc&quot;&gt;&lt;/textarea&gt;&lt;/td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan = &quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan = &quot;2&quot; align = &quot;center&quot;&gt;&lt;button id = &quot;submit&quot; type = &quot;submit&quot;&gt;Adicionar&lt;/button&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div class=&quot;footer&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class = &quot;footerdiv&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Negócios Angola - &amp;copy; 2012 &lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=href=&quot;mailto:admin@negiciosangola.com&quot; style = &quot;text-decoration: none; color: #ffffff&quot;;&gt;Contactar o Webmaster&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</code><hr />
</div>Thank You</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>reisve</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73925-Help-with-jQuery-form-validation</guid>
		</item>
		<item>
			<title>Dynamic Carousel Slideshow</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73904-Dynamic-Carousel-Slideshow&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 13:22:41 GMT</pubDate>
			<description>U jayakodi 
 
I have re-worked on the good old  Carousel Slideshow code to make it look simpler and added dynamic features to change direction of rotation with the 4 arrow keys, change the speed with + - keys, move the carousel with PgUp / Dn keys and change the size with / * keys; the code is as...</description>
			<content:encoded><![CDATA[<div>U jayakodi<br />
<br />
I have re-worked on the good old  Carousel Slideshow code to make it look simpler and added dynamic features to change direction of rotation with the 4 arrow keys, change the speed with + - keys, move the carousel with PgUp / Dn keys and change the size with / * keys; the code is as given below and works well with IE for me.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><br />
&lt;html&gt;&lt;body&gt;&lt;/body&gt;<br />
&lt;script type='text/javascript'&gt;<br />
pics=['http://www.dynamicdrive.com/dynamicindex14/photo1.jpg',<br />
'http://www.dynamicdrive.com/dynamicindex14/photo2.jpg',<br />
'http://www.dynamicdrive.com/dynamicindex14/photo3.jpg',<br />
'http://www.dynamicdrive.com/dynamicindex14/photo4.jpg']<br />
<br />
// or, your list of images:&nbsp; pics=['c:/1.wmf','c:/2.wmf','c:/3.wmf','c:/4.wmf','c:/5.wmf']<br />
<br />
var sides=8,speed=20,pw=100,drn=&quot;horiz&quot;,counter=0,spn=true,dn=1,mpi=Math.PI<br />
pn=pics.length;if(sides&gt;2*pn){sides=2*pn}<br />
<br />
var px=[],imgx=[],imgy=[],imgw=[],ino,imn,faces,cnv<br />
<br />
cnv=document.body.appendChild(document.createElement(&quot;div&quot;))<br />
with(cnv.style){width=pw;height=pw;position=&quot;absolute&quot;;left=pw;top=pw}<br />
ino=pn+1;imn=2*pn;faces=Math.ceil(sides/2)<br />
<br />
for(var i=0;i&lt;pn;i++){px[i]=cnv.appendChild(document.createElement(&quot;image&quot;))<br />
px[i].src=pics[i];px[i+pn]=px[i];if(pn==faces){px[i+2*pn]=px[i]}<br />
with (px[i].style){position='absolute';border=&quot;solid 1 blue&quot;}}<br />
<br />
function stg(){var fo=Math.floor(pw*Math.cos(mpi/sides)/Math.sin(mpi/sides)/2);var tpi=0.2*mpi/sides<br />
for(i=0;i&lt;=10*faces;i++){imgw[i]=pw*Math.sin(tpi*i)<br />
imgx[i]=Math.floor(pw+dn*fo*Math.cos(tpi*i)-imgw[i]/2)}}<br />
<br />
function rotate(){setTimeout('rotate()',speed);if(!spn){return}<br />
if(++counter&gt;=10){counter=0;if(++ino&gt;=imn){ino=pn}}<br />
px[ino-faces].style.left=-5000<br />
for(var i=0;i&lt;faces;i++){with(px[ino-i].style){if(drn==&quot;vert&quot;){top=imgx[counter+i*10];left=0;width=pw;height=imgw[counter+i*10]}<br />
else{left=imgx[counter+i*10];top=0;height=pw;width=imgw[counter+i*10]}}}<br />
cnv.focus()}<br />
<br />
cnv.onmouseover=function(){spn=false}<br />
cnv.onmouseout=function(){spn=true}<br />
cnv.onkeyup=function(){kk=event.keyCode<br />
switch(kk){case 40:dn=-1;drn=&quot;vert&quot;;break<br />
case 38:dn=1;drn=&quot;vert&quot;;break<br />
case 39:dn=-1;drn=&quot;horiz&quot;;break<br />
case 37:dn=1;drn=&quot;horiz&quot;;break<br />
case 107:speed=speed-10;if(speed&lt;0){speed=0};break<br />
case 109:speed=speed+10;break<br />
case 34:cnv.style.left=cnv.offsetLeft+50;cnv.style.top=cnv.offsetTop+50;break<br />
case 33:cnv.style.left=cnv.offsetLeft-50;cnv.style.top=cnv.offsetTop-50;break<br />
case 106: pw=pw+20;break<br />
case 111: pw=pw-20;break}<br />
stg()}<br />
<br />
stg()<br />
rotate()<br />
alert(&quot;Use arrow keys to change direction\n+ / - to change the speed\nPgUp/PgDn to move carousel\n * or / to change the size.\nmouseOver pauses spinning&quot;)<br />
&lt;/script&gt;<br />
&lt;/html&gt;</code><hr />
</div>Happy coding for all.</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>u jayakodi</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73904-Dynamic-Carousel-Slideshow</guid>
		</item>
		<item>
			<title>why slide show is not shown by browser</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73901-why-slide-show-is-not-shown-by-browser&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 10:37:57 GMT</pubDate>
			<description><![CDATA[hi! 
i am doing a project and want to make slide show of images and using this code for this but in browser it is not displaying that slide show plz help me and inform me if their is any mistake i am doing. need your early response. thanks in advance. 
 
Code: 
--------- 
<html> 
<head> 
<script>...]]></description>
			<content:encoded><![CDATA[<div>hi!<br />
i am doing a project and want to make slide show of images and using this code for this but in browser it is not displaying that slide show plz help me and inform me if their is any mistake i am doing. need your early response. thanks in advance.<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script&gt;<br />
&lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image1=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; image1.src=&quot;Healthy-Mix.jpg&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image2=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; image2.src=&quot;Bonvivant_bread.jpg&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image3=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; image3.src=&quot;Bonvivant.jpg&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image4=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; image4.src=&quot;candy-ice-cream.png&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image5=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; image5.src=&quot;Ice-Cream.png&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image6=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; image6.src=&quot;Mauj-Mango.png&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image7=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; image7.src=&quot;pizza.png&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image8=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; image8.src=&quot;products.jpg&quot; <br />
//--&gt;<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;img src=&quot;Healthy-Mix.jpg&quot; name=&quot;slide&quot; width=&quot;601&quot; height=&quot;355&quot; alt=&quot;Healthy Mix&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var step=1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function slideit(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!document.images){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.images.slide.src=eval(&quot;image&quot;+step+&quot;.src&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (step&lt;8){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; step++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; step=1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTimeout(&quot;slideit()&quot;,2500);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slideit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //--&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>dasht</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73901-why-slide-show-is-not-shown-by-browser</guid>
		</item>
		<item>
			<title>I want to hide this form on submit using javascript</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73880-I-want-to-hide-this-form-on-submit-using-javascript&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 18:33:37 GMT</pubDate>
			<description><![CDATA[*I'd like to hide this form after the submit button is pressed. Any ideas how I can do that? Thanks!!* 
 
 
 
Code: 
--------- 
 
 
<form action="<?= $_SERVER["REQUEST_URI"] ?>"  method="post"> 
  <table width="75%" border="0" align="center" cellpadding="3" cellspacing="1" style="background-color:...]]></description>
			<content:encoded><![CDATA[<div><b>I'd like to hide this form after the submit button is pressed. Any ideas how I can do that? Thanks!!</b><br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><br />
<br />
&lt;form action=&quot;&lt;?= $_SERVER[&quot;REQUEST_URI&quot;] ?&gt;&quot;&nbsp; method=&quot;post&quot;&gt;<br />
&nbsp; &lt;table width=&quot;75%&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; style=&quot;background-color: #F5F5F5; border: 1px solid #D8D8D8; padding: 10px 10px 10px 10px; width: 600px;&quot;&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;th colspan=&quot;2&quot; height=&quot;25&quot; valign=&quot;middle&quot;&gt;&lt;?= $lang['ACC_REGISTER'] ?&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td width=&quot;38%&quot;&gt;&lt;b&gt;&lt;?= $lang['ACC_USERNAME'] ?&gt;:&lt;/b&gt; &lt;span class=&quot;marker&quot;&gt;*&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; style=&quot;width:250px&quot; name=&quot;username&quot; size=&quot;25&quot; maxlength=&quot;40&quot; class=&quot;input&quot; value=&quot;&lt;?= $_POST['username']; ?&gt;&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;b&gt;&lt;?= $lang['ACC_EMAIL_TWO'] ?&gt;:&lt;/b&gt; &lt;span class=&quot;marker&quot;&gt;*&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; style=&quot;width:250px&quot; name=&quot;email&quot; size=&quot;25&quot; maxlength=&quot;160&quot; class=&quot;input&quot; value=&quot;&lt;?= $_POST['email']; ?&gt;&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;b&gt;&lt;?= $lang['ACC_PASSWORD'] ?&gt;:&lt;/b&gt; &lt;span class=&quot;marker&quot;&gt;*&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;password&quot; style=&quot;width: 250px&quot; name=&quot;password&quot; size=&quot;25&quot; class=&quot;input&quot; maxlength=&quot;40&quot; value=&quot;&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;b&gt;&lt;?= $lang['ACC_PASSWORD_CONF'] ?&gt;:&lt;/b&gt; &lt;span class=&quot;marker&quot;&gt;*&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;password&quot; style=&quot;width: 250px&quot; name=&quot;password_confirm&quot; size=&quot;25&quot; class=&quot;input&quot; maxlength=&quot;40&quot; value=&quot;&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php if ( $image_verification ) { ?&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td height=&quot;50&quot; colspan=&quot;2&quot; align=&quot;center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;&lt;?= $back_path ?&gt;captcha.png.php?&lt;?php echo rand(0,999); ?&gt;&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td class=&quot;hint&quot; colspan=&quot;2&quot; style=&quot;padding: 0px 0px 10px 223px&quot;&gt;&lt;?= $lang['ACC_ENTER_SEC'] ?&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;?= $lang['POST_VERIFY_IMAGE'] ?&gt;: <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; style=&quot;width: 150px&quot; id=&quot;captcha&quot; name=&quot;captcha&quot; size=&quot;6&quot; class=&quot;input&quot; maxlength=&quot;6&quot; value=&quot;&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php } ?&gt;<br />
<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td colspan=&quot;2&quot; align=&quot;center&quot; height=&quot;28&quot; style=&quot;padding: 10px 0px 0px 21px;&quot;&gt;&lt;button type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&gt;&lt;?= $lang['ACC_SIGN_UP'] ?&gt;&lt;/button&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;&amp;nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;button type=&quot;reset&quot; value=&quot;Reset&quot; name=&quot;reset&quot;&gt;&lt;?= $lang['ACC_RESET'] ?&gt;&lt;/button&gt;&lt;/td&gt;<br />
<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp;  &lt;tr&gt;<br />
&nbsp; &nbsp;  &lt;td colspan=&quot;2&quot; style=&quot;padding-top: 40px; font-size: 11px;&quot;&gt;&lt;?= $lang['ACC_HINT'] ?&gt;&lt;/td&gt;<br />
&nbsp;  &lt;/tr&gt;<br />
<br />
&nbsp; &lt;/table&gt;<br />
&lt;/form&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>qwikad.com</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73880-I-want-to-hide-this-form-on-submit-using-javascript</guid>
		</item>
		<item>
			<title>Regarding Jquery Issue</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73866-Regarding-Jquery-Issue&amp;goto=newpost</link>
			<pubDate>Tue, 14 May 2013 05:42:15 GMT</pubDate>
			<description>Please open this page - 111.118.165.66/~giveandg/index.php/office-supplies.html 
Then see the sidebar Shopping Options in that Price. If you click on any one the result should be filtered but because of some jquery it is always giving no products matching the selection message. 
 
Any idea? Please....</description>
			<content:encoded><![CDATA[<div>Please open this page - 111.118.165.66/~giveandg/index.php/office-supplies.html<br />
Then see the sidebar Shopping Options in that Price. If you click on any one the result should be filtered but because of some jquery it is always giving no products matching the selection message.<br />
<br />
Any idea? Please.<br />
<br />
Thanks<br />
Kaushal</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>round</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73866-Regarding-Jquery-Issue</guid>
		</item>
		<item>
			<title>Drop-Down Menu project</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73839-Drop-Down-Menu-project&amp;goto=newpost</link>
			<pubDate>Fri, 10 May 2013 12:47:18 GMT</pubDate>
			<description>I am trying to create a drop-down set of menus that lists five sports, when a sport is clicked on, another drop-down opens with three links for that sport. When a link is clicked, it will take the user to the website for that link. Here is what I have so far, PLEASE help! I need to get this done...</description>
			<content:encoded><![CDATA[<div>I am trying to create a drop-down set of menus that lists five sports, when a sport is clicked on, another drop-down opens with three links for that sport. When a link is clicked, it will take the user to the website for that link. Here is what I have so far, PLEASE help! I need to get this done today. Thanks!!<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script&gt;<br />
function favBrowser()<br />
{<br />
var mylist=document.getElementById(&quot;myList&quot;);<br />
document.getElementById(&quot;favorite&quot;).value=mylist.options[mylist.selectedIndex].text;<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
&lt;form&gt;<br />
Select your sport:<br />
&lt;select id=&quot;myList&quot; onchange=&quot;mySport()&quot;&gt;<br />
&nbsp; &lt;option&gt;&lt;/option&gt;<br />
&nbsp; &lt;option&gt;Baseball&lt;/option&gt;<br />
&nbsp; &lt;option&gt;Basketball&lt;/option&gt;&nbsp; <br />
&nbsp; &lt;option&gt;Football&lt;/option&gt;<br />
&nbsp; &lt;option&gt;Hockey&lt;/option&gt;<br />
&nbsp; &lt;option&gt;Nascar&lt;/option&gt;<br />
&lt;script&gt;<br />
function mysport()<br />
{<br />
var mylist=document.getElementById(&quot;myList&quot;);<br />
document.getElementById(&quot;sport&quot;).value=mylist.options[mylist.selectedIndex].text;<br />
}<br />
&lt;/script&gt;<br />
&lt;form&gt;<br />
Select a link:<br />
&lt;select id=&quot;myList2&quot; onclick=&quot;Baseball&quot; onChange=&quot;baseLink()&quot;&gt;<br />
&nbsp; &lt;option&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.mlb.com&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.baseballamerica.com&lt;/option&gt;&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.baseball-almanac.com&lt;/option&gt;<br />
&lt;select id=&quot;myList3&quot; onclick=&quot;Basketball&quot; onChange=&quot;basketLink()&quot;&gt;<br />
&nbsp; &lt;option&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.nba.com&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.ncaa.com&lt;/option&gt;&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.nbahoopsonline.com&lt;/option&gt;<br />
&lt;select id=&quot;myList4&quot; onclick=&quot;Football&quot; onChange=&quot;footLink()&quot;&gt;<br />
&nbsp; &lt;option&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.nfl.com&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.bleacherreport.com&lt;/option&gt;&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.homeoffootball.org&lt;/option&gt;<br />
&lt;select id=&quot;myList2&quot; onclick=&quot;Hockey&quot; onChange=&quot;hockeyLink()&quot;&gt;<br />
&nbsp; &lt;option&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.nhl.com&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.collegehockeyinc.com.com&lt;/option&gt;&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.historyofhockey.net&lt;/option&gt;<br />
&lt;select id=&quot;myList2&quot; onclick=&quot;Nascar&quot; onChange=&quot;carLink()&quot;&gt;<br />
&nbsp; &lt;option&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.nascar.com&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.nascar.speedtv.com&lt;/option&gt;&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;www.decadeofracing.net&lt;/option&gt;<br />
&lt;/body&gt;<br />
&lt;/form&gt;<br />
&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; <br />
&lt;/select&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
<br />
&lt;/html&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>MissMusical</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73839-Drop-Down-Menu-project</guid>
		</item>
		<item>
			<title><![CDATA[Json parse error on <p>]]></title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73837-Json-parse-error-on-lt-p-gt&amp;goto=newpost</link>
			<pubDate>Fri, 10 May 2013 08:56:47 GMT</pubDate>
			<description><![CDATA[Hello 
 
I am unable to to edit a json file i need to add some updates but i keep getting 
 
 
Code: 
--------- 
Error: Parse error on line 8: 
...           "text" : "]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
I am unable to to edit a json file i need to add some updates but i keep getting<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Error: Parse error on line 8:<br />
...&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;text&quot; : &quot;<br />
<br />
&nbsp;  company name -----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'</code><hr />
</div>   <br />
I am trying to add a paragraph with a section and when i put a &lt;p&gt; i get the error<br />
<br />
here is the code, please can you assist?<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">{<br />
&nbsp; &nbsp;  &quot;subSections&quot;:<br />
&nbsp; &nbsp;  [<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;title&quot; : &quot;The main website&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;url&quot; : &quot;main-website&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;linktitle&quot; : &quot;The main website&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;text&quot; : &quot;&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }, {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;title&quot; : &quot;The main reception&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;url&quot; : &quot;main-reception&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;linktitle&quot; : &quot;The main reception&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;text&quot; : &quot;&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }, {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;title&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;url&quot; : &quot;a url heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;linktitle&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;text&quot; : &quot;&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry.&lt;/p&gt;&lt;p&gt;Our role involves ensuring that there is a warm friendly service for our patients and families when they come to GOSH.&lt;/p&gt;&lt;p&gt; Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.&lt;/p&gt;&lt;p&gt; It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }, {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;title&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;url&quot; : &quot;a url heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;linktitle&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;text&quot; : &quot;&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry.&lt;/p&gt;&lt;p&gt;Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.&lt;/p&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }, {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;title&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;url&quot; : &quot;a url heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;linktitle&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;text&quot; : &quot;&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry.&lt;/p&gt;&quot;&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  }, {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;title&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;url&quot; : &quot;a url heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;linktitle&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;text&quot; : &quot;&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry.&lt;/p&gt;&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry.&lt;/p&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }, {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;title&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;url&quot; : &quot;a url heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;linktitle&quot; : &quot;A heading&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;text&quot; : &quot;&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, &lt;/p&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp;  ]<br />
&nbsp;}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>jelly46</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73837-Json-parse-error-on-lt-p-gt</guid>
		</item>
		<item>
			<title>Help adding multiple drag and drop objects</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73836-Help-adding-multiple-drag-and-drop-objects&amp;goto=newpost</link>
			<pubDate>Fri, 10 May 2013 07:25:04 GMT</pubDate>
			<description>I recently received help from this forum post about DOM Drag and Drop script and I wanted to know how to get many of those boxes. 
 
 I am relatively new to HTML (couple weeks) compared to some people here, and need help! 
 
How to add more boxes using the Script. 
 
And how to add a HTTP link to...</description>
			<content:encoded><![CDATA[<div>I recently received help from this forum post about DOM Drag and Drop script and I wanted to know how to get many of those boxes.<br />
<br />
 I am relatively new to HTML (couple weeks) compared to some people here, and need help!<br />
<br />
How to add more boxes using the Script.<br />
<br />
And how to add a HTTP link to the image.<br />
<br />
&lt;a href=&quot;http://www.&quot;website&quot;.com&quot; &gt; Does not seem to work if i add it before the image.<br />
<br />
The DOM Drag and Drop script was from:<br />
<br />
<a href="http://www.dynamicdrive.com/forums/showthread.php?70528-DOM-Drag-amp-Drop-script-save-new-positions-for-reloading-page" target="_blank">http://www.dynamicdrive.com/forums/s...reloading-page</a><br />
<br />
(I removed the reset box)<br />
<br />
I am &quot;HTMLing&quot; this website for personal use. And here is the HTML:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&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;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
&lt;title&gt;Chris&lt;/title&gt;<br />
&lt;link href=&quot;thrColLiqHdr.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; #root {<br />
&nbsp; &nbsp; &nbsp; &nbsp; position: absolute;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height: 140px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; width: 205px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color: #F4F4F4;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; #handle {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; margin:2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; padding:2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 98%;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; color:white;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; background-color: navy;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; font-weight: bold;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;/style&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
/*&lt;![CDATA[*/<br />
<br />
/**************************************************<br />
&nbsp;* dom-drag.js<br />
&nbsp;* 09.25.2001<br />
&nbsp;* <a href="http://www.youngpup.net" target="_blank">www.youngpup.net</a><br />
&nbsp;* Script featured on Dynamic Drive (<a href="http://www.dynamicdrive.com" target="_blank">http://www.dynamicdrive.com</a>) 12.08.2005<br />
&nbsp;**************************************************<br />
&nbsp;* 10.28.2001 - fixed minor bug where events<br />
&nbsp;* sometimes fired off the handle, not the root.<br />
&nbsp;**************************************************/<br />
<br />
<br />
var Drag = {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; obj : null,<br />
// parameter 0 = the drag handle&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  (object or object ID name)<br />
// parameter 1 = the drag root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  (object or object ID name)<br />
// parameter 2 = the number of days to restore the last position (number, default = no persistence)<br />
&nbsp; &nbsp; &nbsp; &nbsp; init : function(o, oRoot, days, minX, maxX, minY, maxY, bSwapHorzRef, bSwapVertRef, fXMapper, fYMapper)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp;  o=document.getElementById(o)||o;<br />
&nbsp; &nbsp; &nbsp;  oRoot=document.getElementById(oRoot)||oRoot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  o.onmousedown&nbsp; &nbsp; &nbsp; &nbsp; = Drag.start;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.hmode&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = bSwapHorzRef ? false : true ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.vmode&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = bSwapVertRef ? false : true ;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.root = oRoot &amp;&amp; oRoot != null ? oRoot : o ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; o.days=typeof(days)=='number'?days:-1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var xy=this.cookie?this.cookie(o.id+'='):null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (xy&amp;&amp;o.days&gt;0){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  xy=xy.split(',');<br />
&nbsp; &nbsp; &nbsp; &nbsp;  o.root.style.left=xy[0]+'px';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  o.root.style.top=xy[1]+'px';<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.hmode&nbsp; &amp;&amp; isNaN(parseInt(o.root.style.left&nbsp; ))) o.root.style.left&nbsp;  = &quot;0px&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.vmode&nbsp; &amp;&amp; isNaN(parseInt(o.root.style.top&nbsp;  ))) o.root.style.top&nbsp; &nbsp; = &quot;0px&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!o.hmode &amp;&amp; isNaN(parseInt(o.root.style.right ))) o.root.style.right&nbsp; = &quot;0px&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!o.vmode &amp;&amp; isNaN(parseInt(o.root.style.bottom))) o.root.style.bottom = &quot;0px&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; o.srt=[o.root.style.left,o.root.style.top];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.minX&nbsp; &nbsp; &nbsp; &nbsp; = typeof minX != 'undefined' ? minX : null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.minY&nbsp; &nbsp; &nbsp; &nbsp; = typeof minY != 'undefined' ? minY : null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.maxX&nbsp; &nbsp; &nbsp; &nbsp; = typeof maxX != 'undefined' ? maxX : null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.maxY&nbsp; &nbsp; &nbsp; &nbsp; = typeof maxY != 'undefined' ? maxY : null;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.xMapper = fXMapper ? fXMapper : null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.yMapper = fYMapper ? fYMapper : null;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.root.onDragStart&nbsp; &nbsp; &nbsp; &nbsp; = new Function();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.root.onDragEnd&nbsp; &nbsp; &nbsp; &nbsp; = new Function();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.root.onDrag&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = new Function();<br />
&nbsp; &nbsp; &nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; start : function(e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var o = Drag.obj = this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e = Drag.fixE(e);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var y = parseInt(o.vmode ? o.root.style.top&nbsp; : o.root.style.bottom);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var x = parseInt(o.hmode ? o.root.style.left : o.root.style.right );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.root.onDragStart(x, y);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.lastMouseX&nbsp; &nbsp; &nbsp; &nbsp; = e.clientX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o.lastMouseY&nbsp; &nbsp; &nbsp; &nbsp; = e.clientY;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.hmode) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.minX != null)&nbsp; &nbsp; &nbsp; &nbsp; o.minMouseX&nbsp; &nbsp; &nbsp; &nbsp; = e.clientX - x + o.minX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.maxX != null)&nbsp; &nbsp; &nbsp; &nbsp; o.maxMouseX&nbsp; &nbsp; &nbsp; &nbsp; = o.minMouseX + o.maxX - o.minX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.minX != null) o.maxMouseX = -o.minX + e.clientX + x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.maxX != null) o.minMouseX = -o.maxX + e.clientX + x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.vmode) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.minY != null)&nbsp; &nbsp; &nbsp; &nbsp; o.minMouseY&nbsp; &nbsp; &nbsp; &nbsp; = e.clientY - y + o.minY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.maxY != null)&nbsp; &nbsp; &nbsp; &nbsp; o.maxMouseY&nbsp; &nbsp; &nbsp; &nbsp; = o.minMouseY + o.maxY - o.minY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.minY != null) o.maxMouseY = -o.minY + e.clientY + y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.maxY != null) o.minMouseY = -o.maxY + e.clientY + y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.onmousemove&nbsp; &nbsp; &nbsp; &nbsp; = Drag.drag;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.onmouseup&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = Drag.end;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; drag : function(e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e = Drag.fixE(e);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var o = Drag.obj;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ey&nbsp; &nbsp; &nbsp; &nbsp; = e.clientY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ex&nbsp; &nbsp; &nbsp; &nbsp; = e.clientX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var y = parseInt(o.vmode ? o.root.style.top&nbsp; : o.root.style.bottom);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var x = parseInt(o.hmode ? o.root.style.left : o.root.style.right );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var nx, ny;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.minX != null) ex = o.hmode ? Math.max(ex, o.minMouseX) : Math.min(ex, o.maxMouseX);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.maxX != null) ex = o.hmode ? Math.min(ex, o.maxMouseX) : Math.max(ex, o.minMouseX);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.minY != null) ey = o.vmode ? Math.max(ey, o.minMouseY) : Math.min(ey, o.maxMouseY);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.maxY != null) ey = o.vmode ? Math.min(ey, o.maxMouseY) : Math.max(ey, o.minMouseY);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nx = x + ((ex - o.lastMouseX) * (o.hmode ? 1 : -1));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ny = y + ((ey - o.lastMouseY) * (o.vmode ? 1 : -1));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o.xMapper)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nx = o.xMapper(y)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (o.yMapper)&nbsp; &nbsp; &nbsp; &nbsp; ny = o.yMapper(x)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Drag.obj.root.style[o.hmode ? &quot;left&quot; : &quot;right&quot;] = nx + &quot;px&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Drag.obj.root.style[o.vmode ? &quot;top&quot; : &quot;bottom&quot;] = ny + &quot;px&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Drag.obj.lastMouseX&nbsp; &nbsp; &nbsp; &nbsp; = ex;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Drag.obj.lastMouseY&nbsp; &nbsp; &nbsp; &nbsp; = ey;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (Drag.obj.id){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  document.cookie=Drag.obj.id+'='+[nx,ny]+';expires='+(new Date(new Date().getTime()+o.days*86400000).toGMTString())+';path=/';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; Drag.obj.root.onDrag(nx, ny);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; end : function()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.onmousemove = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.onmouseup&nbsp;  = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Drag.obj.root.onDragEnd(&nbsp; &nbsp; &nbsp; &nbsp; parseInt(Drag.obj.root.style[Drag.obj.hmode ? &quot;left&quot; : &quot;right&quot;]),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parseInt(Drag.obj.root.style[Drag.obj.vmode ? &quot;top&quot; : &quot;bottom&quot;]));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Drag.obj = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; cookie:function(nme){<br />
&nbsp; &nbsp;  var re=new RegExp(nme+'[^;]+','i');<br />
&nbsp; &nbsp;  if (document.cookie.match(re)){<br />
&nbsp; &nbsp; &nbsp; return document.cookie.match(re)[0].split(&quot;=&quot;)[1];<br />
&nbsp; &nbsp;  }<br />
&nbsp; &nbsp;  return null<br />
&nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; reset:function(id){<br />
&nbsp; &nbsp;  obj=document.getElementById(id);<br />
&nbsp; &nbsp;  if (obj&amp;&amp;obj.srt){<br />
&nbsp; &nbsp; &nbsp; obj.root.style.left=obj.srt[0];<br />
&nbsp; &nbsp; &nbsp; obj.root.style.top=obj.srt[1];<br />
&nbsp; &nbsp;  }<br />
&nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; fixE : function(e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (typeof e == 'undefined') e = window.event;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (typeof e.layerX == 'undefined') e.layerX = e.offsetX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (typeof e.layerY == 'undefined') e.layerY = e.offsetY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return e;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
};<br />
<br />
/*]]&gt;*/<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
<br />
&lt;div class=&quot;container&quot;&gt;<br />
&nbsp; &lt;div class=&quot;header&quot; style=&quot;text-align:center;&quot;&gt;&lt;div id='cssmenu'&gt;<br />
&lt;ul&gt;<br />
&nbsp;  &lt;li&gt;&lt;a href='index.html'&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;  &lt;li class='active'&gt;&lt;a href='ChrisPG.html'&gt;&lt;span&gt;Chris&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;  &lt;li&gt;&lt;a href='PiaPg.html'&gt;&lt;span&gt;Pia&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;  &lt;li&gt;&lt;a href='KyePg.html'&gt;&lt;span&gt;Kye&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;  &lt;li&gt;&lt;a href='sponsors.html'&gt;&lt;span&gt;Sponsors&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;  &lt;li&gt;&lt;a href='Livechat.html'&gt;&lt;span&gt;LiveChat&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;  &lt;li&gt;&lt;a href='About.html'&gt;&lt;span&gt;About&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;  &lt;li class='last'&gt;&lt;a href='Contact.html'&gt;&lt;span&gt;Contact&lt;/span&gt;&lt;/a&gt;&lt;br/&gt;<br />
&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;root&quot; style=&quot;left: 163px; top: 230px;&quot;&gt;<br />
&nbsp; &lt;div id=&quot;handle&quot;&gt;Handle&lt;/div&gt;<br />
&nbsp; &lt;a href=&quot;Http://youtube.com.au&quot;&gt;&lt;img src=&quot;Images/Youtube.jpg&quot; width=&quot;208&quot; height=&quot;114&quot;&gt;<br />
&nbsp; &lt;/a&gt;<br />
&lt;/a&gt;<br />
&lt;/div&gt;<br />
<br />
<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
// parameter 0 = the drag handle&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  (object or object ID name)<br />
// parameter 1 = the drag root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  (object or object ID name)<br />
// parameter 2 = the number of days to restore the last position (number, default = no persistence)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Drag.init('handle','root',1);<br />
<br />
<br />
&lt;/script&gt;<br />
<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code><hr />
</div><br />
<br />
Btw First post and please help! :o</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>kyero</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73836-Help-adding-multiple-drag-and-drop-objects</guid>
		</item>
		<item>
			<title>Shortening a huge list using an array value</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73828-Shortening-a-huge-list-using-an-array-value&amp;goto=newpost</link>
			<pubDate>Thu, 09 May 2013 18:57:57 GMT</pubDate>
			<description><![CDATA[Hello Guru's 
 
I need your help, 
 
As you can see below, I will end up having a huge list of code to accomplish an onblur and on focus scenario for a div and an input field. Is there a way to create a "list" and loop through it to accomplish what this code does line by line? Since I will have...]]></description>
			<content:encoded><![CDATA[<div>Hello Guru's<br />
<br />
I need your help,<br />
<br />
As you can see below, I will end up having a huge list of code to accomplish an onblur and on focus scenario for a div and an input field. Is there a way to create a &quot;list&quot; and loop through it to accomplish what this code does line by line? Since I will have over 20 fields the page of code will be quite long.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">document.getElementById('f1').onfocus = function() {<br />
&nbsp; &nbsp; document.getElementById('f1').style.border = '1px solid #0033CC'<br />
&nbsp; &nbsp; document.getElementById('div_rssims_prefix').style.color = '#0033CC'&nbsp; &nbsp; <br />
}<br />
document.getElementById('f1').onblur = function() {<br />
&nbsp; &nbsp; document.getElementById('f1').style.border = '1px solid #ABADB3'<br />
&nbsp; &nbsp; document.getElementById('div_rssims_prefix').style.color = ''&nbsp;  <br />
}<br />
document.getElementById('f2').onfocus = function() {<br />
&nbsp; &nbsp; document.getElementById('f2').style.border = '1px solid #0033CC'<br />
&nbsp; &nbsp; document.getElementById('div_rssims_firstname').style.color = '#0033CC' <br />
}<br />
document.getElementById('f2').onblur = function() {<br />
&nbsp; &nbsp; document.getElementById('f2').style.border = '1px solid #ABADB3'<br />
&nbsp; &nbsp; document.getElementById('div_rssims_firstname').style.color = ''&nbsp; &nbsp; <br />
}<br />
document.getElementById('f3').onfocus = function() {<br />
&nbsp; &nbsp; document.getElementById('f3').style.border = '1px solid #0033CC'<br />
&nbsp; &nbsp; document.getElementById('div_rssims_middlename').style.color = '#0033CC'&nbsp; &nbsp; <br />
}<br />
document.getElementById('f3').onblur = function() {<br />
&nbsp; &nbsp; document.getElementById('f3').style.border = '1px solid #ABADB3'<br />
&nbsp; &nbsp; document.getElementById('div_rssims_middlename').style.color = ''&nbsp;  <br />
}</code><hr />
</div>An ideal list would be:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">f1,div_rssims_prefix<br />
f2,div_rssims_firstname<br />
f3,div_rssims_middlename</code><hr />
</div>ect.</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>jason_kelly</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73828-Shortening-a-huge-list-using-an-array-value</guid>
		</item>
		<item>
			<title>Coloring the fieldname when the cursor is placed in an input box</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73826-Coloring-the-fieldname-when-the-cursor-is-placed-in-an-input-box&amp;goto=newpost</link>
			<pubDate>Thu, 09 May 2013 14:59:08 GMT</pubDate>
			<description>Hello, 
 
I need your help, 
 
How can I use javascript to automatically change the color of the field name (in red) above each of the input textboxes once the cursor has been placed or clicked in the textbox. 
 
Then if a new textbox is selected, it will revert the previous selected field to its...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I need your help,<br />
<br />
How can I use javascript to automatically change the color of the field name (in red) above each of the input textboxes once the cursor has been placed or clicked in the textbox.<br />
<br />
Then if a new textbox is selected, it will revert the previous selected field to its default color (black) and color the newly selected field name?<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;!DOCTYPE html&gt;<br />
<br />
&lt;html&gt;<br />
<br />
&lt;head&gt;&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
<br />
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot; id=&quot;table1&quot;&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;FIELD1&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;FIELD2&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;FIELD3&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;field1&quot;/&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;field2&quot;/&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;field3&quot;/&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
&lt;/body&gt;<br />
<br />
&lt;/html&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>jason_kelly</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73826-Coloring-the-fieldname-when-the-cursor-is-placed-in-an-input-box</guid>
		</item>
		<item>
			<title>script causing 404 and other issue in HTTPS...</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73818-script-causing-404-and-other-issue-in-HTTPS&amp;goto=newpost</link>
			<pubDate>Wed, 08 May 2013 20:09:05 GMT</pubDate>
			<description>Ok, so first off I am a beginner with JS -  
 
We implemented a neat script for a drop down menu and as we are nearing launching the new site with the new menu we found a major issue.  When we go the cart (or any https page), we notice in google tracking that we show up as a 404 error, which...</description>
			<content:encoded><![CDATA[<div>Ok, so first off I am a beginner with JS - <br />
<br />
We implemented a neat script for a drop down menu and as we are nearing launching the new site with the new menu we found a major issue.  When we go the cart (or any https page), we notice in google tracking that we show up as a 404 error, which appears to be the .js file reaching out to 'blank.htm' - which I have found in the file, but don't know how to modify the function so the script will work.  Also, in the cart, upon hovering over the menu, the header from above appears to flash underneath it.  <br />
<br />
This is code in the .js file that I think we need to adjust:  <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">addshim:function($){<br />
&nbsp; &nbsp; &nbsp; &nbsp; $(document.body).append('&lt;IFRAME id=&quot;outlineiframeshim&quot; src=&quot;'+(location.protocol==&quot;https:&quot;? 'blank.htm' : 'about<b></b>:blank')+'&quot; style=&quot;display:none; left:0; top:0; z-index:999; position:absolute; filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)&quot; frameBorder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/IFRAME&gt;')<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.$shimobj=$(&quot;#outlineiframeshim&quot;)<br />
},</code><hr />
</div>Here is a link to view the new design of our site: <a href="http://shawntrautman.com/index.aspx?theme=124" target="_blank">http://shawntrautman.com/index.aspx?theme=124</a><br />
<br />
Any help would be greatly, extremely appreciated-</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>claytonbrown</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73818-script-causing-404-and-other-issue-in-HTTPS</guid>
		</item>
		<item>
			<title>Displaying php validation results through javascript</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73774-Displaying-php-validation-results-through-javascript&amp;goto=newpost</link>
			<pubDate>Sun, 05 May 2013 11:20:45 GMT</pubDate>
			<description><![CDATA[My Question is little complicated,  
I have the following code in Jquery which submits a form and display the validation result from the destination page. 
 
 
Code: 
--------- 
submitHandler : function(form) { 
if($('#login').submit(function(){return false;})) 
{ 
$.ajax]]></description>
			<content:encoded><![CDATA[<div>My Question is little complicated, <br />
I have the following code in Jquery which submits a form and display the validation result from the destination page.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">submitHandler : function(form) {<br />
if($('#login').submit(function(){return false;}))<br />
{<br />
$.ajax<br />
({<br />
type: 'POST',<br />
url: $('#login').attr('action'),<br />
data: $('#login').serialize(),<br />
success: function(data) <br />
{<br />
$('#results').html(data);<br />
}<br />
});<br />
}<br />
return false;<br />
},</code><hr />
</div>The destination page is in php. The content displayed in #results is php processed validation results<br />
<br />
My Issue is - Iam getting some alpha numeric strings with the validation result as follows<br />
<br />
<b>{&quot;output&quot;:&quot;&quot;,&quot;status&quot;:-1,&quot;error_messages&quot;:{&quot;error&quot;:[&quot;please enter your name.&quot;],&quot;success&quot;:[]}}</b><br />
<br />
This is because i have a php file called message.php this validation results should be come through message.php. it is exactly processing and stripping the unwanted characters and displays the error message properly.<br />
<br />
Is there any way to do this in the above JavaScript(Jquery)that the the validation results should come through message.php instead of direct displaying to avoid putting unwanted characters in validation results (only validation result should be displayed)..<br />
<br />
Or any other suggestions you have ?<br />
<br />
Looking forward for a favorable action..<br />
I don't think i will get a accurate support about this issue from this forum... but may be ...<br />
<br />
Regards TOM</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?7-JavaScript">JavaScript</category>
			<dc:creator>letom</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73774-Displaying-php-validation-results-through-javascript</guid>
		</item>
	</channel>
</rss>
