Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a centred popup with Navigation controls

Status
Not open for further replies.

loopsta

MIS
Nov 16, 2001
47
US
I hope that kinda explains it, but from my initial page I would like a popup, kinda a mini browser window with navigation controls on it, I have the code that seems to work for the pop up and centering which is:

<a href=&quot;services3.html&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('nonflash','','images/nonflash_over.jpg',1)&quot; onclick=&quot;NewWindow(this.href,'services3.html','760','420','yes');return false&quot;>

Which I've put on the button that enters the site and I put this on the head section

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

So what I really want to know is how to put in a Navigation bar in the button script! Thanks for any advice
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top