S
Sean Berry
I have a news video that I am sending out for a client. There are embedded
links to flash movies in the email.
I want the popup to be a set size (400 x 400). I am currently using the
following code, but the popup window is not 400 x 400, it is whatever the
browser size was last time it was opened. How can I set the absolute size
from within this email?
Thanks.
### START CODE ###
<SCRIPT language=javascript type=text/javascript>
<!--
/**********************************************************************
Author: Eric King
Url: http://redrival.com/eak/index.shtml
Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
***********************************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos==random){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen
..width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen
..height-h)-75)):100;}
if(pos==center){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPositi
on=(screen.height)?(screen.height-h)/2:100;}
else if((pos!=center && pos!=random) ||
pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+'
,scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolb
ar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
function blurAnchors(){
if(document.getElementsByTagName){
var a = document.getElementsByTagName(a);
for(var i = 0; i < a.length; i++){
a.onfocus = function(){this.blur()};
}
}
}
window.onload = blurAnchors;
</SCRIPT>
<TABLE>
<TBODY>
<TR>
<TD width=400><A onfocus=this.blur()
onclick="NewWindow(this.href,'video','400','400','no','center');return"
href="http://www.buildingonline.net/client/archwood/ht_high.htm"
false>Launch Home Time Video for Broadband, Cable, DSL,
etc.</A></TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD width=300><A onfocus=this.blur()
onclick="NewWindow(this.href,'video','400','400','no','center');return"
href="http://www.buildingonline.net/client/archwood/ht_low.htm"
false>Launch Home Time Video for dial-up 56k
modem.</A></TD></TR></TBODY></TABLE>
links to flash movies in the email.
I want the popup to be a set size (400 x 400). I am currently using the
following code, but the popup window is not 400 x 400, it is whatever the
browser size was last time it was opened. How can I set the absolute size
from within this email?
Thanks.
### START CODE ###
<SCRIPT language=javascript type=text/javascript>
<!--
/**********************************************************************
Author: Eric King
Url: http://redrival.com/eak/index.shtml
Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
***********************************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos==random){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen
..width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen
..height-h)-75)):100;}
if(pos==center){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPositi
on=(screen.height)?(screen.height-h)/2:100;}
else if((pos!=center && pos!=random) ||
pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+'
,scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolb
ar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
function blurAnchors(){
if(document.getElementsByTagName){
var a = document.getElementsByTagName(a);
for(var i = 0; i < a.length; i++){
a.onfocus = function(){this.blur()};
}
}
}
window.onload = blurAnchors;
</SCRIPT>
<TABLE>
<TBODY>
<TR>
<TD width=400><A onfocus=this.blur()
onclick="NewWindow(this.href,'video','400','400','no','center');return"
href="http://www.buildingonline.net/client/archwood/ht_high.htm"
false>Launch Home Time Video for Broadband, Cable, DSL,
etc.</A></TD></TR>
<TR>
<TD> </TD></TR>
<TR>
<TD width=300><A onfocus=this.blur()
onclick="NewWindow(this.href,'video','400','400','no','center');return"
href="http://www.buildingonline.net/client/archwood/ht_low.htm"
false>Launch Home Time Video for dial-up 56k
modem.</A></TD></TR></TBODY></TABLE>