View Single Post
  #7  
Old 04-27-2006, 09:35 PM
davidundalicia's Avatar
davidundalicia davidundalicia is offline
General & Forum Moderator
 
Join Date: Mar 2006
Location: Mallorca, Spain
Posts: 6,445
Default Re: Is It Possible To Create A Pop Up Ad

Hi Chris,
Thanks for the offer but that type of program is not my cup of tea.....
I prefer database or web design tools and software of that nature.

If you need to control your popup window i.e. centered, scroll bars etc
you might want to see below.....

<script language="javascript" type="text/javascript">
<!--
/************************************************** **
Author: Eric King
Url: http://redrival.com/eak/index.shtml
This script is free to use as long as this info is left in
Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
************************************************** **/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math .floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(scr een.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=yes,to olbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}
// -->
</script>
Reply With Quote