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=javasc ript 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(mypag e,myname,w,h,sc roll,pos){
if(pos==random) {LeftPosition=( screen.width)?M ath.floor(Math. random()*(scree n
..width-w)):100;TopPosi tion=(screen.he ight)?Math.floo r(Math.random() *((screen
..height-h)-75)):100;}
if(pos==center) {LeftPosition=( screen.width)?( screen.width-w)/2:100;TopPositi
on=(screen.heig ht)?(screen.hei ght-h)/2:100;}
else if((pos!=center && pos!=random) ||
pos==null){Left Position=0;TopP osition=20}
settings='width ='+w+',height=' +h+',top='+TopP osition+',left= '+LeftPosition+ '
,scrollbars='+s croll+',locatio n=no,directorie s=no,status=no, menubar=no,tool b
ar=no,resizable =no';
win=window.open (mypage,myname, settings);}
// -->
function blurAnchors(){
if(document.get ElementsByTagNa me){
var a = document.getEle mentsByTagName( a);
for(var i = 0; i < a.length; i++){
a[i].onfocus = function(){this .blur()};
}
}
}
window.onload = blurAnchors;
</SCRIPT>
<TABLE>
<TBODY>
<TR>
<TD width=400><A onfocus=this.bl ur()
onclick="NewWin dow(this.href,' video','400','4 00','no','cente r');return"
href="http://www.buildingonl ine.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.bl ur()
onclick="NewWin dow(this.href,' video','400','4 00','no','cente r');return"
href="http://www.buildingonl ine.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=javasc ript 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(mypag e,myname,w,h,sc roll,pos){
if(pos==random) {LeftPosition=( screen.width)?M ath.floor(Math. random()*(scree n
..width-w)):100;TopPosi tion=(screen.he ight)?Math.floo r(Math.random() *((screen
..height-h)-75)):100;}
if(pos==center) {LeftPosition=( screen.width)?( screen.width-w)/2:100;TopPositi
on=(screen.heig ht)?(screen.hei ght-h)/2:100;}
else if((pos!=center && pos!=random) ||
pos==null){Left Position=0;TopP osition=20}
settings='width ='+w+',height=' +h+',top='+TopP osition+',left= '+LeftPosition+ '
,scrollbars='+s croll+',locatio n=no,directorie s=no,status=no, menubar=no,tool b
ar=no,resizable =no';
win=window.open (mypage,myname, settings);}
// -->
function blurAnchors(){
if(document.get ElementsByTagNa me){
var a = document.getEle mentsByTagName( a);
for(var i = 0; i < a.length; i++){
a[i].onfocus = function(){this .blur()};
}
}
}
window.onload = blurAnchors;
</SCRIPT>
<TABLE>
<TBODY>
<TR>
<TD width=400><A onfocus=this.bl ur()
onclick="NewWin dow(this.href,' video','400','4 00','no','cente r');return"
href="http://www.buildingonl ine.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.bl ur()
onclick="NewWin dow(this.href,' video','400','4 00','no','cente r');return"
href="http://www.buildingonl ine.net/client/archwood/ht_low.htm"
false>Launch Home Time Video for dial-up 56k
modem.</A></TD></TR></TBODY></TABLE>
Comment