PHP wouldn't make the HTML code. It would just automate making 13 copies of it.
PHP Code:
<?php
function imagecode($url,$x,$y) {
?>
<div style="position:absolute;left:<?php echo $x; ?>;top:<?php echo $y; ?>;">
<img src="<?php echo $url; ?>">
</div>
<?php
}
imagecode('myimg.jpg',10,50);
imagecode('myimg2.jpg',60,5);
imagecode('myimg3.jpg',100,150);
//...
?>
Adjust as needed.
Note that for a rollover you'd need a second image URL. There are two options:
1) Use the same URL with one change, so you could still use one function argument. (Then just add "2" to the end of the URL or something.)
2) Use a new URL, and add it as a new argument to the function, like ...($url,$rollover_url,...), and add <?php echo $rollover_url; ?> where you need it in the HTML code.
Bookmarks