I want to run a javascript inbetween php tags, but I am not quite sure how to call it. All googling results in client side vs server side questions.
?>
<script type="text/javascript">
function extend() {
var temp = document.getElementById("search-menu").offsetHeight+1160;
document.getElementById("search-menu").style.height = temp."px";
}
extend();
</script>
<?php
Here you can see the end of one php tag, and at the bottom, the start of the next tag. Inside is the script and a call to the function, but as of now, its not running. Am I calling the function improperly?