PHP beginner |
|
owjah, sorry...
dit is de hele code van de tabel:
<style type="text/css">
td.off {
background: #84857C;
}
td.on {
background: #D5D4CC;
}
</style>
<script language="JavaScript">
<!--
if(navigator.appName == "Microsoft Internet Explorer" &&
parseInt(navigator.appVersion) >= 4){
ie4 = true;
}
else {
ie4 = false;
}
function changeColor(){
if(ie4){
what = window.event.srcElement;
if(what.className == "link"){
if(what.style.color == "black"){
what.style.color = "darkorange";
}
else {
what.style.color = "black";
}
}
else {}
}
}
document.onmouseover = changeColor;
document.onmouseout = changeColor;
// -->
</script>
<style type="text/css"> td.off { background: #84857C; } td.on { background: #D5D4CC; } </style> <script language="JavaScript"> <!-- if(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4){ ie4 = true; } else { ie4 = false; } function changeColor(){ if(ie4){ what = window.event.srcElement; if(what.className == "link"){ if(what.style.color == "black"){ what.style.color = "darkorange"; } else { what.style.color = "black"; } } else {} } } document.onmouseover = changeColor; document.onmouseout = changeColor; // --> </script>
<table width='100%' style='cursor: pointer' border='0' style='border: 1px solid #5C5B58' cellspacing='0' cellpadding='10'onclick=\"window.location = 'index.php?pagina=producten/details.php&id=".$aFetch['id']."&cat=".$_GET['cat']."&titel=".$aFetch['type']."'\">
<tr>
<td class=\"off\" onmouseover=\"this.className='on'\" onmouseout=\"this.className='off'\"><center><div style=\"background-image:url(watermerk.php?image=images/producten/".$aFetch['foto1']."); background-position:center; width:250px; height:150px;border: 1px solid #000000;\"></div><br><b><a href='index.php?pagina=producten/details.php&id=".$aFetch['id']."&titel=".$aFetch['type']."' class='link'><font color='#000000'>".substr($aFetch['type'], 0, 15)."..</b> - <b>€ ".sprintf('%01.2f', $aFetch['prijs'])."</font></a></b><br></center></td>
</tr>
</table>
<table width='100%' style='cursor: pointer' border='0' style='border: 1px solid #5C5B58' cellspacing='0' cellpadding='10'onclick=\"window.location = 'index.php?pagina=producten/details.php&id=".$aFetch['id']."&cat=".$_GET['cat']."&titel=".$aFetch['type']."'\"> <td class=\"off\" onmouseover=\"this.className='on'\" onmouseout=\"this.className='off'\"><center><div style=\"background-image:url(watermerk.php?image=images/producten/".$aFetch['foto1']."); background-position:center; width:250px; height:150px;border: 1px solid #000000;\"></div><br><b><a href='index.php?pagina=producten/details.php&id=".$aFetch['id']."&titel=".$aFetch['type']."' class='link'><font color='#000000'>".substr($aFetch['type'], 0, 15).".. </b> - <b>€ ".sprintf('%01.2f', $aFetch['prijs'])." </font></a></b><br></center></td>
|