Hello,
I want to create a module showing up 9 random product images in a table.
3 trs and 3 tds.
I've tried to solve it with javascript included into a mod.php file:
<html>
<head>
<title>JSProd</title>
<style type="text/css">
<!--
.table_jsprod {-moz-border-radius: 10px; margin: 20px;}
.table_td_jsprod {border: 1px solid grey;}
-->
</style>
<script language="javascript" >
<!--
// here will be the script
-->
</script>
</head>
<body>
<table width="300" height="390" border="1" class="table_jsprod">
<tr>
<td class="table_td_jsprod"> RANDOM IMAGE /></td>
<td class="table_td_jsprod">RANDOM IMAGE</td>
<td class="table_td_jsprod">RANDOM IMAGE</td>
</tr>
<tr>
<td class="table_td_jsprod"> RANDOM IMAGE </td>
<td class="table_td_jsprod"> RANDOM IMAGE </td>
<td class="table_td_jsprod"> RANDOM IMAGE </td>
</tr>
<tr>
<td class="table_td_jsprod"> RANDOM IMAGE </td>
<td class="table_td_jsprod"> RANDOM IMAGE </td>
<td class="table_td_jsprod"> RANDOM IMAGE </td>
</tr>
</table>
</body>
Now I have to write a script which shows random product images in each td. When you click on the image, you should be linked to the belonging product page of the product image.
How can I realize this? And which source can I use?
Regards,
Storm