|
Posted by Steve on 02/04/06 07:34
On Sat, 04 Feb 2006 18:29:24 +1300, Steve wrote:
> 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='javascript'>
> var arrTemp=self.location.href.split(\"?\");
> var picUrl = (arrTemp.length>0)?arrTemp[1]:\"\";
> var NS = (navigator.appName==\"Netscape\")?true:false;
>
> function FitPic() {
> self.blur();
> iWidth = (NS)?window.innerWidth:document.body.clientWidth;
> iHeight = (NS)?window.innerHeight:document.body.clientHeight;
> iWidth = " . $_GET["Width"] . " - iWidth + 250;
> iHeight = " . $_GET["Height"] . " - iHeight + 20;
> self.resizeBy(iWidth, 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
.... or, failing this, is it possible to pass the raw html code, rather
than an URL to a more standard js popup() function?
[Back to original message]
|