<html>
<head>
<style type="text/css">
</style>
<script type="text/javascript">
</script>
</head>
<body onload="fixImgs('photos', 150) /*('element ID', maximum width)*/">
<div align="center">
<table id="photos" cellspacing="2">
<tr>
<td class="simple"><img src="http://luchko.files.wordpress.com/2006/12/peace_wallpaper_thumb.jpg" alt="photo 1"></td>
<td class="simple"><img src="http://www.teenhollywood.com/wallpaper/400x300/366/adam-brody-wallpaper.jpg" alt="photo 2"></td>
<td class="simple"><img src="http://forums.widescreenxp.net/screenshots/%5B146%5Dwallpaper_halo_ss.jpg" alt="photo 3"></td>
</tr>
<tr>
<td class="simple" colspan="3"><b>Live demo:</b> <input type="button" value="Make width 80 pixels" onclick="fixImgs('photos', 80)"></td></tr>
<tr>
</table>
</div>
</body>
</html>