Reply to Re: An alternative popup...

Your name:

Reply:


Posted by Jim Michaels on 02/18/06 05:33

"Steve" <ThisOne@Aint.Valid> wrote in message
news:pan.2006.02.04.05.34.08.248857@Aint.Valid...
> 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?

you are doing fine with your js so far.
a standard way to opena window is
window.open(url,title,"width=100,height=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no");

maybe these attribute names will help you google for something.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация