Code:
echo '<td onmouseout="this.style.backgroundImage = \'url(\\\'', $patterns[$x]['imageUrl'], '\\\')\';">';
for my latest program. The backslashes, oh god.

Now I just need a language that outputs PHP.