I have the following code that I want to use in an if-statement
<div id="p7sc1Reset" style="position:absolute; left:546px; top:239px; width:18px; height:18px; z-index:103; background-color: ; layer-background-color: "><a href="javascript:;" onMouseDown="P7_runScroller('p7scroller1','Reset','Medium',0,0,0,0);return false" onClick="return false" onFocus="if(this.blur)this.blur()"><img src="gwimages/p7gw_reset.gif" width="18" height="18" border="0" alt="Reset"></a></div>
i.e. <?php
if (condition) do the above
?>
I've enclosed the above with echo " "; and changed all the double quotes to single one.
What do I do with the single quotes? ie. the ones in
onMouseDown="P7_runScroller('p7scroller1','Reset','Medium',0,0,0,0);return false"
Leaving them the same returns a warning in the IE statusbar and the page doesn't work properly.