hello everybody,
I found a site with a very good example that i like to incorporate in my webpage: (under the title: mouseover effect for most browsers.)
due to my exp. with html and javascript i was unable able to understand teh code enough to add to my webpage with the needed modifications.
I like to understand how its done and be able to click on a row to open a different page.
anyhelp u can give me would be greatly appreciated:
tried a test code but no go..
Robin
I found a site with a very good example that i like to incorporate in my webpage: (under the title: mouseover effect for most browsers.)
due to my exp. with html and javascript i was unable able to understand teh code enough to add to my webpage with the needed modifications.
I like to understand how its done and be able to click on a row to open a different page.
anyhelp u can give me would be greatly appreciated:
tried a test code but no go..
Robin
Code:
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
var r3=document.getElementById('hilite3').getElementsByTagName('tr');
var l=r.length;
for (i=0;i<l;i++){
r3[i].onmouseover = function(){this.style.backgroundColor="#fff"};
r3[i].onmouseout = function(){this.style.backgroundColor=""};
}
</script>
</head>
<table border="1" cellpadding="2" cellspacing="0" id="hilite3">
<tr>
<td>Row1 Col1</td>
<td>Row1 Col2</td>
<td>Row1 Col3</td>
<td>Row1 Col4</td>
</tr>
<tr>
<td>Row2 Col1</td>
<td>Row2 Col2</td>
<td>Row2 Col3</td>
<td>Row2 Col4</td>
</tr>
<tr>
<td>Row3 Col1</td>
<td>Row3 Col2</td>
<td>Row3 Col3</td>
<td>Row3 Col4</td>
</tr>
<tr>
<td>Row4 Col1</td>
<td>Row4 Col2</td>
<td>Row4 Col3</td>
<td>Row4 Col4</td>
</tr>
</table>
</body>
</html>