Problemer med mouseover
jeg har et problem med mouse over her er som det skal se ud www.blueeye.dk/ddha1/u_tilbud.phpmen jeg vil gøre det med mysql
her er mit script :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="css/style1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script language="JavaScript">
function MouseOver(hvad, tekst) {
document.getElementById(hvad).innerHTML = tekst;
}
function MouseOut(hvad) {
document.getElementById(hvad).innerHTML = "Her kan du se hvad vi tilbyder af undervisning<br>Før musen over det du vil vide mere om og der<br>vil komme mere info her. ";
}
</script>
<table align="center" width="100%" border="0" cellspacing="5" cellpadding="5" class="noline">
<tr height="16">
<td class="noline" class="noline" colspan="3" width="100%" bgcolor="#777777">Hvilken undervisning tilbyder vi : </td>
</tr>
<tr>
<td class="noline" class="noline" > </td>
<td class="noline" class="noline" align="center">
<table width="100%" width="700" height="400" border="0" cellspacing="5" cellpadding="5" class="noline">
<?php
$con = mysql_connect("localhost","xxxxxxx","xxxxxxxx");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("ddha", $con);
$sql = mysql_query("SELECT * FROM tilbud");
while($row = mysql_fetch_array($sql))
{
echo "<tr>";
echo "<td class=\"noline\" width=\"200\">";
echo "<a href=\"\" onmouseover=\"MouseOver(0, '" . $row['indhold'] . "')\" onmouseout="MouseOut(0)">" . $row['menu'] . "</a>";
echo "</td>";
echo "<td class=\"noline\" width=\"500\" height=\"400\" align=\"left\" valign=\"top\"><div id=\"0\" class=\"infotxt\">Her kan du se hvad vi tilbyder af undervisning<br>Før musen over det du vil vide mere om og der<br>vil komme mere info her. </div></td>";
echo "</td>";
echo "</tr>";
}
mysql_close($con);
?>
</table>
</td>
<td class="noline"> </td>
</tr>
<tr height="16">
<td class="noline" colspan="3" width="100%"> </td>
</tr>
</table>
</body>
</html>
er der en der kan hjælpe mig
