Javascript if/else onclick help
<p>I have a simple animation in CSS3 called <code>"tap"</code> and <code>"untap"</code>.</p>

<p>I call it in via <code>" className"</code>, and I'm trying to combine it so that <code>onclick</code> it does "tap" and <code>onmouseout</code> to "untap".</p>

<p>I have the click part working, but after the <code>else</code> statement it "doesn't work". What am I doing wrong?</p>

<hr>

<pre><code>&lt;img src="picHere.gif" id="img7" onclick="if(this.className != 'tap') { this.className='tap'}  else {"onmouseout='this.className='untap'}; "/&gt;
</code></pre>
