formatting javascript to be echoed out by php
<p>I am trying to echo out some JavaScript, but I can't get the formatting right I start off by putting the javascript I want to out into a string </p>

<pre><code>$javascript = 'onmouseover="this.style.backgroundColor='blue'" onmouseout="this.style.backgroundColor='white'"';
</code></pre>

<p>and then echo it out like this </p>

<pre><code> $hint="&lt;span $javascript&gt;".$artistname-&gt;item(0)-&gt;childNodes-&gt;item(0)-&gt;nodeValue."&lt;/span&gt;";
</code></pre>

<p>any help would be much appreciated </p>
