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