I'm looking at a different means of creating a popup to calling js. I'd
like to use the standard <a href... target="_new"> syntax, so that I can
dynamically control the content of the popup using php. However, I'd like
to control the way it looks as you can with a javascript popup - no
buttons, etc. I'm trying to do this by calling a js function at body
onload=..., and have had some success - 've resized it, and moved it away
from the top left corner of the screen. However, I am not a js programmer,
and am having limited success using js 101 sites and google.
So far, I've got
<script language='javas cript'>
var arrTemp=self.lo cation.href.spl it(\"?\");
var picUrl = (arrTemp.length >0)?arrTemp[1]:\"\";
var NS = (navigator.appN ame==\"Netscape \")?true:fal se;
function FitPic() {
self.blur();
iWidth = (NS)?window.inn erWidth:documen t.body.clientWi dth;
iHeight = (NS)?window.inn erHeight:docume nt.body.clientH eight;
iWidth = " . $_GET["Width"] . " - iWidth + 250;
iHeight = " . $_GET["Height"] . " - iHeight + 20;
self.resizeBy(i Width, iHeight);
self.moveTo (200, 200);
self.focus();
};
</script>
Can anyone point me to resources to tell me how to remove the standard
browser buttons, or tell me that this approach makes it impossible???
TIA,
Steve
like to use the standard <a href... target="_new"> syntax, so that I can
dynamically control the content of the popup using php. However, I'd like
to control the way it looks as you can with a javascript popup - no
buttons, etc. I'm trying to do this by calling a js function at body
onload=..., and have had some success - 've resized it, and moved it away
from the top left corner of the screen. However, I am not a js programmer,
and am having limited success using js 101 sites and google.
So far, I've got
<script language='javas cript'>
var arrTemp=self.lo cation.href.spl it(\"?\");
var picUrl = (arrTemp.length >0)?arrTemp[1]:\"\";
var NS = (navigator.appN ame==\"Netscape \")?true:fal se;
function FitPic() {
self.blur();
iWidth = (NS)?window.inn erWidth:documen t.body.clientWi dth;
iHeight = (NS)?window.inn erHeight:docume nt.body.clientH eight;
iWidth = " . $_GET["Width"] . " - iWidth + 250;
iHeight = " . $_GET["Height"] . " - iHeight + 20;
self.resizeBy(i Width, iHeight);
self.moveTo (200, 200);
self.focus();
};
</script>
Can anyone point me to resources to tell me how to remove the standard
browser buttons, or tell me that this approach makes it impossible???
TIA,
Steve
Comment