You are here: An alternative popup... « PHP Programming Language « IT news, forums, messages
An alternative popup...

Posted by Steve on 02/04/06 07:29

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

 

Navigation:

[Reply to this 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

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