JSFiddle - React, Tailwind, and code Playground

by aprilkw

HTML

<p onmousedown="myFunction(this,'red')" onmouseup="myFunction(this,'green')">Change Colour </p>

<img onmouseover="bigImg(this)" onmouseout="normalImg(this)" border="0" src="smiley.gif" alt="Smiley" width="32" height="32">

JavaScript

function myFunction(elmnt,clr)
{
elmnt.style.color=clr;
}


function myFunction(elmnt,clr)
{
elmnt.style.color=clr;
}