<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>test</title> <script> function color(z){ var x=document.getElementById(z); if(!x.style.backgroundColor){ x.style.backgroundColor='orange'; }else if (x.style.backgroundColor=='orange'){ x.style.backgroundColor='lime'; }else if (x.style.backgroundColor=='lime'){ x.style.backgroundColor='orange'; } } </script> </head> <body> <p>this is a test</p> <table> <tr> <td>&</td> <td id="dynamic">TEST</td> <td style="cursor:pointer" onclick="color('dynamic')">clik me</td> </tr> </table> </body> </html>
Show this record as plain/text
nopaste service by: Roberto Corrado