heres the code i use for my policy and terms & condition popups:
Java Script:
Code:
<script language="JavaScript">
var WinNum=0;
function WindowOpen(Url,x,y)
{
var String;
String = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,";
String += ",width=";
String += x;
String += ",height=";
String += y;
WinPic=window.open(Url,WinNum++,String);
}
</script>
Link Script:
Code:
<td onClick="WindowOpen('LARGE IMAGE LINK or .PHP/.HTML PAGE',520,600)">
<a href="javascript:;">TEXT or SMALL IMAGE LINK
</a>
</td>
now look at the Link Script...see where it says
,520,600) - this is the size of the windows that pops up
i edited it a bit to get rid of the trash but here is my entire code for my uses:
Java Script (no change from above):
Code:
<script language="JavaScript">
var WinNum=0;
function WindowOpen(Url,x,y)
{
var String;
String = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,";
String += ",width=";
String += x;
String += ",height=";
String += y;
WinPic=window.open(Url,WinNum++,String);
}
</script>
Link Script (note the changes for button links):
Code:
<td bgcolor="050C12" style="cursor:pointer"
onClick="WindowOpen('http://dfmafia.net/policy.html',520,600)"
onMouseover="this.style.backgroundColor='1E252A'"
onMouseout="this.style.backgroundColor='050C12'">
<a href="javascript:;" >
<img src="images/policy.gif" border="0">
</a>
</td>
hope this helps