View Full Version : Positioning of pop-up jscript windows
James Gladwin
12-Dec-2003, 01:02 PM
Hi - is it possible to amend the template so that the extra information pop-up window does not default to top left of screen? I'd like it more centred...
Where should I go??
Best - James
Hi James
The template is Actiniccore.js under 'Preload Images'. Try changing function ShowPopUp(sUrl, nWidth, nHeight)
{
window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',scrollbars, resizable');
} to function ShowPopUp(sUrl, nWidth, nHeight)
{
window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',left=150, top=100, scrollbars, resizable');
} Ben
James Gladwin
14-Dec-2003, 05:54 AM
Ben, Hi. Thanks - exactly it.
Strange thing is, although I change and save (using Note Pad) I'm still getting the original file loaded...is there a differentway to"save" .js files?Best - James
cdicken
15-Dec-2003, 03:53 PM
Hi James
Make sure you are editing the file in the 'Site1' folder and not the 'PreviewHTML' folder.
James Gladwin
15-Dec-2003, 04:28 PM
Hi, Chris. Of course. Sometimes I need to go and lie down in a dark room until the men in white coats arrive. . . . . .
Best - James
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.