|
Main Index Java Index |
|
Put this code into the <body> tag: body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" --------------------------------------------------------------- This first part is the script, and you can adjust whether or not there are scroll bars or if the window is adjustable by changing the 0's to 1's---If you notice, there is an "function openWidow" and a "function openWidnow2"--that way I can have some windows with, and some without scroll bars on the same page--this code doesn't need to go in the header <SCRIPT LANGUAGE="JavaScript"> <!-- function openWindow(windowURL,windowName,windowWidth,windowHeight) { window.name = 'parentWnd'; newWindow = window.open(windowURL,windowName,'width='+windowWidth+',height='+windowHeight+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0'); } function openWindow2(windowURL,windowName,windowWidth,windowHeight) { window.name = 'parentWnd'; newWindow = window.open(windowURL,windowName,'width='+windowWidth+',height='+windowHeight+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0'); } //--> </script> --------------------------------------------------------------- This is the code you need to put in the ancor tag, the 2 numbers are the width and height of the window, you would put "openWindow" or "openWindow2" which would reflect the function code in the script above a href="#" onclick="javascript:openWindow('http://www.parkandpipe.com/companyinfo.asp','moviewindow',400,400);" |