| Revision as of 02:42, 3 February 2012 Armorwraith (Talk | contribs) ← Previous diff |
Revision as of 02:47, 3 February 2012 Armorwraith (Talk | contribs) Next diff → |
||
| Line 1: | Line 1: | ||
| + | |||
| + | <script type="text/javascript"> | ||
| + | |||
| function hightlight(index) | function hightlight(index) | ||
| { | { | ||
| Line 9: | Line 12: | ||
| text.style.color = "white"; | text.style.color = "white"; | ||
| - | } | + | } |
| + | </script> | ||
<script type="text/javascript">
function hightlight(index) {
var text = document.getElementById("textspan" + index);
text.style.color = "orange";
} function removehightlight(index) {
var text = document.getElementById("textspan" + index);
text.style.color = "white";
} </script>
<html>
<head>
<meta charset=utf-8 />
<title>Test Page</title>
<style>
article, aside, figure, footer, header, hgroup,
menu, nav, section { display: block; }
body {
font-family: verdana;
}
p {
margin: 0px;
}
</style> </head> <body>
<a href="#" class="btn-list">accessory
</a>
<a href="#" class="btn-list">/accessory
</a>
</body> </html>