1) Script Title: Popup window generator
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/popwin.htm
3) Describe problem:
Nice script but I'm wondering if there is any way to keep the window in place for the other links in the list. As it stands, when I click on another link the window is minimized out of view on the bar and then I have to maximize it to see the second link result.
Since this is one of those "build-it" scripts I have included the one I generated for my purposes The first is the head section:
And the following is the link code for wherever placed:Code:<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(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.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='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; win=window.open(mypage,myname,settings);} // --> </script>
Thanks.Code:<a href="http://www.google.com" onclick="NewWindow(this.href,'mywin','500','370','yes','center');return false" onfocus="this.blur()">YourLinkText</a> <p>
DanV



Reply With Quote

Bookmarks