Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lemoncake

    (@lemoncake)

    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.

    Thread Starter lemoncake

    (@lemoncake)

    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)