Nieuw lid |
|
Ik zit met het volgende, ik ben bezig met een website welke gekoppeld is aan een database. Op deze website komt een overzicht van welke films ik heb. Nu ben ik bezig met het toevoegen van dvd hoesjes aan elke titel. Toen was mijn idee om bij een mouse over een preview te geven van de dvd cover in het klein.
Dit allemaal heb ik ook grotendeels werkend echter komt er bij elke film hetzelfde hoesje bij de mousover te voorschijn, ik heb geen idee hoe ik dit werkend krijg heeft iemand een idee?
Broncode:
<?php
include("db_connect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../style.css" rel="stylesheet" type="text/css" />
<SCRIPT language="JavaScript1.2" src="main.js" type="text/javascript"></SCRIPT>
</head>
<body>
<table border="0" width ="820px">
<tr>
<td colspan="5"><h2 align="center" >Overzicht alle films</h2></td>
</tr>
<tr>
<th align='center' width="20px">ID</th>
<th align='left' width="550px">Titel</th>
<th align='left' width="100px">Genre</th>
<th align='left' width="50px">duur</th>
<th align='left' width="100px">Cover film</th>
</tr>
<DIV id="TipLayer" style="visibility:hidden;position:absolute;z-index:1000;top:-100;"></DIV>
<?php
$sql= mysql_query("SELECT * FROM `films`");
while ($rij = mysql_fetch_array($sql)){
$Cover = "<IMG width='200px' src=cover/".$rij['cover'].">";
$Film = "<a target='_blank' href=cover/".$rij['cover']." onMouseOver=stm(Text[1],Style[1]) onMouseOut=htm()><IMG WIDTH='30px' border='0' SRC=icon.jpg ></a> ";
echo ("<tr><td align='center'>". $rij['id'] . " </td> " .
"<td >". $rij['titel'] . " </td> " .
"<td >". $rij['genre'] . " </td> " .
"<td >". $rij['duur'] . " </td> " .
"<td >". $Film . "</td> ".
" </tr>\n ");
}
?>
<SCRIPT language="JavaScript1.2" type="text/javascript">
Text[1]=["Cover van film:","<?php echo ($Cover);?>"]
Style[1]=["White","black","#000099","#E8E8FF","","","","","","","float X.300","","","",200,"",2,2,10,10,51,0.5,75,"simple","gray"]
</SCRIPT>
</table>
<?php include("db_connect.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="../style.css" rel="stylesheet" type="text/css" /> <SCRIPT language="JavaScript1.2" src="main.js" type="text/javascript"></SCRIPT> </head> <body> <table border="0" width ="820px"> <tr> <td colspan="5"><h2 align="center" >Overzicht alle films</h2></td> </tr> <tr> <th align='center' width="20px">ID</th> <th align='left' width="550px">Titel</th> <th align='left' width="100px">Genre</th> <th align='left' width="50px">duur</th> <th align='left' width="100px">Cover film</th> </tr> <DIV id="TipLayer" style="visibility:hidden;position:absolute;z-index:1000;top:-100;"></DIV> <?php $Cover = "<IMG width='200px' src=cover/".$rij['cover'].">"; $Film = "<a target='_blank' href=cover/".$rij['cover']." onMouseOver=stm(Text[1],Style[1]) onMouseOut=htm()><IMG WIDTH='30px' border='0' SRC=icon.jpg ></a> "; echo ("<tr><td align='center'>". $rij['id'] . " </td> " . "<td >". $rij['titel'] . " </td> " . "<td >". $rij['genre'] . " </td> " . "<td >". $rij['duur'] . " </td> " . "<td >". $Film . "</td> ". " </tr>\n "); } ?> <SCRIPT language="JavaScript1.2" type="text/javascript"> Text[1]=["Cover van film:"," <?php echo ($Cover);? >"] Style[1]=["White","black","#000099","#E8E8FF","","","","","","","float X.300","","","",200,"",2,2,10,10,51,0.5,75,"simple","gray"] </SCRIPT> </table>
Bij voorbaat dank.
|