I'm trying to do a javascript colorchange on mouseover which so far isn't working... everytime I insert on of the PHP variables, it likes to put a page break afterward (viewing the page source) which may or may not be the culprit... either way though, I don't want it to do this. So how can I make it stop?
For example:
This code:
echo "<TABLE WIDTH=100% CELLPADDING=2 CELLSPACING=0 BORDER=0 BGCOLOR=$backgroundcolor id='td$jobid' onMouseOver='javascript:document.all.td$jobid.style.background=#DAE6FF' onMouseOut=javascript:document.all.td$jobid.style.background=#F4F4F4>";
generates the following:
<TABLE WIDTH=100% CELLPADDING=2 CELLSPACING=0 BORDER=0 BGCOLOR=FFFFF7 id='td23
' onMouseOver='javascript:document.all.td23
.style.background=#DAE6FF' onMouseOut=javascript:document.all.td23
.style.background=#F4F4F4>
What I would like is:
<TABLE WIDTH=100% CELLPADDING=2 CELLSPACING=0 BORDER=0 BGCOLOR=FFFFF7 id='td23' onMouseOver='javascript:document.all.td23.style.background=#DAE6FF' onMouseOut=javascript:document.all.td23.style.background=#F4F4F4>
Also, how do I go about using both ' and " in one Echo statement... this javascript example uses both in the working version I have (I've been trying to modify to use one or another).