Hallo,
also wenn Ihr immer noch behauptet das es ohne JavaScript geht sage ich Nein es geht nicht. Mir wurde zwar immer gesagt es geht auch ohne JavaScript so wie ich es habe will, bin ich wahrscheinlich zu doof?
Dein Link hilft mir auch nicht wirklich weiter jetzt bin ich wieder dort wo ich heute Morgen war.
Wie auch immer so sieht nun mein code aus und ich weiß immer noch nicht wie ich mir das aktive Feld Farbe beibehalte und wenn die das nächste aktive Feld geklickt wird soll das erlöschen und das neue aktive Feld erstahlen. Nur wie soll das ohne JavaScript gehen?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>xxx</title>
<meta http-equiv="Content-Type" content="text/html; ISO-8859-1">
<style type="text/css">
body { color:#000000; background-color:#ffffff; }
a:link { color:#333399; background-color:#ededed; }
a:visited { color:#993333; background-color:#ededed; }
/*a:focus, a:hover { color:#ffffff; background-color:#000066; }*/
a:active { color:#ff0000; background-color:#cccccc; }
table, td, th { border:1px solid #000000; }
table { border-spacing:0; border-collapse:collapse; }
td, th { text-align:left; vertical-align:top; padding:0; }
td a { display:block; }
.bg { color:#000000; background-color:#ffff99; }
.click { background-color:#cccccc; cursor:pointer; }
.cursor { cursor:pointer; }
</style>
</head>
<body>
<table>
<thead>
<tr><th>1111</th><th>22222</th><th>33333</th><th>44444</th><th>55555</th></tr>
</thead>
<tbody>
<tr class="bg" onmouseover="this.className='cursor';"
onmouseout="this.className='bg';"
onclick="window.location.href='#'; this.className='click'; this.style.backgroundColor='green';">
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
</tr>
<tr class="bg" onmouseover="this.className='cursor';"
onmouseout="this.className='bg';"
onclick="window.location.href='#'; this.className='click'; this.style.backgroundColor='green';">
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
</tr>
</tbody>
</table>
</body>
</html>