hi all.
the pop-up window always automaticly generates and shows full web directory of the movie as its title on top of the browser. can i define this title inside MX so it could simply show anything i want it to be?
thanks in advance
hi all.
the pop-up window always automaticly generates and shows full web directory of the movie as its title on top of the browser. can i define this title inside MX so it could simply show anything i want it to be?
thanks in advance
Are you using the pop up window tutorial from Kirupa by any chance? If so you can specify the target window name . . .
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://www.kirupa.com/modular/pop-up.htm";
**target_winName = "kirupa";**
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
http://www.kirupa.com/developer/mx/centered_popup.htm
:hr:
thanks lunatic for your quick response. YES, i am using the kirupa center popup tut.
Good - just change that line I have in bold above and it should work. :thumb:
hi Lunatic, here is my another question, what if the pop-up is opened by click a link at a HTML like below:
<HTML><HEAD><TITLE>index</TITLE>
<META http-equiv=Content-Type content=“text/html; charset=iso-8859-1”>
<SCRIPT language=JavaScript>
<!–
window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
window.moveTo(0,0);
var win= null;
function NewWindow(mypage,myname,w,h,scroll){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings =‘height=’+h+’,’;
settings +=‘width=’+w+’,’;
settings +=‘top=’+wint+’,’;
settings +=‘left=’+winl+’,’;
settings +=‘scrollbars=’+scroll+’,’;
settings +=‘resizable=no’;
win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
//–>
</SCRIPT>
<META content=“MSHTML 6.00.2800.1400” name=GENERATOR></HEAD>
<body bgcolor="#011521" text="#000000" link="#000080" vlink="#800080" alink="#ff0000" leftmargin=“0” marginwidth=“0” topmargin=“0” marginheight=“0”>
<DIV align=center>
<TABLE height=“100%” cellSpacing=0 cellPadding=0 width=“100%” border=0>
<TR>
<TD>
<DIV align=center>
<TABLE height=360 cellSpacing=0 cellPadding=0 width=“100%” border=0>
<TR>
<TD width=985>
<DIV align=right><IMG height=360 src="left.jpg"
width=“100%”></DIV></TD>
<TD align=left width=20>
<DIV align=right><IMG height=360
src=“center.jpg” width=374 useMap=#Map3
border=0></DIV></TD>
<TD align=left width=875>
<DIV align=left><IMG height=360 src="right.jpg"
width=“100%”></DIV></TD></TR></TABLE></DIV></TD></TR></TABLE></DIV>
<MAP name=Map><AREA onfocus=if(this.blur)this.blur()
onclick=“NewWindow(this.href,‘LWL’,‘1200’,‘830’,‘no’);return false” shape=RECT
coords=2,291,31,305 href=“index.swf”></MAP><MAP
name=Map2><AREA shape=RECT target=_blank coords=139,337,198,385
href=“http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash”></MAP><MAP
name=Map3><AREA onfocus=if(this.blur)this.blur()
onclick=“NewWindow(this.href,‘LWL’,‘1200’,‘830’,‘no’);return false” shape=RECT
coords=143,279,182,300 href=“index.swf”><AREA
shape=RECT target=_blank coords=310,327,369,348
href=“http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash”></MAP>
</BODY>
</HTML>
any thing i can do with HTML to define the title of the pop-up?
many thanks again.
What name shows up now with that code?
:hr:
hi lunatic.
well, same as the previous one, the full web path where i store the .swf. any suggestion?
wheel
Well I’m not too great with html and I know nothing of Javascript. But a couple of things stick out at me.
win=window.open(mypage,myname,settings);
and
onclick="NewWindow(this.href,‘LWL’,‘1200’,‘830’,‘no’)
For the first it seems like its ready to accept a variable myname. I assume you can set that somewhere.
For the second it looks like NewWindow is being created with a bunch of specific parameters. Seems like a window title could also be specified in there.
But I don’t know where to put additional code - sorry Maybe try posting that code in another forum topic - the Clientside one for html and JS etc.
:hr:
thanks Lunatic.
actually, i spent quite a long time on those 2 lines too but nothing worked at all. and i will keep trying.
thanks again.
wheel
Yeah, sorry I couldn’t help you on this one. Try posting it in the Clientside forum and I bet someone there can help you lickety split.
:hr:
:: Copyright KIRUPA 2024 //--