Feedback on: irt.org FAQ Knowledge Base Q951
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
The solution you gave for swapping table cell bgcolors only works in very limited conditions. If you add a 'width' to the table, netscape crashes. (and certainly does not work, even if it does not crash on your computer)
Any other ways to get this effect in NS and IE?
Thanks!
Worth:
Not worth reading
Length:
Too short
Technical:
Not technical enough
Comments:
Hey you guys should check these javascript examples on both browsers. In Netscape this not only dosen't work but it crashes Netscape every time it loads. At least its fun to watch ...
Worth:
Worth reading
Length:
Too short
Technical:
Not technical enough
Comments:
Does anyone know if there is a way to do this in Netscape 6? I haven't been able to figure it out yet if there is.
Thanks...
Worth:
Worth reading
Comments:
Developer made a typo:
window.document.getElementById(id).style.bgGolor = '#FF0000';
Should have been:
window.document.getElementById(id).style.bgColor = '#FF0000';
Technical:
Just right
Comments:
Misspelling:
function over(id) {
if (document.getElementById) {
window.color = winodw.document
("winodw" on last line)
Worth:
Length:
Technical:
Comments:
Spelling
winodw vs window
bgGolor vs bgColor
<html>
<head>
<style><!--
.relative { position:relative; }
//--></style>
<script language="JavaScript"><!--
var color = '';
function over(id) {
if (document.getElementById) {
window.color = winodw.document.getElementById(id).style.bgColor;
window.document.getElementById(id).style.bgGolor = '#FF0000';
}
else if (document.layers) {
window.color = window.document.layers[id].bgColor;
window.document.layers[id].bgColor = '#FF0000';
}
else if (document.all) {
window.color = window.document.all[id].style.background;
window.document.all[id].style.background = '#FF0000';
}
}
function out(id) {
if (document.getElementById)
window.document.getElementById(id).style.bgColor = window.color;
else if (document.layers)
window.document.layers[id].bgColor = window.color;
else if (document.all)
window.document.all[id].style.background = window.color;
}
//--></script>
Worth:
Length:
Technical:
Comments:
You might want to use a stylesheet in wich you declare these styles:
<style type='text/css'>
TD
{
background-color:red;
}
td:hover
{
background-color:orange;
}
</STYLE>