jquery adding attribute in the element tr, td and div
<p>Sir,
I need to use jquery to add element in tag <code>td</code>, <code>tr</code> and <code>div</code> which contains <code>onmouseout</code> and <code>onmouseover</code>.</p>

<p>If found <code>onmouseout="ANY FUNCTION"</code> then i need to add attribute <code>onblur="SAME FUNCTION AS onmouseout"</code>.</p>

<p>Then if found <code>onmouseover="Any Function"</code> then i need to add attribute <code>onfocus="sane functions as onmouseover"</code>.</p>

<p>This functions contains in tag <code>td, tr or div</code>.</p>

<p><strong>Example td:</strong></p>

<pre><code>&lt;td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="zz1_GS"&gt;
</code></pre>

<p><strong>Then i need:</strong></p>

<pre><code>&lt;td onmouseover="Menu_A(this)" onfocus="Menu_A(this)" onmouseout="Menu_Unhvr(this)" onblur="Menu_Unhvr(this)" onkeyup="Menu_Key(this)" id="zz1_GS"&gt;
</code></pre>

<p><strong>Example tr:</strong></p>

<pre><code>&lt;tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="zz86756f"&gt;
</code></pre>

<p><strong>Then i need something like this:</strong></p>

<pre><code>&lt;tr onmouseover="MDynamic(this)" onfocus="MDynamic(this)" onmouseout="Menu_r(this)" onblur="Menu_r(this)" onkeyup="Menu_Ky(this)" id="zz86756f"&gt;
</code></pre>

<p><strong>Example div:</strong></p>

<pre><code>&lt;div class="1_5656" id="d867444f" onmouseover="PopOUp(this)" onmouseout="PopOStop(this)" style="text-align:center;"&gt;
</code></pre>

<p><strong>Then i need something like this:</strong></p>

<pre><code>&lt;div class="1_5656" id="d867444f" onmouseover="PopOUp(this)" onfocus="PopOUp(this)" onmouseout="PopOStop(this)" onblur="PopOStop(this)" style="text-align:center;"&gt;
</code></pre>

<p>The id name is not same and the level of td and tr is not uniform.</p>

<p>Can anyone help me to achive this?</p>

<p>I have done this code but its not working:</p>

<pre><code>            $('div[onmouseout]').each(function() {
        $(this).attr('onblur', $(this).attr('onmouseout'));
        }

        $('div[onmouseover]').each(function() {
        $(this).attr('onfocus', $(this).attr('onmouseover'));
        }

        $('tr[onmouseout]').each(function() {
        $(this).attr('onblur', $(this).attr('onmouseout'));
        }

        $('tr[onmouseover]').each(function() {
        $(this).attr('onfocus', $(this).attr('onmouseover'));
        }

        $('td[onmouseout]').each(function() {
        $(this).attr('onblur', $(this).attr('onmouseout'));
        }

        $('td[onmouseover]').each(function() {
        $(this).attr('onfocus', $(this).attr('onmouseover'));
        }
</code></pre>
