Thread: images...
View Single Post
  #2  
Old 12-09-2004, 06:13 PM
G.I.JOE*MFA* is offline G.I.JOE*MFA*
Registered User

Join Date: Feb 2002
Posts: 437

Send a message via ICQ to G.I.JOE*MFA* Send a message via Yahoo to G.I.JOE*MFA*
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
__________________
DON'T LOOK AT MY SPELLING CAUSE IT SUCKS AND I DON'T CARE
__________________




*MaFiA*...Trust...Respect . . . Family

BF *MaFiA* - CoD *MaFiA* - DF *MaFiA* - JO *MaFiA* - RvS ¤MaFiA¤ - SW *MaFiA* - Capo Crimini
The Site




Last edited by G.I.JOE*MFA*; 12-09-2004 at 06:18 PM.
Reply With Quote