02-06-2007, 10:43 AM
As i mouse over on a link pop up menu is visible, but i want to make it visible at a certain position of a screen so that it is clearly seen and the Pop up menu window doesn't get cut from anywhere. Can anyone tell me how to change the Position of pop up window. I m new in coding :(
02-06-2007, 03:44 PM
Without having seen your code I can only make a very rough guess at what you want.
Assuming the id of your popup is myPopUp:
myPopUp.style.pixelTop = "250px" //250px from top of screen
myPopUp.style.pixelLeft = "260px" //250px from left of screen
To cope with different resolutions, you may have to do something a bit more complex. Look up css positioning on Google.
02-06-2007, 07:06 PM
If your visitor has their browser configured to disallow moving and resizing browser windows from the web page then your popup will open where their browser is configured to put it at the default size and nothing you do can change it. You can suggest a size and position in the third parameter of the window.open() call that opens the popup where at least you have a chance that it may take effect.