form_func6.php 516 Bytes
<html>
	<form method="post" action="main.php">
		<input type="button" id="func6" name="func6" class="func-button" value="" onclick="this.form.submit()"/>
		<input type="hidden" id="func6" name="func6" value="FUNC6"/>
	</form>
	<script type='text/javascript'>
		var elem = document.getElementById('cam<?php echo $i ?>');
		var pos = elem.getBoundingClientRect();
		var btn = document.getElementById('func6');
		var pos_x = pos.x+400;
		btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
	</script>
</html>