kieryn
01-07-2007, 05:29 PM
This is some ASP code with some simple DHTML.
It's supposed to create a table grid of pixels that change color as the mouse goes over them. It works fine in Mozilla buy not in IE. Someone please help!!!
<html>
<head>
<script language="javascript">
function paint(td) {
td.style.backgroundColor = 'black';
}
</script>
<style>
table {
border-spacing: 0;
border-style: solid;
border-width: 1px;
border-color: black;
border-collapse:collapse;
padding: 0;
}
td {
border-style: none;
border-width: 0px;
padding: 0;
}
</style>
</head>
<body>
<table>
<%
For y = 1 to 32
response.write "<tr>"
For x = 1 to 32
response.write "<td height=2px width=2px name='td_" & x & "_" & y & "' "
response.write " style='background-color: white;' onmouseover='javascript: paint(this);'>"
next
next
%>
</table>
</html>
It's supposed to create a table grid of pixels that change color as the mouse goes over them. It works fine in Mozilla buy not in IE. Someone please help!!!
<html>
<head>
<script language="javascript">
function paint(td) {
td.style.backgroundColor = 'black';
}
</script>
<style>
table {
border-spacing: 0;
border-style: solid;
border-width: 1px;
border-color: black;
border-collapse:collapse;
padding: 0;
}
td {
border-style: none;
border-width: 0px;
padding: 0;
}
</style>
</head>
<body>
<table>
<%
For y = 1 to 32
response.write "<tr>"
For x = 1 to 32
response.write "<td height=2px width=2px name='td_" & x & "_" & y & "' "
response.write " style='background-color: white;' onmouseover='javascript: paint(this);'>"
next
next
%>
</table>
</html>