Title: lemoncake's Replies | WordPress.org

---

# lemoncake

  [  ](https://wordpress.org/support/users/lemoncake/)

 *   [Profile](https://wordpress.org/support/users/lemoncake/)
 *   [Topics Started](https://wordpress.org/support/users/lemoncake/topics/)
 *   [Replies Created](https://wordpress.org/support/users/lemoncake/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/lemoncake/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/lemoncake/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/lemoncake/engagements/)
 *   [Favorites](https://wordpress.org/support/users/lemoncake/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Specific cell color based on text value](https://wordpress.org/support/topic/specific-cell-color-based-on-text-value/)
 *  Thread Starter [lemoncake](https://wordpress.org/support/users/lemoncake/)
 * (@lemoncake)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/specific-cell-color-based-on-text-value/#post-4685499)
 * OK i beat you to it but if anyone else struggle with this I found some info resulting
   in a java script that manage this picture swap thing.
 * var allTableCells = document.getElementsByTagName(“td”);
 * var yourImage = new Image();
    yourImage.src = “yespic.png”;
 * for (var i = 0;i < allTableCells.length; i++) {
    var node = allTableCells[i];
   if (node.textContent.trim() === “YES”) { node.textContent = “”; node.appendChild(
   yourImage); } }
 * </script>
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Specific cell color based on text value](https://wordpress.org/support/topic/specific-cell-color-based-on-text-value/)
 *  Thread Starter [lemoncake](https://wordpress.org/support/users/lemoncake/)
 * (@lemoncake)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/specific-cell-color-based-on-text-value/#post-4685497)
 * Gave this some thought. What about replacing the “YES” and “NO” text value as
   red and green pictures instead? Is that possible with the HTML shortcode?
 * If anyone have any idea please let me know!

Viewing 2 replies - 1 through 2 (of 2 total)