| Re: Make a popup with a certain width / height ok for starters here is your Javascript
[code:1:316ac49a3e]<script language="JavaScript">
<!--
function openpopup(){
var popurl="testpage.php"
winpops=window.open(popurl,"","widt h=670,height=400, scrollbars,")
}
//-->
</script>[/code:1:316ac49a3e]
Place all this in your Header file, something like this header.inc
[code:1:316ac49a3e]<a href="javascript:openpopup()">link< ;/a>[/code:1:316ac49a3e]
Place this code either in your header file or main file.
If u place this code in a PHP script make sure it looks like this
[code:1:316ac49a3e]echo"<a href=\"javascript:openpopup()\">link& lt;/a>"
."";[/code:1:316ac49a3e]
This is how i add headers to another file. For example in your index.php file.
[code:1:316ac49a3e] <?php require_once($DOCUMENT_ROOT . '/header.inc'); ?>[/code:1:316ac49a3e]
Make sure this code is on the first line of your index.php for example. |