Announcement

Collapse
No announcement yet.

Positioning of pop-up jscript windows

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Positioning of pop-up jscript windows

    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
    James Gladwin

    #2
    Hi James

    The template is Actiniccore.js under 'Preload Images'. Try changing
    Code:
    function ShowPopUp(sUrl, nWidth, nHeight)
      	{  
    	window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',scrollbars, resizable');
    	}
    to
    Code:
    function ShowPopUp(sUrl, nWidth, nHeight)
      	{  
    	window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',left=150, top=100, scrollbars, resizable');
    	}
    Ben
    Ben Popplestone
    Ecommerce website software

    Comment


      #3
      editing .js files

      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
      James Gladwin

      Comment


        #4
        Hi James

        Make sure you are editing the file in the 'Site1' folder and not the 'PreviewHTML' folder.

        Comment


          #5
          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
          James Gladwin

          Comment

          Working...
          X