M
michael
I'm changing colors of table cells like this:
<style type="text/css">
..over {background-color: #bedddc}
..out {background-color: #99cccc}
</style>
[snip]
<td onmouseover="this.className='over'" onmouseout="this.className='out'">
[snip]
But what I want is a generic javascript to change the current
onmousover/out cell from a script above
the table instead of using "this.className" within each td code, something
like follows:
<script>
function over(){
???????
}
function out(){
???????
}
</script>
[snip]
<td onmouseover="over();" onmouseout="out();">
[snip]
Can it be done w/out assigning a special id or class to each cell and pass
'this' onto above script for same effect?
If possible - please replace ??????? with any ideas.
Thanks!
michael
<style type="text/css">
..over {background-color: #bedddc}
..out {background-color: #99cccc}
</style>
[snip]
<td onmouseover="this.className='over'" onmouseout="this.className='out'">
[snip]
But what I want is a generic javascript to change the current
onmousover/out cell from a script above
the table instead of using "this.className" within each td code, something
like follows:
<script>
function over(){
???????
}
function out(){
???????
}
</script>
[snip]
<td onmouseover="over();" onmouseout="out();">
[snip]
Can it be done w/out assigning a special id or class to each cell and pass
'this' onto above script for same effect?
If possible - please replace ??????? with any ideas.
Thanks!
michael