mouse over vis billede
jeg bruger det her java script til at vise billede når der er mouse over men har et lille problem med at få den til at vise mere end et eller det samme billede, den skulle gerne vise et billede for hver linje den skriver.#Style {
position: fixed;
right:200;
bottom:100;
visibility:hidden;
border:solid 1px #CCC;
padding:5px;}
<script language="Javascript">
<!--
function ShowPicture(id,Source) {
if (Source=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (Source=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}
//-->
</script>
$SearchRows .= "<tr bgcolor=$col>\n\t
<td><a href=\"info.php?id=$a1[ProductID]\" onMouseOver=\"ShowPicture('Style',1)\" onMouseOut=\"ShowPicture('Style',0)\">$a1[ProductName]</a>
<div id=\"Style\"><img src=\"images/$billede\" width=\"300\" height=\"300\"></div></td>\n\t
<td><a class=BlueLink href=\"search.php?c=$a1[CategoryID]\">$a1[CategoryName]</a></td>\n\t
<td>$DatePosted</td>\n\t
<td>$image</td>\n
</tr>\n\n";
og den sidder i en
while($a1 = mysql_fetch_array($r1))
{
$billede = $a1[images];
løkke