Skip to content

Instantly share code, notes, and snippets.

Created April 12, 2015 04:38
Show Gist options
  • Save anonymous/eeeaecea2d62512f1844 to your computer and use it in GitHub Desktop.
Save anonymous/eeeaecea2d62512f1844 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/edaqi5
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
article, aside, figure, footer, header, hgroup,
menu, nav, section { display: block; }
</style>
</head>
<body>
<table border="1">
<tbody>
<tr>
<td>Lorem</td> <td>Ipsum</td> <td>Fierent</td>
</tr>
<tr>
<td style="background-color:red">Lorem ipsum</td> <td>pro ut tale erant</td> <td>mnesarchum ne</td>
</tr>
<tr>
<td >mnesarchum ne </td> <td >sapientem</td> <td >fierent mnesarchum </td>
</tr>
</tbody>
</table>
<script id="jsbin-javascript">
$("table tr").hover(
function(){
$(this).css("background-color","#FFEFC6");
},
function(){
$(this).css("background-color","");
}
);
</script>
<script id="jsbin-source-javascript" type="text/javascript">$("table tr").hover(
function(){
$(this).css("background-color","#FFEFC6");
},
function(){
$(this).css("background-color","");
}
);</script></body>
</html>
$("table tr").hover(
function(){
$(this).css("background-color","#FFEFC6");
},
function(){
$(this).css("background-color","");
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment