Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<style type="text/css">
table {
border-collapse:collapse;
}
td {
border:1px solid #000000;
background-color:#ffffff;
padding:3px;
}
td.sel {
background-color:#00ff00;
}
</style>
<script type="text/javascript">
function blah(obj) {
var rowObj = obj.parentNode;
for (i = 0; i < rowObj.childNodes.length; i++) {
//this line prevents firefox from treating whitespace as a childNode
if (rowObj.childNodes[i].style) {
rowObj.childNodes[i].className = (rowObj.childNodes[i] == obj) ? "sel" : "";
}
}
}
</script>
</head>
<body>
<table>
<tr>
<td onclick="blah(this)">cell1</td>
<td onclick="blah(this)">cell2</td>
<td onclick="blah(this)">cell3</td>
<td onclick="blah(this)">cell4</td>
<td onclick="blah(this)">cell5</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function blah(obj)
{ for (var node = obj.parentNode.firstChild; node; node = node.nextSibling)
if (node.nodeType!=3 && node.tagName=="TD")
node.className = (node==obj)? "sel": "";
}
</script>
<script language="JavaScript" type="text/javascript">
var boxColor="ffffff"
var ns6=document.getElementById&&!document.all
var highlightcolor="#ooff00"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/
//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}
//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
</script>
<form name="myForm" onClick="highlight(event)"onKeyUp="highlight(event)">