Magic
<html>
<head>
<style>
body { font-family: helvetica, arial, sans-serif;
font-size: 24px;
font-weight: bold;
line-height: 12px;
}
input
{
vertical-align: bottom;
}
</style>
</head>
<br>
<form style="position: absolute; top: 10px; left: 10px; z-index: 10000;">
Letter <input type="text" name="letter" style="width:25px;">
Number <input type="text" name="number" style="width:25px;">
<input type="submit" value="OK" />
</form>
<?php
$x = $_REQUEST["letter"];
$y = $_REQUEST["number"];
for ($j = 0; $j < strlen($x); $j += 1) {
$letter = substr($x, $j, 1);
$position = $j * 480;
for($i=1; $i<=$y; $i+=1){
echo('<div style="position: absolute; width: 100%; top: 0px; left: ' . $position . 'px; z-index:'.$i.'"><img src="images/'.$letter.'/a'.$i.'.gif"></div>');
}
}
?>
</body>
</html>
Editor details
Last edited by: Steven James Sarkozy
Edit access: Everybody