Announcement

Collapse
No announcement yet.

Position A Popup Window!?

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

    Position A Popup Window!?

    Hi we use popup window for our Zoomify function on our site the code we use is:

    HTML Code:
    <a href="javascript:ShowPopUp('<actinic:variable name="ExtendedInfoPageEncoded"/>','<actinic:variable name="ExtInfoWindowWidth"/>','<actinic:variable name="ExtInfoWindowHeight"/>');">
    <img src="<actinic:variable name="ExtInfoButtonImageFileName" />" 
    border="0" 
       alt="Enlarge Product Image"
       onMouseOver="src='zoom_r.gif' "
       onMouseOut="src='<actinic:variable name="ExtInfoButtonImageFileName" />' "
    /></a>
    Is there a way i can position the popup center of the screen instead of it defaulting to the top left hand corner?

    Cheers FrAz
    Cheers FrAz

    #2
    Google it for about 1,000 solutions is your best bet.

    Comment


      #3
      Use your own js instead of ShowPopUp such as this:
      http://www.dotnetspider.com/resource...-position.aspx

      Comment


        #4
        Where abouts am i inputing this code drounding? FrAz

        It's ok i've found out how to do this with java. Thanks again
        Cheers FrAz

        Comment


          #5
          FrAz - can you post your the solution as others may want to do the same and not have the technical ability of how to integrate into Actinic


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            Ok fianally had time to post my result on this issue. Had abit of trouble getting it to work in FF & IE, but it works fully now. It's if you want a popup window to appear in the center of the screen.

            Simple add the following code with the approriate links:

            HTML Code:
            <br/>
            <script>
            function PopupCenter(pageURL, title,w,h) {
            var left = (screen.width/2)-(w/2);
            var top = (screen.height/2)-(h/2);
            var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
            }
            </script>
            
            <a href="javascript:void(0);" onclick="PopupCenter('delivery_popup.php', 'myPop1',450,110);">
            <IMG src="product_delivery.gif" border="0" alt="Delivery Charges" align="top" width="25" height="15">Delivery Charges</A>
            <br/>
            The height and width are both adjustable.

            Cheers FrAz
            Cheers FrAz

            Comment

            Working...
            X